#include "slepcvec.h" PetscErrorCode VecCheckOrthogonality(Vec V[],PetscInt nv,Vec W[],PetscInt nw,Mat B,PetscViewer viewer,PetscReal *lev)Collective
V | - a set of vectors | |
nv | - number of V vectors | |
W | - an alternative set of vectors (optional) | |
nw | - number of W vectors | |
B | - Hermitian matrix defining the inner product (optional) | |
viewer | - optional visualization context |
lev | - level of orthogonality (optional) |
If matrix B is provided then the check uses the B-inner product, W'*B*V, where B is assumed to be Hermitian.
If V, W represent eigenvectors computed by SLEPc, this function will not work correctly if one of the eigenvalues is complex when running with real scalars.
If lev is not NULL, it will contain the maximum entry of matrix W'*V - I (in absolute value) omitting the diagonal. Otherwise, the matrix W'*V is printed.