NEPCompareEigenvalues

Compares two eigenvalues according to a certain criterion.

Synopsis

#include "slepcnep.h" 
PetscErrorCode NEPCompareEigenvalues(NEP nep,PetscScalar a,PetscScalar b,PetscInt *result)
Not Collective

Input Parameters

nep - the nonlinear eigensolver context
a - the 1st eigenvalue
b - the 2nd eigenvalue

Output Parameter

res - result of comparison

Notes

Returns an integer less than, equal to, or greater than zero if the first eigenvalue is considered to be respectively less than, equal to, or greater than the second one.

The criterion of comparison is related to the 'which' parameter set with NEPSetWhichEigenpairs().

See Also

NEPSortEigenvalues(), NEPSetWhichEigenpairs()

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