Returns a symbolic constant that defines the termination criteria.
ctx
- context variable
none
#include "pgapack.h" int PGAGetStoppingRuleType(ctx) PGAContext *ctx
stop.c
Example:
PGAContext *ctx;
int stop;
:
stop = PGAGetStoppingRuleType(ctx);
if (stop & PGA_STOP_MAXITER)
printf("Stopping Rule = PGA_STOP_MAXITER\n");
if (stop & PGA_STOP_NOCHANGE)
printf("Stopping Rule = PGA_STOP_NOCHANGE\n");
if (stop & PGA_STOP_TOOSIMILAR)
printf("Stopping Rule = PGA_STOP_TOOSIMILAR\n");