mario.calc_gcc(bu, bs)#

Calculate the SUT Ghosh block gcc.

\[g_{cc} = (I-b_u b_s)^{-1}\]
Parameters:
  • bu (pandas.DataFrame) – Use direct-output coefficients, with commodity rows and activity columns.

  • bs (pandas.DataFrame) – Supply direct-output coefficients, with activity rows and commodity columns. Its rows and columns must match the columns and rows of bu, respectively, including order.

Returns:

Ghosh block, with commodity nodes on both axes.

Return type:

pandas.DataFrame

Notes

The inverse falls back to the Moore-Penrose pseudo-inverse if the system matrix is singular.