# MATHYPRESSTRUCT
MATHYPRESSTRUCT = "hypresstruct" - A matrix type to be used for parallel sparse matrices based on the hypre HYPRE_SStructMatrix. 


## Notes
Unlike hypre's general semi-struct object consisting of a collection of structured-grid objects and unstructured
grid objects, we restrict the semi-struct objects to consist of only structured-grid components.

Unlike the more general support for parts and blocks in hypre this allows only one part, and 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
 `Mat`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/da/hypre/mhyp.c.html#MATHYPRESSTRUCT">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)  
