mario.CoreModel.get_block_as_matrix
- CoreModel.get_block_as_matrix(
- name: str,
- scenario: str = 'baseline',
- *,
- backend: str = 'numpy',
- prefer_sparse: bool = False,
Return one block in a numeric matrix backend.
- Parameters:
name – Block name to retrieve.
scenario – Scenario to read from.
backend – Matrix backend passed to
block_to_matrix(...).prefer_sparse – When
True, prefer sparse output when supported by the backend.
- Returns:
Numeric matrix representation of the requested block.
- Return type:
object