# MatOrderingRegisterAll
Registers all of the matrix reordering routines in PETSc. 
## Synopsis
```
#include "petscmat.h"   
PetscErrorCode MatOrderingRegisterAll(void)
```
Not Collective




## Adding new methods
To add a new method to the registry. Copy this routine and
modify it to incorporate a call to `MatReorderRegister()` for
the new method, after the current list.

Restricting the choices: To prevent all of the methods from being
registered and thus save memory, copy this routine and comment out
those orderigs you do not wish to include.  Make sure that the
replacement routine is linked before libpetscmat.a.


## See Also
 `MatOrderingType`, `MatOrderingRegister()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/order/sregis.c.html#MatOrderingRegisterAll">src/mat/order/sregis.c</A>


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


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