SlepcIsHermitian

Checks if a matrix is Hermitian or not.

Synopsis

#include "slepcsys.h" 
PetscErrorCode SlepcIsHermitian(Mat A,PetscTruth *is)
Collective on Mat

Input parameter

A - the matrix

Output parameter

is - flag indicating if the matrix is Hermitian

Notes

The result of Ax and A^Hx (with a random x) is compared, but they could be equal also for some non-Hermitian matrices.

This routine will not work with matrix formats MATSEQSBAIJ or MATMPISBAIJ, or when PETSc is configured with complex scalars.

Location: src/sys/slepcutil.c
Index of all sys routines
Table of Contents for all manual pages
Index of all manual pages