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




## See Also
 `MatType`, `MatSetType()`, `MatRegister()`

## Level
advanced

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


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/interface/matregis.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)  
