#include "slepceps.h" PetscErrorCode EPSGetLeftEigenvector(EPS eps,PetscInt i,Vec Wr,Vec Wi)Collective
eps | - eigensolver context | |
i | - index of the solution |
Wr | - real part of left eigenvector | |
Wi | - imaginary part of left eigenvector |
If the corresponding eigenvalue is real, then Wi is set to zero. If PETSc is configured with complex scalars the eigenvector is stored directly in Wr (Wi is set to zero). In any case, the user can pass NULL in Wr or Wi if one of them is not required.
The index i should be a value between 0 and nconv-1 (see EPSGetConverged()). Eigensolutions are indexed according to the ordering criterion established with EPSSetWhichEigenpairs().
Left eigenvectors are available only if the twosided flag was set, see EPSSetTwoSided().