:orphan:
# MatGetSeqNonzeroStructure
Extracts the nonzero structure from a matrix and stores it, in its entirety, on each process 
## Synopsis
```
#include "petscmat.h" 
PetscErrorCode MatGetSeqNonzeroStructure(Mat mat, Mat *matstruct)
```
Collective


## Input Parameter

- ***mat -*** the matrix



## Output Parameter

- ***matstruct -*** the sequential matrix with the nonzero structure of mat





## See Also
 [](ch_matrices), `Mat`, `MatDestroySeqNonzeroStructure()`, `MatCreateSubMatrices()`, `MatDestroyMatrices()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/interface/matrix.c.html#MatGetSeqNonzeroStructure">src/mat/interface/matrix.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/aij/mpi/mpiaij.c.html#MatGetSeqNonzeroStructure_MPIAIJ">MatGetSeqNonzeroStructure_MPIAIJ in src/mat/impls/aij/mpi/mpiaij.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/baij/mpi/mpibaij.c.html#MatGetSeqNonzeroStructure_MPIBAIJ">MatGetSeqNonzeroStructure_MPIBAIJ in src/mat/impls/baij/mpi/mpibaij.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/interface/matrix.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)  
