#include "slepcbv.h" PetscErrorCode BVSetMatrix(BV bv,Mat B,PetscBool indef)Collective
bv | - the basis vectors context | |
B | - a symmetric matrix (may be NULL) | |
indef | - a flag indicating if the matrix is indefinite |
Matrix B must be real symmetric (or complex Hermitian). A genuine inner product requires that B is also positive (semi-)definite. However, we also allow for an indefinite B (setting indef=PETSC_TRUE), in which case the orthogonalization uses an indefinite inner product.
This affects operations BVDot(), BVNorm(), BVOrthogonalize(), and variants.
Setting B=NULL has the same effect as if the identity matrix was passed.