:orphan: # MatDenseGetLocalMatrix For a `MATMPIDENSE` or `MATSEQDENSE` matrix returns the sequential matrix that represents the operator. For sequential matrices it returns itself. ## Synopsis ``` #include "petscmat.h" PetscErrorCode MatDenseGetLocalMatrix(Mat A, Mat *B) ``` ## Input Parameter - ***A -*** the sequential or MPI `MATDENSE` matrix ## Output Parameter - ***B -*** the inner matrix ## See Also [](ch_matrices), `Mat`, `MATDENSE`, `MATMPIDENSE`, `MATSEQDENSE` ## Level intermediate ## Location src/mat/impls/dense/mpi/mpidense.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/impls/dense/mpi/mpidense.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)