# 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
 `MatSeqBAIJGetArray()`, `MatSeqAIJGetArray()`, `MatSeqAIJRestoreArray()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/baij/seq/baij.c.html#MatSeqBAIJRestoreArray">src/mat/impls/baij/seq/baij.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/baij/seq/baij.c.html#MatSeqBAIJRestoreArray_SeqBAIJ">MatSeqBAIJRestoreArray_SeqBAIJ in src/mat/impls/baij/seq/baij.c</A><BR>


---
[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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
