#include <gsl/gsl_errno.h>
#include <string>
Go to the source code of this file.
Namespaces | |
namespace | error_handling |
Classes | |
class | error_handling::error |
generic error and base struct. /*GSL_FAILURE = -1,*/ More... | |
struct | error_handling::noConvergence |
GSL_CONTINUE = -2, /* iteration has not converged */. More... | |
struct | error_handling::badDomain |
GSL_EDOM = 1, /* input domain error, e.g sqrt(-1) */. More... | |
struct | error_handling::badRange |
GSL_ERANGE = 2, /* output range error, e.g. exp(1e100) */. More... | |
struct | error_handling::badPointer |
GSL_EFAULT = 3, /* invalid pointer */. More... | |
struct | error_handling::badArgument |
GSL_EINVAL = 4, /* invalid argument supplied by user */. More... | |
struct | error_handling::failure |
GSL_EFAILED = 5, /* generic failure */. More... | |
struct | error_handling::failedFactorisation |
GSL_EFACTOR = 6, /* factorization failed */. More... | |
struct | error_handling::failedSanity |
GSL_ESANITY = 7, /* sanity check failed - shouldn't happen */. More... | |
struct | error_handling::outOfMemory |
GSL_ENOMEM = 8, /* malloc failed */. More... | |
struct | error_handling::badFunction |
GSL_EBADFUNC = 9, /* problem with user-supplied function */. More... | |
struct | error_handling::runAway |
GSL_ERUNAWAY = 10, /* iterative process is out of control */. More... | |
struct | error_handling::maxIterations |
GSL_EMAXITER = 11, /* exceeded max number of iterations */. More... | |
struct | error_handling::divideByZero |
GSL_EZERODIV = 12, /* tried to divide by zero */. More... | |
struct | error_handling::badTolerance |
GSL_EBADTOL = 13, /* user specified an invalid tolerance */. More... | |
struct | error_handling::aboveTolerance |
GSL_ETOL = 14, /* failed to reach the specified tolerance */. More... | |
struct | error_handling::underflow |
GSL_EUNDRFLW = 15, /* underflow */. More... | |
struct | error_handling::overflow |
GSL_EOVRFLW = 16, /* overflow */. More... | |
struct | error_handling::lossOfAccuracy |
GSL_ELOSS = 17, /* loss of accuracy */. More... | |
struct | error_handling::roundOffError |
GSL_EROUND = 18, /* failed because of roundoff error */. More... | |
struct | error_handling::inconformantSizes |
GSL_EBADLEN = 19, /* matrix, vector lengths are not conformant */. More... | |
struct | error_handling::matrixNotSquare |
GSL_ENOTSQR = 20, /* matrix not square */. More... | |
struct | error_handling::singularityFound |
GSL_ESING = 21, /* apparent singularity detected */. More... | |
struct | error_handling::integralOrSeriesDivergent |
GSL_EDIVERGE = 22, /* integral or series is divergent */. More... | |
struct | error_handling::badHardware |
GSL_EUNSUP = 23, /* requested feature is not supported by the hardware */. More... | |
struct | error_handling::notImplemented |
GSL_EUNIMPL = 24, /* requested feature not (yet) implemented */. More... | |
struct | error_handling::cacheLimitExceeded |
GSL_ECACHE = 25, /* cache limit exceeded */. More... | |
struct | error_handling::tableLimitExceeded |
GSL_ETABLE = 26, /* table limit exceeded */. More... | |
struct | error_handling::iterationNotProgressing |
GSL_ENOPROG = 27, /* iteration is not making progress towards solution */. More... | |
struct | error_handling::jacobiansNotImprovingSolution |
GSL_ENOPROGJ = 28, /* jacobian evaluations are not improving solution */. More... | |
struct | error_handling::cannotReachToleranceInF |
GSL_ETOLF = 29, /* cannot reach the specified tolerance in F */. More... | |
struct | error_handling::cannotReachToleranceInX |
GSL_ETOLX = 30, /* cannot reach the specified tolerance in X */. More... | |
struct | error_handling::cannotReachToleranceInGradient |
GSL_ETOLG = 31, /* cannot reach the specified tolerance in gradient */. More... | |
struct | error_handling::endOfFile |
GSL_EOF = 32 /* end of file */. More... | |
struct | error_handling::indexOutOfRange |
Exception for indices out of range. More... | |
Functions | |
void | error_handling::errorHandler (const char *reason, const char *file, int line, int gsl_errno) |
Custom error handler to be used for GSL. |
Remember to put `gsl_set_error_handler(&errorHandler);' in the main() loops when including this header file; otherwise it's useless!