#include "slepcsvd.h" PetscErrorCode SVDSetConvergenceTestFunction(SVD svd,PetscErrorCode (*conv)(SVD svd,PetscReal sigma,PetscReal res,PetscReal *errest,void *ctx),void* ctx,PetscErrorCode (*destroy)(void*))Logically Collective
svd | - singular value solver context obtained from SVDCreate() | |
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(SVD svd,PetscReal sigma,PetscReal res,PetscReal *errest,void *ctx)
svd | - singular value solver context obtained from SVDCreate() | |
sigma | - computed singular value | |
res | - residual norm associated to the singular triplet | |
errest | - (output) computed error estimate | |
ctx | - optional context, as set by SVDSetConvergenceTestFunction() |