mario.calc_wcc
- mario.calc_wcc(u, s)#
Calculate the SUT commodity-to-commodity Leontief block
wcc.\[w_{cc} = (I-us)^{-1}\]- Parameters:
u (pandas.DataFrame) – Use coefficients, with commodity rows and activity columns.
s (pandas.DataFrame) – Supply coefficients, with activity rows and commodity columns. Its row index must match the columns of
uand its columns must match the row index ofu, including order.
- Returns:
Leontief block, with the commodity rows and commodity columns of
u @ s.- Return type:
pandas.DataFrame
Notes
Rectangular use/supply tables are supported. The inverse falls back to the Moore-Penrose pseudo-inverse if the system matrix is singular.