# MatFactorGetError
gets the error code from a factorization 
## Synopsis
```
#include "petscmat.h" 
PetscErrorCode MatFactorGetError(Mat mat, MatFactorError *err)
```
Logically Collective


## Input Parameters

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



## Output Parameter

- ***err  -*** the error code





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


## See Also
 `Mat`, `MatZeroEntries()`, `MatFactor()`, `MatGetFactor()`, `MatLUFactorSymbolic()`, `MatCholeskyFactorSymbolic()`, `MatFactorClearError()`, `MatFactorGetErrorZeroPivot()`,
`MatFactorError`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/interface/matrix.c.html#MatFactorGetError">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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
