: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
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/coarsen/coarsen.c.html#MatCoarsenApply">src/mat/coarsen/coarsen.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/coarsen/impls/hem/hem.c.html#MatCoarsenApply_HEM">MatCoarsenApply_HEM in src/mat/coarsen/impls/hem/hem.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/coarsen/impls/mis/mis.c.html#MatCoarsenApply_MIS">MatCoarsenApply_MIS in src/mat/coarsen/impls/mis/mis.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/coarsen/impls/misk/misk.c.html#MatCoarsenApply_MISK">MatCoarsenApply_MISK in src/mat/coarsen/impls/misk/misk.c</A><BR>


---
[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)  
