# KSPMatRegisterAll
Registers all matrix implementations in the `KSP` package. 
## Synopsis
```
#include "petscsnes.h" 
PetscErrorCode KSPMatRegisterAll(void)
```
Not Collective




## See Also
 [](chapter_ksp), `Mat`, `MatRegister()`, `MatRegisterAll()`, `KSPInitializePackage()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/utils/kspmatregi.c.html#KSPMatRegisterAll">src/ksp/ksp/utils/kspmatregi.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/ksp/utils/kspmatregi.c)


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