pymrio.calc_G
- pymrio.calc_G(B, L=None, x=None)
Calculate the Ghosh inverse matrix G.
Either from B (high computation effort) or from Leontief matrix L and x (low computation effort).
G = inverse matrix of (I - B) = hat(x) * L * hat(x)^{-1}
where I is an identity matrix of same shape as B, and hat(x) is the diagonal matrix with values of x on the diagonal.
- Parameters
B (pandas.DataFrame or numpy.array) – Symmetric input output table (coefficients)
- Returns
Ghosh input output table G The type is determined by the type of B. If DataFrame index/columns as B
- Return type
pandas.DataFrame or numpy.array