:orphan: # MatFinalizePackage This function destroys everything in the Petsc interface to the `Mat` package. It is called from `PetscFinalize()`. ## Synopsis ``` PetscErrorCode MatFinalizePackage(void) ``` ## See Also `Mat`, `PetscFinalize()`, `MatInitializePackage()` ## Level developer ## Location src/mat/interface/dlregismat.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/interface/dlregismat.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)