# MatCreateTranspose
Creates a new matrix `MATTRANSPOSEVIRTUAL` object that behaves like A' 
## Synopsis
```
#include "petscmat.h" 
PetscErrorCode MatCreateTranspose(Mat A, Mat *N)
```
Collective on A


## Input Parameter

- ***A  -*** the (possibly rectangular) matrix



## Output Parameter

- ***N -*** the matrix that represents A'





## Note
The transpose A' is NOT actually formed! Rather the new matrix
object performs the matrix-vector product by using the `MatMultTranspose()` on
the original matrix


## See Also
 `MATTRANSPOSEVIRTUAL`, `MatCreateNormal()`, `MatMult()`, `MatMultTranspose()`, `MatCreate()`

## Level
intermediate

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


---
[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)  
