NAME
Math::GSL::Errno - Error Handling
SYNOPSIS
use Math::GSL::Errno qw/:all/;gsl_set_error_handler_off();print gsl_strerror($GSL_EDOM) . "\n";
STATUS CODES
- •
-
$GSL_SUCCESSSuccess
- •
-
$GSL_FAILUREGeneral Failure
- •
-
$GSL_CONTINUEIteration has not converged
- •
-
$GSL_EDOMDomain error; used by mathematical functions when an argument value does not fall into the domain over which the function is defined (like EDOM in the C library)
- •
-
$GSL_ERANGERange error; used by mathematical functions when the result value is not representable because of overflow or underflow (like ERANGE in the C library)
- •
-
$GSL_EFAULTInvalid Pointer
- •
-
$GSL_EINVALInvalid argument. This is used to indicate various kinds of problems with passing the wrong argument to a library function (like EINVAL in the C library).Invalid argument. This is used to indicate various kinds of problems with passing the wrong argument to a library function (like EINVAL in the C library).
- •
-
$GSL_EFAILEDGeneric Failure
- •
-
$GSL_EFACTORFactorization Failed
- •
-
$GSL_ESANITYSanity Check Failed
- •
-
$GSL_ENOMEMNo memory available. The system cannot allocate more virtual memory because its capacity is full (like ENOMEM in the C library). This error is reported when a GSL routine encounters problems when trying to allocate memory with malloc.
- •
-
$GSL_EBADFUNCProblem with user-supplied function
- •
-
$GSL_ERUNAWAYIterative process is our of control
- •
-
$GSL_EMAXITERExceeded max number of iterations
- •
-
$GSL_EZERODIVDivision by zero
- •
-
$GSL_EBADTOLInvalid user-specified tolerance
- •
-
$GSL_ETOLFailed to reach the specified tolerance
- •
-
$GSL_EUNDRFLWUnderflow
- •
-
$GSL_EOVRFLWOverflow
- •
-
$GSL_ELOSSLoss of accuracy
- •
-
$GSL_EROUNDFailed due to roundoff error
- •
-
$GSL_EBADLENMatrix/vector lengths not compatible
- •
-
$GSL_ENOTSQRNot a square matrix
- •
-
$GSL_ESINGSingularity Detected
- •
-
$GSL_EDIVERGEIntegral/Series is divergent
- •
-
$GSL_EUNSUPNot supported by hardware
- •
-
$GSL_EUNIMPLNot implemented
- •
-
$GSL_ECACHECache limit exceeded
- •
-
$GSL_ETABLETable limit exceeded
- •
-
$GSL_ENOPROGIteration not converging
- •
-
$GSL_ENOPROGJJacobian not improving solution
- •
-
$GSL_ETOLFCannot reach tolerance in F
- •
-
$GSL_ETOLXCannot reach tolerance in X
- •
-
$GSL_ETOLGCannot reach tolerance in Gradient
- •
-
$GSL_EOFEnd of file
FUNCTIONS
- •
-
gsl_error
- •
-
gsl_stream_printf
- •
-
gsl_strerror($gsl_errno) - This function returns a pointer to a string describing the error code gsl_errno. For example, print ("error: gsl_strerror ($status)\n"); would print an error message like error: output range error for a status value of GSL_ERANGE.
- •
-
gsl_set_error_handler
- •
-
gsl_set_error_handler_off() - This function turns off the error handler by defining an error handler which does nothing. This will cause the program to continue after any error, so the return values from any library routines must be checked. This is the recommended behavior for production programs. The previous handler is returned (so that you can restore it later).
- •
-
gsl_set_stream_handler
- •
-
gsl_set_stream