:orphan:
# MatSeqBAIJGetArray
gives read/write access to the array where the data for a `MATSEQBAIJ` matrix is stored
## Synopsis
```
#include "petscmat.h"
PetscErrorCode MatSeqBAIJGetArray(Mat A, PetscScalar **array)
```
Not Collective
## Input Parameter
- ***mat -*** a `MATSEQBAIJ` matrix
## Output Parameter
- ***array -*** pointer to the data
## See Also
[](ch_matrices), `Mat`, `MATSEQBAIJ`, `MatSeqBAIJRestoreArray()`, `MatSeqAIJGetArray()`, `MatSeqAIJRestoreArray()`
## Level
intermediate
## Location
src/mat/impls/baij/seq/baij.c
## Implementations
MatSeqBAIJGetArray_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)