:orphan: # MatCoarsenApply Gets a coarsen for a matrix. ## Synopsis ``` #include "petscmatcoarsen.h" PetscErrorCode MatCoarsenApply(MatCoarsen coarser) ``` Collective ## Input Parameter - ***coarsen -*** the coarsen ## Options Database Keys - ***-mat_coarsen_type mis|hem|misk -*** set the coarsening type - ***-mat_coarsen_view -*** view the coarsening object ## Notes Use `MatCoarsenGetData()` to access the results of the coarsening The user can define additional coarsens; see `MatCoarsenRegister()`. ## See Also `MatCoarsen`, `MatCoarseSetFromOptions()`, `MatCoarsenSetType()`, `MatCoarsenRegister()`, `MatCoarsenCreate()`, `MatCoarsenDestroy()`, `MatCoarsenSetAdjacency()` `MatCoarsenGetData()` ## Level advanced ## Location src/mat/coarsen/coarsen.c ## Implementations MatCoarsenApply_HEM in src/mat/coarsen/impls/hem/hem.c
MatCoarsenApply_MIS in src/mat/coarsen/impls/mis/mis.c
MatCoarsenApply_MISK in src/mat/coarsen/impls/misk/misk.c
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/coarsen/coarsen.c) [Index of all MatOrderings routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)