#include "slepcpep.h" PetscErrorCode PEPSetConvergenceTestFunction(PEP pep,PetscErrorCode (*conv)(PEP pep,PetscScalar eigr,PetscScalar eigi,PetscReal res,PetscReal *errest,void *ctx),void* ctx,PetscErrorCode (*destroy)(void*))Logically Collective
pep | - eigensolver context obtained from PEPCreate() | |
conv | - a pointer to the convergence test function | |
ctx | - context for private data for the convergence routine (may be null) | |
destroy | - a routine for destroying the context (may be null) |
PetscErrorCode conv(PEP pep,PetscScalar eigr,PetscScalar eigi,PetscReal res,PetscReal *errest,void *ctx)
pep | - eigensolver context obtained from PEPCreate() | |
eigr | - real part of the eigenvalue | |
eigi | - imaginary part of the eigenvalue | |
res | - residual norm associated to the eigenpair | |
errest | - (output) computed error estimate | |
ctx | - optional context, as set by PEPSetConvergenceTestFunction() |