:orphan:
# MatCoarsenView
Prints the coarsen data structure.
## Synopsis
```
#include "petscmatcoarsen.h"
PetscErrorCode MatCoarsenView(MatCoarsen agg, PetscViewer viewer)
```
Collective
## Input Parameters
- ***agg -*** the coarsen context
- ***viewer -*** optional visualization context
For viewing the options database see `MatCoarsenViewFromOptions()`
## See Also
`MatCoarsen`, `PetscViewer`, `PetscViewerASCIIOpen()`, `MatCoarsenViewFromOptions`
## Level
advanced
## Location
src/mat/coarsen/coarsen.c
## Implementations
MatCoarsenView_HEM in src/mat/coarsen/impls/hem/hem.c
MatCoarsenView_MIS in src/mat/coarsen/impls/mis/mis.c
MatCoarsenView_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)