EPSSortEigenvalues

Sorts a list of eigenvalues according to a certain criterion.

Synopsis

#include "slepceps.h" 
PetscErrorCode EPSSortEigenvalues(PetscInt n,PetscScalar *eig,PetscScalar *eigi,EPSWhich which,PetscInt nev,PetscInt *permout)
Not Collective

Input Parameters

n - number of eigenvalue in the list
eig - pointer to the array containing the eigenvalues
eigi - imaginary part of the eigenvalues (only when using real numbers)
which - sorting criterion
nev - number of wanted eigenvalues

Output Parameter

permout - resulting permutation

Notes

The result is a list of indices in the original eigenvalue array corresponding to the first nev eigenvalues sorted in the specified criterion

See Also

EPSSortEigenvaluesReal(), EPSSetWhichEigenpairs()

Location: src/eps/interface/solve.c
Index of all EPS routines
Table of Contents for all manual pages
Index of all manual pages