petsc4py.typing.MatSizeSpec#
- petsc4py.typing.MatSizeSpec = int | tuple[int, int] | tuple[tuple[int, int], tuple[int, int]]#
int
or (nested)tuple
ofint
describing the matrix sizes.If
int
then rows = columns. A singletuple
ofint
indicates(rows, columns)
. A nestedtuple
ofint
indicates((local_rows, rows), (local_columns, columns))
.See also