mario.calc_Mc(mc, Yc)#

Calculate the Mc commodity-side total value added flows matrix.

\[M_c = m_c\,\operatorname{diag}\!\left(Y_c\mathbf{1}\right)\]

Final demand is summed across its columns before scaling the multiplier columns. The output columns represent production nodes, rather than final-demand categories.

Parameters:
  • mc (pandas.DataFrame) – Total value added coefficients: factors by commodity nodes.

  • Yc (pandas.DataFrame) – Commodity final demand: commodity nodes by final-demand categories and regions.

Returns:

Footprint flows with the same index and columns as mc.

Return type:

pandas.DataFrame