NEPSetEigenvalueComparison#

Specifies the eigenvalue comparison function when NEPSetWhichEigenpairs() is set to NEP_WHICH_USER.

Synopsis#

#include "slepcnep.h" 
PetscErrorCode NEPSetEigenvalueComparison(NEP nep,SlepcEigenvalueComparisonFn *comp,void *ctx)

Logically Collective

Input Parameters#

  • nep - eigensolver context obtained from NEPCreate()

  • comp - a pointer to the comparison function

  • ctx - a context pointer (the last parameter to the comparison function)

Note#

The returning parameter ‘res’ can be

  • negative - if the 1st eigenvalue is preferred to the 2st one

  • zero - if both eigenvalues are equally preferred

  • positive - if the 2st eigenvalue is preferred to the 1st one

See Also#

NEPSetWhichEigenpairs(), NEPWhich

Level#

advanced

Location#

src/nep/interface/nepopts.c


Index of all NEP routines Table of Contents for all manual pages Index of all manual pages