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

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/coarsen/impls/hem/hem.c.html#MatCoarsenView_HEM">MatCoarsenView_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#MatCoarsenView_MIS">MatCoarsenView_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#MatCoarsenView_MISK">MatCoarsenView_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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
