mario.calc_Z#

\[Z = z \operatorname{diag}(X)\]
mario.calc_Z(z, X)#

Calculate the Z intersectoral transaction flows matrix.

Parameters:
  • z (pandas.DataFrame) – z intersectoral transaction coefficients matrix.

  • X (pandas.DataFrame) – X total production vector. Its index must match the columns of z.

Returns:

Z intersectoral transaction flows matrix. Each column of z is scaled by the corresponding production value in X.

Return type:

pandas.DataFrame