mario.CoreModel.calc_all#
- CoreModel.calc_all(matrices=['z', 'v', 'e', 'Z', 'V', 'E'], scenario='baseline', force_rewrite=False, compute_options=None)#
Compute and materialize one or more matrices for a scenario.
- Parameters:
matrices – One matrix name or an iterable of matrix names to materialize.
scenario – Scenario from which dependencies should be read and where the computed matrices should be stored.
force_rewrite – When
True, recompute requested matrices even if they already exist in the scenario.compute_options – Optional advanced compute options payload used to steer runtime planning and backend selection. When omitted, MARIO uses the globally configured compute defaults.
- Returns:
The method materializes matrices in
self.matrices.- Return type:
None
Notes
The runtime options above matter mainly for large IOT databases, where MARIO can compute the
Xtotal 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 andpprice index vector without materializing the fullwLeontief inverse matrix.