:orphan: # MatFactorGetError gets the error code from a factorization ## Synopsis ``` #include "petscmat.h" PetscErrorCode MatFactorGetError(Mat mat, MatFactorError *err) ``` Logically Collective ## Input Parameter - ***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 [](ch_matrices), `Mat`, `MatZeroEntries()`, `MatFactor()`, `MatGetFactor()`, `MatLUFactorSymbolic()`, `MatCholeskyFactorSymbolic()`, `MatFactorClearError()`, `MatFactorGetErrorZeroPivot()`, `MatFactorError` ## Level advanced ## Location src/mat/interface/matrix.c --- [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)