# MATHYPRESTRUCT
MATHYPRESTRUCT = "hyprestruct" - A matrix type to be used for parallel sparse matrices based on the hypre HYPRE_StructMatrix. 


## Notes
Unlike the more general support for blocks in hypre this allows only one block per process and requires the block
be defined by a `DMDA`.

The matrix needs a `DMDA` associated with it by either a call to `MatSetDM()` or if the matrix is obtained from `DMCreateMatrix()`


## See Also
 `MatCreate()`, `PCPFMG`, `MatSetDM()`, `DMCreateMatrix()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/da/hypre/mhyp.c.html#MATHYPRESTRUCT">src/dm/impls/da/hypre/mhyp.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/da/hypre/mhyp.c)


[Index of all DMDA routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
