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


## Input Parameter

- ***A -*** the `MATKAIJ` 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`, `MatCreateKAIJ()`, `MATKAIJ`, `MATAIJ`

## Level
advanced

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


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