:orphan:
# MatFactorClearError
clears the error code in a factorization 
## Synopsis
```
#include "petscmat.h" 
PetscErrorCode MatFactorClearError(Mat mat)
```
Logically Collective


## Input Parameter

- ***mat -*** the factored matrix





## Note
This can also be called on non-factored matrices that come from, for example, matrices used in SOR.


## See Also
 [](ch_matrices), `Mat`, `MatZeroEntries()`, `MatFactor()`, `MatGetFactor()`, `MatLUFactorSymbolic()`, `MatCholeskyFactorSymbolic()`, `MatFactorGetError()`, `MatFactorGetErrorZeroPivot()`,
`MatGetErrorCode()`, `MatFactorError`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/interface/matrix.c.html#MatFactorClearError">src/mat/interface/matrix.c</A>


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


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