mario.calc_z
- mario.calc_z(Z, X)#
Calculate the
zintersectoral transaction coefficients matrix.\[z = Z\,\operatorname{diag}(X)^{-1}\]- Parameters:
Z (pandas.DataFrame) –
Zintersectoral transaction flows matrix.X (pandas.DataFrame) –
Xtotal production vector.
- Returns:
zintersectoral transaction coefficients matrix.- Return type:
pandas.DataFrame
Notes
Inverse production is computed elementwise. A zero production entry has inverse zero, so the corresponding column is set to zero.