petsc-3.12.5 2020-03-29
Report Typos and Errors

MatIsHermitian

Test whether a matrix is Hermitian

Synopsis

#include "petscmat.h" 
PetscErrorCode MatIsHermitian(Mat A,PetscReal tol,PetscBool  *flg)
Collective on Mat

Input Parameter

A - the matrix to test
tol - difference between value and its transpose less than this amount counts as equal (use 0.0 for exact Hermitian)

Output Parameters

flg -the result

See Also

MatTranspose(), MatIsTranspose(), MatIsHermitian(), MatIsStructurallySymmetric(), MatSetOption(),
MatIsSymmetricKnown(), MatIsSymmetric()

Level

intermediate

Location

src/mat/interface/matrix.c

Implementations

MatIsHermitian_SeqAIJ in src/mat/impls/aij/seq/aij.c
MatIsHermitian_SeqDense in src/mat/impls/dense/seq/dense.c
MatIsHermitian_IS in src/mat/impls/is/matis.c
MatIsHermitian_SeqSBAIJ in src/mat/impls/sbaij/seq/sbaij.c

Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages