NEPSortEigenvalues

Sorts a list of eigenvalues according to the criterion specified via NEPSetWhichEigenpairs().

Synopsis

#include "slepcnep.h" 
PetscErrorCode NEPSortEigenvalues(NEP nep,PetscInt n,PetscScalar *eig,PetscInt *perm)
Not Collective

Input Parameters

nep - the nonlinear eigensolver context
n - number of eigenvalues in the list
eig - pointer to the array containing the eigenvalues

Output Parameter

perm - resulting permutation

Note

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

NEPSetWhichEigenpairs()

Location: src/nep/interface/nepsolve.c
Index of all NEP routines
Table of Contents for all manual pages
Index of all manual pages