mario.calc_m_from_z#
\[m = v (I - z)^{-1}\]
- mario.calc_m_from_z(v, z, *, method: str | None = None, solver: str | None = None, strategy: str | None = None)#
Calculate the
mtotal (direct+indirect) value added coefficients matrix.This is the direct path for
m. Undermethod="solve", MARIO solves the transposed system without materializing thewLeontief inverse matrix.- Parameters:
v (pandas.DataFrame) –
vvalue added coefficients matrix.z (pandas.DataFrame) –
zintersectoral transaction coefficients matrix.method (str, optional) – Optional runtime compute method override. Accepted values are
"auto","inverse"and"solve".solver (str, optional) – Optional linear solver backend used when the solve path is selected.
strategy (str, optional) – Optional sparse linear strategy used when the solve path is selected.
- Returns:
mtotal (direct+indirect) value added coefficients matrix.- Return type:
pandas.DataFrame