QEPSortEigenvalues

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

Synopsis

#include "slepcqep.h" 
PetscErrorCode QEPSortEigenvalues(QEP qep,PetscInt n,PetscScalar *eigr,PetscScalar *eigi,PetscInt *perm)
Not Collective

Input Parameters

qep - the quadratic eigensolver context
n - number of eigenvalues in the list
eigr - pointer to the array containing the eigenvalues
eigi - imaginary part of the eigenvalues (only when using real numbers)

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

QEPSortEigenvaluesReal(), QEPSetWhichEigenpairs()

Location: src/qep/interface/qepsolve.c
Index of all QEP routines
Table of Contents for all manual pages
Index of all manual pages