pymrio.calc_L
- pymrio.calc_L(A)
Calculate the Leontief L from A
L = inverse matrix of (I - A)
Where I is an identity matrix of same shape as A
- Comes from:
x = Ax + y => (I-A)x = y
- Where:
A: coefficient input () - output () table x: output vector y: final demand vector
Hence, L allows to derive a required output vector x for a given demand y
- Parameters
A (pandas.DataFrame or numpy.array) – Symmetric input output table (coefficients)
- Returns
Leontief input output table L The type is determined by the type of A. If DataFrame index/columns as A
- Return type
pandas.DataFrame or numpy.array