#include "slepcnep.h" PetscErrorCode NEPNLEIGSSetSingularitiesFunction(NEP nep,PetscErrorCode (*fun)(NEP nep,PetscInt *maxnp,PetscScalar *xi,void *ctx),void *ctx)Logically Collective
nep | - the NEP context | |
fun | - user function (if NULL then NEP retains any previously set value) | |
ctx | - [optional] user-defined context for private data for the function (may be NULL, in which case NEP retains any previously set value) |
PetscErrorCode fun(NEP nep,PetscInt *maxnp,PetscScalar *xi,void *ctx)
nep | - the NEP context | |
maxnp | - on input number of requested points in the discretization (can be set) | |
xi | - computed values of the discretization | |
ctx | - optional context, as set by NEPNLEIGSSetSingularitiesFunction() |
If the problem type has been set to rational with NEPSetProblemType(), then it is not necessary to set the singularities explicitly since the solver will try to determine them automatically.