mario.calc_X_from_z#

\[X = (I - z)^{-1} Y\]
mario.calc_X_from_z(z, Y, *, method: str | None = None, solver: str | None = None, strategy: str | None = None)#

Calculate the X total production vector directly from z and Y.

This is the direct path for X. Under method="solve", MARIO solves the linear system (I - z) X = Y_total without materializing the w Leontief inverse matrix.

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

  • Y (pandas.DataFrame) – Y final demand 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:

X total production vector.

Return type:

pandas.DataFrame