:orphan:
# MatConjugate
replaces the matrix values with their complex conjugates
## Synopsis
```
#include "petscmat.h"
PetscErrorCode MatConjugate(Mat mat)
```
Logically Collective
## Input Parameter
- ***mat -*** the matrix
## See Also
[](ch_matrices), `Mat`, `MatRealPart()`, `MatImaginaryPart()`, `VecConjugate()`, `MatTranspose()`
## Level
advanced
## Location
src/mat/interface/matrix.c
## Implementations
MatConjugate_MPIAIJ in src/mat/impls/aij/mpi/mpiaij.c
MatConjugate_SeqAIJ in src/mat/impls/aij/seq/aij.c
MatConjugate_MPIBAIJ in src/mat/impls/baij/mpi/mpibaij.c
MatConjugate_SeqBAIJ in src/mat/impls/baij/seq/baij.c
MatConjugate_MPIDense in src/mat/impls/dense/mpi/mpidense.c
MatConjugate_SeqDense in src/mat/impls/dense/seq/dense.c
MatConjugate_Elemental in src/mat/impls/elemental/matelem.cxx
MatConjugate_MPISBAIJ in src/mat/impls/sbaij/mpi/mpisbaij.c
MatConjugate_SeqSBAIJ in src/mat/impls/sbaij/seq/sbaij.c
MatConjugate_ScaLAPACK in src/mat/impls/scalapack/matscalapack.c
MatConjugate_MPISELL in src/mat/impls/sell/mpi/mpisell.c
MatConjugate_SeqSELL in src/mat/impls/sell/seq/sell.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)