# PCComputeOperator
Computes the explicit preconditioned operator. 
## Synopsis
```
#include "petscksp.h" 
PetscErrorCode PCComputeOperator(PC pc, MatType mattype, Mat *mat)
```
Collective on pc


## Input Parameters

- ***pc -*** the preconditioner object
- ***mattype -*** the matrix type to be used for the operator



## Output Parameter

- ***mat -*** the explicit preconditioned operator



## Note
This computation is done by applying the operators to columns of the identity matrix.
This routine is costly in general, and is recommended for use only with relatively small systems.
Currently, this routine uses a dense matrix format when mattype == NULL




## See Also
 `PC`, `KSPComputeOperator()`, `MatType`


## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/interface/precon.c.html#PCComputeOperator">src/ksp/pc/interface/precon.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/pc/interface/precon.c)


[Index of all PC routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
