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
Xtotal production vector directly fromzandY.This is the direct path for
X. Undermethod="solve", MARIO solves the linear system(I - z) X = Y_totalwithout materializing thewLeontief inverse matrix.- Parameters:
z (pandas.DataFrame) –
zintersectoral transaction coefficients matrix.Y (pandas.DataFrame) –
Yfinal 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:
Xtotal production vector.- Return type:
pandas.DataFrame