# MatTransposeGetMat
Gets the `Mat` object stored inside a `MATTRANSPOSEVIRTUAL` 
## Synopsis
```
#include "petscmat.h" 
PetscErrorCode MatTransposeGetMat(Mat A, Mat *M)
```
Logically collective


## Input Parameter

- ***A  -*** the `MATTRANSPOSEVIRTUAL` matrix



## Output Parameter

- ***M -*** the matrix object stored inside A





## See Also
 `MATTRANSPOSEVIRTUAL`, `MatCreateTranspose()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/transpose/transm.c.html#MatTransposeGetMat">src/mat/impls/transpose/transm.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/transpose/transm.c.html#MatTransposeGetMat_Transpose">MatTransposeGetMat_Transpose in src/mat/impls/transpose/transm.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/impls/transpose/transm.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)  
