mario.set_compute_method#
- mario.set_compute_method(method: str)#
Set the default runtime method used for demand-driven IOT/SUT calculations.
- Parameters:
method –
One of
"auto","inverse"or"solve"."auto"lets MARIO choose between explicit-inverse and solve-based formulas according to the requested target and the estimated memory cost of materializing thewLeontief inverse matrix."inverse"forces the historical path based on the explicitwLeontief inverse matrix."solve"prefers linear-system solves that avoid materializing explicit inverse blocks for large demand-driven targets such as the IOTXtotal production vector,ftotal (direct+indirect) environmental transaction coefficients matrix,Ftotal (direct+indirect) environmental transaction flows matrix,mtotal (direct+indirect) value added coefficients matrix,Mtotal (direct+indirect) value added transaction matrix,pprice index vector and the analogous split SUT targets.
Notes
This setting is used whenever no per-call override is passed to
mario.CoreModel.calc_all(),mario.CoreModel.resolve()ormario.CoreModel.resolve_many(). Dotted access such asdb.falso goes through this default because it delegates tocalc_all()without explicit overrides.