#include "slepcsvd.h" PetscErrorCode SVDSetStoppingTestFunction(SVD svd,PetscErrorCode (*stop)(SVD svd,PetscInt its,PetscInt max_it,PetscInt nconv,PetscInt nsv,SVDConvergedReason *reason,void *ctx),void* ctx,PetscErrorCode (*destroy)(void*))Logically Collective
svd | - singular value solver context obtained from SVDCreate() | |
stop | - pointer to the stopping test function | |
ctx | - context for private data for the stopping routine (may be null) | |
destroy | - a routine for destroying the context (may be null) |
PetscErrorCode stop(SVD svd,PetscInt its,PetscInt max_it,PetscInt nconv,PetscInt nsv,SVDConvergedReason *reason,void *ctx)
svd | - singular value solver context obtained from SVDCreate() | |
its | - current number of iterations | |
max_it | - maximum number of iterations | |
nconv | - number of currently converged singular triplets | |
nsv | - number of requested singular triplets | |
reason | - (output) result of the stopping test | |
ctx | - optional context, as set by SVDSetStoppingTestFunction() |