petsc4py.typing.Scalar#

petsc4py.typing.Scalar = float | complex#

Scalar type.

Scalars can be either float or complex (but not both) depending on how PETSc was configured (./configure --with-scalar-type=real|complex).