# petsc4py.typing.MatSizeSpec

petsc4py.typing.MatSizeSpec = int | tuple[int, int] | tuple[tuple[int, int], tuple[int, int]]

  `int` or (nested) `tuple` of `int` describing the matrix sizes.

  If `int` then rows = columns. A single `tuple` of `int` indicates `(rows, columns)`. A nested `tuple` of `int` indicates `((local_rows, rows), (local_columns, columns))`.

  See also

  `Sys.splitOwnership`