# 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 dense matrix



## Output Parameter

- ***B -*** the inner matrix





## See Also
 `MATDENSE`, `MATMPIDENSE`, `MATSEQDENSE`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/dense/mpi/mpidense.c.html#MatDenseGetLocalMatrix">src/mat/impls/dense/mpi/mpidense.c</A>


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