petsc-3.6.4 2016-04-12
Report Typos and Errors


Checks the flag on the matrix to see if it is symmetric.


#include "petscmat.h" 
PetscErrorCode  MatIsSymmetricKnown(Mat A,PetscBool  *set,PetscBool  *flg)
Not Collective

Input Parameter

A -the matrix to check

Output Parameters

set - if the symmetric flag is set (this tells you if the next flag is valid)
flg - the result

Note: Does not check the matrix values directly, so this may return unknown (set = PETSC_FALSE). Use MatIsSymmetric() if you want it explicitly checked

See Also

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

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