:orphan: # 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 [](ch_matrices), `Mat`, `MATMAIJ`, `MatCreateMAIJ()` ## Level advanced ## Location src/mat/impls/maij/maij.c --- [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)