EPSSortEigenvalues

Sorts a list of eigenvalues according to a certain criterium.

Synopsis

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

Input Parameters

n - dimension of the eigenproblem
eig - pointer to the array containing the eigenvalues
eigi - imaginary part of the eigenvalues (only when using real numbers)
which - sorting criterium
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 criterium

See Also

EPSDenseNHEPSorted()

Level:developer
Index of all EPS routines
Table of Contents for all manual pages
Index of all manual pages