:orphan: # MatIsHermitianTranspose Test whether a matrix is another one's Hermitian transpose, ## Synopsis ``` #include "petscmat.h" PetscErrorCode MatIsHermitianTranspose(Mat A, Mat B, PetscReal tol, PetscBool *flg) ``` Collective ## Input Parameters - ***A -*** the matrix to test - ***B -*** the matrix to test against, this can equal the first parameter - ***tol -*** tolerance, differences between entries smaller than this are counted as zero ## Output Parameter - ***flg -*** the result ## Notes Only available for `MATAIJ` matrices. The sequential algorithm has a running time of the order of the number of nonzeros; the parallel test involves parallel copies of the block-offdiagonal parts of the matrix. ## See Also [](ch_matrices), `Mat`, `MatTranspose()`, `MatIsSymmetric()`, `MatIsHermitian()`, `MatIsTranspose()` ## Level intermediate ## Location src/mat/interface/matrix.c ## Implementations MatIsHermitianTranspose_SeqAIJ in src/mat/impls/aij/seq/aij.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)