For the standalone function, see mario.calc_wcc().

Calculate the commodity-to-commodity quadrant of the SUT Leontief inverse.

\[w_{cc}=(I-us)^{-1}\]

Inputs#

u: commodity-by-activity use coefficients.

s: activity-by-commodity supply coefficients.

Result#

Commodity nodes on both axes.

Calculation details#

The subscript a denotes activities and c commodities. The equivalent linear system is \((I-us)w_{cc}=I\). 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("wcc")
# Dotted access requests the same block:
result = db.wcc

Use resolve for scenario selection and recomputation options. Existing targets are reused. The other SUT equations are listed in Resolvable Matrices and Blocks.