:orphan:
# MatMAIJGetAIJ
Get the `MATAIJ` matrix describing the blockwise action of the `MATMAIJ` matrix 
## Synopsis
```
#include "petscmat.h" 
PetscErrorCode MatMAIJGetAIJ(Mat A, Mat *B)
```
Not Collective, but if the `MATMAIJ` matrix is parallel, the `MATAIJ` matrix is also parallel


## Input Parameter

- ***A -*** the `MATMAIJ` matrix



## Output Parameter

- ***B -*** the `MATAIJ` matrix





## Note
The reference count on the `MATAIJ` matrix is not increased so you should not destroy it.


## See Also
 [](ch_matrices), `Mat`, `MATMAIJ`, `MATAIJ`, `MatCreateMAIJ()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/maij/maij.c.html#MatMAIJGetAIJ">src/mat/impls/maij/maij.c</A>


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