# MatCreateMAIJ
Creates a matrix type providing restriction and interpolation operations for multicomponent problems.  It interpolates each component the same way independently.  The matrix type is based on `MATSEQAIJ` for sequential matrices, and `MATMPIAIJ` for distributed matrices. 
## Synopsis
```
#include "petscmat.h" 
PetscErrorCode MatCreateMAIJ(Mat A, PetscInt dof, Mat *maij)
```
Collective


## Input Parameters

- ***A -*** the `MATAIJ` matrix describing the action on blocks
- ***dof -*** the block size (number of components per node)



## Output Parameter

- ***maij -*** the new `MATMAIJ` matrix



## Operations provided
```none
    MatMult()
    MatMultTranspose()
    MatMultAdd()
    MatMultTransposeAdd()
    MatView()
```





## See Also
 `MATAIJ`, `MATMAIJ`, `MatMAIJGetAIJ()`, `MatMAIJRedimension()`, `MATMAIJ`

## Level
advanced

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

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/tutorials/ex48.c.html">src/snes/tutorials/ex48.c.html</A><BR>


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