EPSGetEigenpair
Gets the i-th solution of the eigenproblem as computed by EPSSolve(). The solution consists in both the eigenvalue and the eigenvector (if available).
Synopsis
#include "slepceps.h"
PetscErrorCode EPSGetEigenpair(EPS eps, int i, PetscScalar *eigr, PetscScalar *eigi, Vec Vr, Vec Vi)
Not Collective
Input Parameters
| eps | - eigensolver context
|
| i | - index of the solution
|
Output Parameters
| eigr | - real part of eigenvalue
|
| eigi | - imaginary part of eigenvalue
|
| Vr | - real part of eigenvector
|
| Vi | - imaginary part of eigenvector
|
Notes
If the eigenvalue is real, then eigi and Vi are set to zero. In the
complex case (e.g. with BOPT=O_complex) the eigenvalue is stored
directly in eigr (eigi is set to zero) and the eigenvector Vr (Vi is
set to zero).
The index i should be a value between 0 and nconv (see EPSGetConverged()).
Eigenpairs are indexed according to the ordering criterion established
with EPSSetWhichEigenpairs().
See Also
EPSSolve(), EPSGetConverged(), EPSSetWhichEigenpairs(),
EPSGetInvariantSubspace()
Level:beginner
Location:src/eps/interface/solve.c
Index of all EPS routines
Table of Contents for all manual pages
Index of all manual pages
Examples
src/examples/ex1.c.html
src/examples/ex2.c.html
src/examples/ex3.c.html
src/examples/ex4.c.html
src/examples/ex5.c.html
src/examples/ex7.c.html
src/examples/ex8.c.html
src/examples/ex9.c.html
src/examples/ex10.c.html
src/examples/ex11.c.html
src/examples/ex1f.F.html