:orphan:
# MatCompositeGetMatStructure
Returns the structure of matrices in the composite matrix.
## Synopsis
```
#include "petscmat.h"
PetscErrorCode MatCompositeGetMatStructure(Mat mat, MatStructure *str)
```
Not Collective
## Input Parameter
- ***mat -*** the composite matrix
## Output Parameter
- ***str -*** structure of the matrices
## See Also
[](ch_matrices), `Mat`, `MatCreateComposite()`, `MatCompositeSetMatStructure()`, `MATCOMPOSITE`
## Level
advanced
## Location
src/mat/impls/composite/mcomposite.c
## Implementations
MatCompositeGetMatStructure_Composite in src/mat/impls/composite/mcomposite.c
---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/impls/composite/mcomposite.c)
[Index of all Mat routines](index.md)
[Table of Contents for all manual pages](/manualpages/index.md)
[Index of all manual pages](/manualpages/singleindex.md)