# MatFactorGetCanUseOrdering
Indicates if the factorization can use the ordering provided in `MatLUFactorSymbolic()`, `MatCholeskyFactorSymbolic()` 
## Synopsis
```
#include "petscmat.h" 
PetscErrorCode MatFactorGetCanUseOrdering(Mat mat, PetscBool *flg)
```
Logically Collective


## Input Parameters

- ***mat -*** the matrix



## Output Parameters

- ***flg -*** `PETSC_TRUE` if uses the ordering





## Note
Most internal PETSc factorizations use the ordering passed to the factorization routine but external
packages do not, thus we want to skip generating the ordering when it is not needed or used.


## See Also
 `Mat`, [Matrix Factorization](sec_matfactor), `MatCopy()`, `MatDuplicate()`, `MatGetFactorAvailable()`, `MatGetFactor()`, `MatLUFactorSymbolic()`, `MatCholeskyFactorSymbolic()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/interface/matrix.c.html#MatFactorGetCanUseOrdering">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)  
