Skip to main content
Ctrl+K

Python 3.23.2 documentation

  • PETSc Overview
  • Installation
  • Contributing
  • Citations
  • Reference
    • PETSc Python types
    • Working with PETSc options
    • petsc4py demos
    • Documentation standards for petsc4py
  • PETSc Overview
  • Installation
  • Contributing
  • Citations
  • Reference
    • PETSc Python types
    • Working with PETSc options
    • petsc4py demos
    • Documentation standards for petsc4py

Section Navigation

  • petsc4py
    • petsc4py.get_config
    • petsc4py.get_include
    • petsc4py.init
  • petsc4py.typing
    • petsc4py.typing.Scalar
    • petsc4py.typing.ArrayBool
    • petsc4py.typing.ArrayInt
    • petsc4py.typing.ArrayReal
    • petsc4py.typing.ArrayComplex
    • petsc4py.typing.ArrayScalar
    • petsc4py.typing.DimsSpec
    • petsc4py.typing.AccessModeSpec
    • petsc4py.typing.InsertModeSpec
    • petsc4py.typing.ScatterModeSpec
    • petsc4py.typing.LayoutSizeSpec
    • petsc4py.typing.NormTypeSpec
    • petsc4py.typing.PetscOptionsHandlerFunction
    • petsc4py.typing.MatAssemblySpec
    • petsc4py.typing.MatSizeSpec
    • petsc4py.typing.MatBlockSizeSpec
    • petsc4py.typing.CSRIndicesSpec
    • petsc4py.typing.CSRSpec
    • petsc4py.typing.NNZSpec
    • petsc4py.typing.MatNullFunction
    • petsc4py.typing.DMCoarsenHookFunction
    • petsc4py.typing.DMRestrictHookFunction
    • petsc4py.typing.KSPRHSFunction
    • petsc4py.typing.KSPOperatorsFunction
    • petsc4py.typing.KSPConvergenceTestFunction
    • petsc4py.typing.KSPMonitorFunction
    • petsc4py.typing.KSPPreSolveFunction
    • petsc4py.typing.KSPPostSolveFunction
    • petsc4py.typing.SNESMonitorFunction
    • petsc4py.typing.SNESObjFunction
    • petsc4py.typing.SNESFunction
    • petsc4py.typing.SNESJacobianFunction
    • petsc4py.typing.SNESGuessFunction
    • petsc4py.typing.SNESUpdateFunction
    • petsc4py.typing.SNESLSPreFunction
    • petsc4py.typing.SNESNGSFunction
    • petsc4py.typing.SNESConvergedFunction
    • petsc4py.typing.TSRHSFunction
    • petsc4py.typing.TSRHSJacobian
    • petsc4py.typing.TSRHSJacobianP
    • petsc4py.typing.TSIFunction
    • petsc4py.typing.TSIJacobian
    • petsc4py.typing.TSIJacobianP
    • petsc4py.typing.TSI2Function
    • petsc4py.typing.TSI2Jacobian
    • petsc4py.typing.TSI2JacobianP
    • petsc4py.typing.TSMonitorFunction
    • petsc4py.typing.TSPreStepFunction
    • petsc4py.typing.TSPostStepFunction
    • petsc4py.typing.TSIndicatorFunction
    • petsc4py.typing.TSPostEventFunction
    • petsc4py.typing.TAOObjectiveFunction
    • petsc4py.typing.TAOGradientFunction
    • petsc4py.typing.TAOObjectiveGradientFunction
    • petsc4py.typing.TAOHessianFunction
    • petsc4py.typing.TAOUpdateFunction
    • petsc4py.typing.TAOMonitorFunction
    • petsc4py.typing.TAOConvergedFunction
    • petsc4py.typing.TAOJacobianFunction
    • petsc4py.typing.TAOResidualFunction
    • petsc4py.typing.TAOJacobianResidualFunction
    • petsc4py.typing.TAOVariableBoundsFunction
    • petsc4py.typing.TAOConstraintsFunction
    • petsc4py.typing.TAOConstraintsJacobianFunction
    • petsc4py.typing.TAOLSObjectiveFunction
    • petsc4py.typing.TAOLSGradientFunction
    • petsc4py.typing.TAOLSObjectiveGradientFunction
  • petsc4py.PETSc
    • petsc4py.PETSc.AO
      • petsc4py.PETSc.AO.Type
    • petsc4py.PETSc.CellDM
    • petsc4py.PETSc.Comm
    • petsc4py.PETSc.DM
      • petsc4py.PETSc.DM.BoundaryType
      • petsc4py.PETSc.DM.PolytopeType
      • petsc4py.PETSc.DM.ReorderDefaultFlag
      • petsc4py.PETSc.DM.Type
    • petsc4py.PETSc.DMComposite
    • petsc4py.PETSc.DMDA
      • petsc4py.PETSc.DMDA.ElementType
      • petsc4py.PETSc.DMDA.InterpolationType
      • petsc4py.PETSc.DMDA.StencilType
    • petsc4py.PETSc.DMInterpolation
    • petsc4py.PETSc.DMLabel
    • petsc4py.PETSc.DMPlex
    • petsc4py.PETSc.DMPlexTransform
    • petsc4py.PETSc.DMPlexTransformType
    • petsc4py.PETSc.DMShell
    • petsc4py.PETSc.DMStag
      • petsc4py.PETSc.DMStag.StencilLocation
      • petsc4py.PETSc.DMStag.StencilType
    • petsc4py.PETSc.DMSwarm
      • petsc4py.PETSc.DMSwarm.CollectType
      • petsc4py.PETSc.DMSwarm.MigrateType
      • petsc4py.PETSc.DMSwarm.PICLayoutType
      • petsc4py.PETSc.DMSwarm.Type
    • petsc4py.PETSc.DS
      • petsc4py.PETSc.DS.Type
    • petsc4py.PETSc.Device
      • petsc4py.PETSc.Device.Type
    • petsc4py.PETSc.DeviceContext
      • petsc4py.PETSc.DeviceContext.DeviceJoinMode
      • petsc4py.PETSc.DeviceContext.StreamType
    • petsc4py.PETSc.DualSpace
      • petsc4py.PETSc.DualSpace.Type
    • petsc4py.PETSc.FE
      • petsc4py.PETSc.FE.Type
    • petsc4py.PETSc.IS
      • petsc4py.PETSc.IS.Type
    • petsc4py.PETSc.InsertMode
    • petsc4py.PETSc.KSP
      • petsc4py.PETSc.KSP.ConvergedReason
      • petsc4py.PETSc.KSP.HPDDMType
      • petsc4py.PETSc.KSP.NormType
      • petsc4py.PETSc.KSP.Type
    • petsc4py.PETSc.LGMap
      • petsc4py.PETSc.LGMap.GLMapMode
      • petsc4py.PETSc.LGMap.Type
    • petsc4py.PETSc.Log
    • petsc4py.PETSc.LogClass
    • petsc4py.PETSc.LogEvent
    • petsc4py.PETSc.LogStage
    • petsc4py.PETSc.Mat
      • petsc4py.PETSc.Mat.AssemblyType
      • petsc4py.PETSc.Mat.DuplicateOption
      • petsc4py.PETSc.Mat.FactorShiftType
      • petsc4py.PETSc.Mat.InfoType
      • petsc4py.PETSc.Mat.Option
      • petsc4py.PETSc.Mat.OrderingType
      • petsc4py.PETSc.Mat.SORType
      • petsc4py.PETSc.Mat.SolverType
      • petsc4py.PETSc.Mat.Stencil
      • petsc4py.PETSc.Mat.Structure
      • petsc4py.PETSc.Mat.Type
    • petsc4py.PETSc.MatPartitioning
      • petsc4py.PETSc.MatPartitioning.Type
    • petsc4py.PETSc.NormType
    • petsc4py.PETSc.NullSpace
    • petsc4py.PETSc.Object
    • petsc4py.PETSc.Options
    • petsc4py.PETSc.PC
      • petsc4py.PETSc.PC.ASMType
      • petsc4py.PETSc.PC.CompositeType
      • petsc4py.PETSc.PC.DeflationSpaceType
      • petsc4py.PETSc.PC.FailedReason
      • petsc4py.PETSc.PC.FieldSplitSchurFactType
      • petsc4py.PETSc.PC.FieldSplitSchurPreType
      • petsc4py.PETSc.PC.GAMGType
      • petsc4py.PETSc.PC.GASMType
      • petsc4py.PETSc.PC.HPDDMCoarseCorrectionType
      • petsc4py.PETSc.PC.MGCycleType
      • petsc4py.PETSc.PC.MGType
      • petsc4py.PETSc.PC.PatchConstructType
      • petsc4py.PETSc.PC.Side
      • petsc4py.PETSc.PC.Type
    • petsc4py.PETSc.Partitioner
      • petsc4py.PETSc.Partitioner.Type
    • petsc4py.PETSc.Quad
    • petsc4py.PETSc.Random
      • petsc4py.PETSc.Random.Type
    • petsc4py.PETSc.SF
      • petsc4py.PETSc.SF.Type
    • petsc4py.PETSc.SNES
      • petsc4py.PETSc.SNES.ConvergedReason
      • petsc4py.PETSc.SNES.NormSchedule
      • petsc4py.PETSc.SNES.Type
    • petsc4py.PETSc.Scatter
      • petsc4py.PETSc.Scatter.Mode
      • petsc4py.PETSc.Scatter.Type
    • petsc4py.PETSc.ScatterMode
    • petsc4py.PETSc.Section
    • petsc4py.PETSc.Space
      • petsc4py.PETSc.Space.Type
    • petsc4py.PETSc.Sys
    • petsc4py.PETSc.TAO
      • petsc4py.PETSc.TAO.BNCGType
      • petsc4py.PETSc.TAO.ConvergedReason
      • petsc4py.PETSc.TAO.Type
    • petsc4py.PETSc.TAOLineSearch
      • petsc4py.PETSc.TAOLineSearch.ConvergedReason
      • petsc4py.PETSc.TAOLineSearch.Type
    • petsc4py.PETSc.TS
      • petsc4py.PETSc.TS.ARKIMEXType
      • petsc4py.PETSc.TS.ConvergedReason
      • petsc4py.PETSc.TS.DIRKType
      • petsc4py.PETSc.TS.EquationType
      • petsc4py.PETSc.TS.ExactFinalTime
      • petsc4py.PETSc.TS.ProblemType
      • petsc4py.PETSc.TS.RKType
      • petsc4py.PETSc.TS.Type
    • petsc4py.PETSc.Vec
      • petsc4py.PETSc.Vec.Option
      • petsc4py.PETSc.Vec.Type
    • petsc4py.PETSc.Viewer
      • petsc4py.PETSc.Viewer.DrawSize
      • petsc4py.PETSc.Viewer.FileMode
      • petsc4py.PETSc.Viewer.Format
      • petsc4py.PETSc.Viewer.Type
    • petsc4py.PETSc.ViewerHDF5
    • petsc4py.PETSc.Error
    • petsc4py.PETSc.garbage_cleanup
    • petsc4py.PETSc.garbage_view
    • petsc4py.PETSc.DECIDE
    • petsc4py.PETSc.DEFAULT
    • petsc4py.PETSc.DETERMINE
    • petsc4py.PETSc.CURRENT
    • petsc4py.PETSc.UNLIMITED
    • petsc4py.PETSc.INFINITY
    • petsc4py.PETSc.NINFINITY
    • petsc4py.PETSc.PINFINITY
    • petsc4py.PETSc.COMM_NULL
    • petsc4py.PETSc.COMM_SELF
    • petsc4py.PETSc.COMM_WORLD
  • Reference
  • petsc4py.typing
  • petsc4py.typ...

petsc4py.typing.MatNullFunction#

petsc4py.typing.MatNullFunction#

PETSc.NullSpace callback.

alias of Callable[[NullSpace, Vec], None]

previous

petsc4py.typing.NNZSpec

next

petsc4py.typing.DMCoarsenHookFunction

Show Source

Created using Sphinx 7.3.7.

Built with the PyData Sphinx Theme 0.15.1.

Last updated on 2025-05-13T04:28:10-0500 (v3.23.2-4-g078373e23465).