:orphan:
# MatSeqBAIJRestoreArray
returns access to the array where the data for a `MATSEQBAIJ` matrix is stored obtained by `MatSeqBAIJGetArray()`
## Synopsis
```
#include "petscmat.h"
PetscErrorCode MatSeqBAIJRestoreArray(Mat A, PetscScalar **array)
```
Not Collective
## Input Parameters
- ***mat -*** a `MATSEQBAIJ` matrix
- ***array -*** pointer to the data
## See Also
[](ch_matrices), `Mat`, `MatSeqBAIJGetArray()`, `MatSeqAIJGetArray()`, `MatSeqAIJRestoreArray()`
## Level
intermediate
## Location
src/mat/impls/baij/seq/baij.c
## Implementations
MatSeqBAIJRestoreArray_SeqBAIJ in src/mat/impls/baij/seq/baij.c
---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/impls/baij/seq/baij.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)