PCMAT — PETSc 3.24.5 documentation

Skip to main content
`Ctrl`+`K`

# PCMAT

A preconditioner obtained by applying an operation of the `pmat` provided in in `PCSetOperators(pc,amat,pmat)` or `KSPSetOperators(ksp,amat,pmat)`. By default, the operation is `MATOP_MULT`, meaning that the `pmat` provides an approximate inverse of `amat`. If some other operation of `pmat` implements the approximate inverse, use `PCMatSetApplyOperation()` to select that operation.

## See Also

KSP: Linear System Solvers, `PCCreate()`, `PCSetType()`, `PCType`, `PC`, `PCSHELL`, `MatOperation`, `PCMatSetApplyOperation()`, `PCMatGetApplyOperation()`

## Level

intermediate

## Location

src/ksp/pc/impls/mat/pcmat.c

Index of all PC routines
Table of Contents for all manual pages
Index of all manual pages