petsc4py.PETSc.KSP.NormType#
- class petsc4py.PETSc.KSP.NormType#
Bases:
objectKSP norm type.
The available norm types are:
NONESkips computing the norm, this should generally only be used if you are using the Krylov method as a smoother with a fixed small number of iterations. Implicitly sets
KSPConvergedSkipas KSP convergence test. Note that certain algorithms such asType.GMRESALWAYS require the norm calculation, for these methods the norms are still computed, they are just not used in the convergence test.PRECONDITIONEDThe default for left preconditioned solves, uses the l₂ norm of the preconditioned residual P⁻¹(b - Ax).
UNPRECONDITIONEDUses the l₂ norm of the true b - Ax residual.
NATURAL
Attributes Summary
Constant
DEFAULTof typeintConstant
NATURALof typeintConstant
NOof typeintConstant
NONEof typeintConstant
NORM_DEFAULTof typeintConstant
NORM_NATURALof typeintConstant
NORM_NONEof typeintConstant
NORM_PRECONDITIONEDof typeintConstant
NORM_UNPRECONDITIONEDof typeintConstant
PRECONDITIONEDof typeintConstant
UNPRECONDITIONEDof typeintAttributes Documentation