db.wca
For the standalone function, see mario.calc_wca().
Calculate the commodity-to-activity quadrant of the SUT Leontief inverse.
Inputs#
u: commodity-by-activity use coefficients.
s: activity-by-commodity supply coefficients.
Result#
Commodity nodes on rows and activity nodes on columns.
Calculation details#
The subscript a denotes activities and c commodities.
The equivalent linear system is \((I-us)w_{ca}=u\). Compute settings
select an inverse or solve path; an existing unified w can also
supply this quadrant. In the explicit inverse path, a singular system
falls back to the Moore-Penrose pseudoinverse.
Example#
import mario
db = mario.load_test("SUT", tech_assumption="IT")
result = db.resolve("wca")
# Dotted access requests the same block:
result = db.wca
Use resolve for scenario selection and recomputation options. Existing targets are reused. The other SUT equations are listed in Resolvable Matrices and Blocks.