petsc4py.typing#

Typing support.

Attributes

Scalar

Scalar type.

ArrayBool

Array of bool.

ArrayInt

Array of int.

ArrayReal

Array of float.

ArrayComplex

Array of complex.

ArrayScalar

Array of Scalar numbers.

DimsSpec

Dimensions specification.

AccessModeSpec

Access mode specification.

InsertModeSpec

Insertion mode specification.

ScatterModeSpec

Scatter mode specification.

LayoutSizeSpec

int or 2-tuple of int describing the layout sizes.

NormTypeSpec

Norm type specification.

PetscOptionsHandlerFunction

Callback for processing extra options.

MatAssemblySpec

Matrix assembly specification.

MatSizeSpec

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

MatBlockSizeSpec

The row and column block sizes.

CSRIndicesSpec

CSR indices format specification.

CSRSpec

CSR format specification.

NNZSpec

Nonzero pattern specification.

MatNullFunction

PETSc.NullSpace callback.

DMCoarsenHookFunction

PETSc.DM coarsening hook callback.

DMRestrictHookFunction

PETSc.DM restriction hook callback.

KSPRHSFunction

PETSc.KSP right-hand side function callback.

KSPOperatorsFunction

PETSc.KSP operators function callback.

KSPConvergenceTestFunction

PETSc.KSP convergence test callback.

KSPMonitorFunction

PETSc.KSP monitor callback.

KSPPreSolveFunction

PETSc.KSP pre solve callback.

KSPPostSolveFunction

PETSc.KSP post solve callback.

SNESMonitorFunction

SNES monitor callback.

SNESObjFunction

SNES objective function callback.

SNESFunction

SNES residual function callback.

SNESJacobianFunction

SNES Jacobian callback.

SNESGuessFunction

SNES initial guess callback.

SNESUpdateFunction

SNES step update callback.

SNESLSPreFunction

SNES linesearch pre-check update callback.

SNESNGSFunction

SNES nonlinear Gauss-Seidel callback.

SNESConvergedFunction

SNES convergence test callback.

TSRHSFunction

TS right-hand side function callback.

TSRHSJacobian

TS right-hand side Jacobian callback.

TSRHSJacobianP

TS right-hand side parameter Jacobian callback.

TSIFunction

TS implicit function callback.

TSIJacobian

TS implicit Jacobian callback.

TSIJacobianP

TS implicit parameter Jacobian callback.

TSI2Function

TS implicit 2nd order function callback.

TSI2Jacobian

TS implicit 2nd order Jacobian callback.

TSI2JacobianP

TS implicit 2nd order parameter Jacobian callback.

TSMonitorFunction

TS monitor callback.

TSPreStepFunction

TS pre-step callback.

TSPostStepFunction

TS post-step callback.

TSIndicatorFunction

TS event indicator callback.

TSPostEventFunction

TS post-event callback.

TAOObjectiveFunction

TAO objective function callback.

TAOGradientFunction

TAO objective gradient callback.

TAOObjectiveGradientFunction

TAO objective function and gradient callback.

TAOHessianFunction

TAO objective Hessian callback.

TAOUpdateFunction

TAO update callback.

TAOMonitorFunction

TAO monitor callback.

TAOConvergedFunction

TAO convergence test callback.

TAOJacobianFunction

TAO Jacobian callback.

TAOResidualFunction

TAO residual callback.

TAOJacobianResidualFunction

TAO Jacobian residual callback.

TAOVariableBoundsFunction

TAO variable bounds callback.

TAOConstraintsFunction

TAO constraints callback.

TAOLSObjectiveFunction

TAOLineSearch objective function callback.

TAOLSGradientFunction

TAOLineSearch objective gradient callback.

TAOLSObjectiveGradientFunction

TAOLineSearch objective function and gradient callback.