:orphan:
# MatHermitianTranspose
Computes an in-place or out-of-place Hermitian transpose of a matrix in complex conjugate.
## Synopsis
```
#include "petscmat.h"
PetscErrorCode MatHermitianTranspose(Mat mat, MatReuse reuse, Mat *B)
```
Collective
## Input Parameters
- ***mat -*** the matrix to transpose and complex conjugate
- ***reuse -*** either `MAT_INITIAL_MATRIX`, `MAT_REUSE_MATRIX`, or `MAT_INPLACE_MATRIX`
## Output Parameter
- ***B -*** the Hermitian transpose
## See Also
[](ch_matrices), `Mat`, `MatTranspose()`, `MatMultTranspose()`, `MatMultTransposeAdd()`, `MatIsTranspose()`, `MatReuse`
## Level
intermediate
## Location
src/mat/interface/matrix.c
## Examples
src/ksp/ksp/tutorials/ex27.c
## Implementations
MatHermitianTranspose_Elemental in src/mat/impls/elemental/matelem.cxx
MatHermitianTranspose_ScaLAPACK in src/mat/impls/scalapack/matscalapack.c
---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/interface/matrix.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)