# MatMAIJRedimension
Get a new `MATMAIJ` matrix with the same action, but for a different block size 
## Synopsis
```
#include "petscmat.h" 
PetscErrorCode MatMAIJRedimension(Mat A, PetscInt dof, Mat *B)
```
Logically Collective


## Input Parameters

- ***A -*** the `MATMAIJ` matrix
- ***dof -*** the block size for the new matrix



## Output Parameter

- ***B -*** the new `MATMAIJ` matrix





## See Also
 `MATMAIJ`, `MatCreateMAIJ()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/maij/maij.c.html#MatMAIJRedimension">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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
