#include "slepcpep.h" PetscErrorCode PEPSetConvergenceTestFunction(PEP pep,PetscErrorCode (*func)(PEP,PetscScalar,PetscScalar,PetscReal,PetscReal*,void*),void* ctx,PetscErrorCode (*destroy)(void*))Logically Collective on PEP
pep | - eigensolver context obtained from PEPCreate() | |
func | - a pointer to the convergence test function | |
ctx | - [optional] context for private data for the convergence routine | |
destroy | - [optional] destructor for the context (may be NULL; PETSC_NULL_FUNCTION in Fortran) |
func(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 PEPSetConvergenceTest() |
Location: src/pep/interface/pepopts.c
Index of all PEP routines
Table of Contents for all manual pages
Index of all manual pages