| Math-GSL documentation | Contained in the Math-GSL distribution. |
Math::GSL::Errno - Error Handling
use Math::GSL::Errno qw/:all/;
gsl_set_error_handler_off();
print gsl_strerror($GSL_EDOM) . "\n";
Success
General Failure
Iteration has not converged
Domain 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)
Range error; used by mathematical functions when the result value is not representable because of overflow or underflow (like ERANGE in the C library)
Invalid Pointer
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).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).
Generic Failure
Factorization Failed
Sanity Check Failed
No 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.
Problem with user-supplied function
Iterative process is our of control
Exceeded max number of iterations
Division by zero
Invalid user-specified tolerance
Failed to reach the specified tolerance
Underflow
Overflow
Loss of accuracy
Failed due to roundoff error
Matrix/vector lengths not compatible
Not a square matrix
Singularity Detected
Integral/Series is divergent
Not supported by hardware
Not implemented
Cache limit exceeded
Table limit exceeded
Iteration not converging
Jacobian not improving solution
Cannot reach tolerance in F
Cannot reach tolerance in X
Cannot reach tolerance in Gradient
End of file
| Math-GSL documentation | Contained in the Math-GSL distribution. |
# This file was automatically generated by SWIG (http://www.swig.org). # Version 1.3.40 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. package Math::GSL::Errno; use base qw(Exporter); use base qw(DynaLoader); package Math::GSL::Errnoc; bootstrap Math::GSL::Errno; package Math::GSL::Errno; @EXPORT = qw(); # ---------- BASE METHODS ------------- package Math::GSL::Errno; sub TIEHASH { my ($classname,$obj) = @_; return bless $obj, $classname; } sub CLEAR { } sub FIRSTKEY { } sub NEXTKEY { } sub FETCH { my ($self,$field) = @_; my $member_func = "swig_${field}_get"; $self->$member_func(); } sub STORE { my ($self,$field,$newval) = @_; my $member_func = "swig_${field}_set"; $self->$member_func($newval); } sub this { my $ptr = shift; return tied(%$ptr); } # ------- FUNCTION WRAPPERS -------- package Math::GSL::Errno; *gsl_error = *Math::GSL::Errnoc::gsl_error; *gsl_stream_printf = *Math::GSL::Errnoc::gsl_stream_printf; *gsl_strerror = *Math::GSL::Errnoc::gsl_strerror; *gsl_set_error_handler = *Math::GSL::Errnoc::gsl_set_error_handler; *gsl_set_error_handler_off = *Math::GSL::Errnoc::gsl_set_error_handler_off; *gsl_set_stream_handler = *Math::GSL::Errnoc::gsl_set_stream_handler; *gsl_set_stream = *Math::GSL::Errnoc::gsl_set_stream; # ------- VARIABLE STUBS -------- package Math::GSL::Errno; *GSL_MAJOR_VERSION = *Math::GSL::Errnoc::GSL_MAJOR_VERSION; *GSL_MINOR_VERSION = *Math::GSL::Errnoc::GSL_MINOR_VERSION; *GSL_POSZERO = *Math::GSL::Errnoc::GSL_POSZERO; *GSL_NEGZERO = *Math::GSL::Errnoc::GSL_NEGZERO; *GSL_SUCCESS = *Math::GSL::Errnoc::GSL_SUCCESS; *GSL_FAILURE = *Math::GSL::Errnoc::GSL_FAILURE; *GSL_CONTINUE = *Math::GSL::Errnoc::GSL_CONTINUE; *GSL_EDOM = *Math::GSL::Errnoc::GSL_EDOM; *GSL_ERANGE = *Math::GSL::Errnoc::GSL_ERANGE; *GSL_EFAULT = *Math::GSL::Errnoc::GSL_EFAULT; *GSL_EINVAL = *Math::GSL::Errnoc::GSL_EINVAL; *GSL_EFAILED = *Math::GSL::Errnoc::GSL_EFAILED; *GSL_EFACTOR = *Math::GSL::Errnoc::GSL_EFACTOR; *GSL_ESANITY = *Math::GSL::Errnoc::GSL_ESANITY; *GSL_ENOMEM = *Math::GSL::Errnoc::GSL_ENOMEM; *GSL_EBADFUNC = *Math::GSL::Errnoc::GSL_EBADFUNC; *GSL_ERUNAWAY = *Math::GSL::Errnoc::GSL_ERUNAWAY; *GSL_EMAXITER = *Math::GSL::Errnoc::GSL_EMAXITER; *GSL_EZERODIV = *Math::GSL::Errnoc::GSL_EZERODIV; *GSL_EBADTOL = *Math::GSL::Errnoc::GSL_EBADTOL; *GSL_ETOL = *Math::GSL::Errnoc::GSL_ETOL; *GSL_EUNDRFLW = *Math::GSL::Errnoc::GSL_EUNDRFLW; *GSL_EOVRFLW = *Math::GSL::Errnoc::GSL_EOVRFLW; *GSL_ELOSS = *Math::GSL::Errnoc::GSL_ELOSS; *GSL_EROUND = *Math::GSL::Errnoc::GSL_EROUND; *GSL_EBADLEN = *Math::GSL::Errnoc::GSL_EBADLEN; *GSL_ENOTSQR = *Math::GSL::Errnoc::GSL_ENOTSQR; *GSL_ESING = *Math::GSL::Errnoc::GSL_ESING; *GSL_EDIVERGE = *Math::GSL::Errnoc::GSL_EDIVERGE; *GSL_EUNSUP = *Math::GSL::Errnoc::GSL_EUNSUP; *GSL_EUNIMPL = *Math::GSL::Errnoc::GSL_EUNIMPL; *GSL_ECACHE = *Math::GSL::Errnoc::GSL_ECACHE; *GSL_ETABLE = *Math::GSL::Errnoc::GSL_ETABLE; *GSL_ENOPROG = *Math::GSL::Errnoc::GSL_ENOPROG; *GSL_ENOPROGJ = *Math::GSL::Errnoc::GSL_ENOPROGJ; *GSL_ETOLF = *Math::GSL::Errnoc::GSL_ETOLF; *GSL_ETOLX = *Math::GSL::Errnoc::GSL_ETOLX; *GSL_ETOLG = *Math::GSL::Errnoc::GSL_ETOLG; *GSL_EOF = *Math::GSL::Errnoc::GSL_EOF; @EXPORT_OK = qw/ gsl_error gsl_stream_printf gsl_strerror gsl_set_error_handler gsl_set_error_handler_off gsl_set_stream_handler gsl_set_stream $GSL_SUCCESS $GSL_FAILURE $GSL_CONTINUE $GSL_EDOM $GSL_ERANGE $GSL_EFAULT $GSL_EINVAL $GSL_EFAILED $GSL_EFACTOR $GSL_ESANITY $GSL_ENOMEM $GSL_EBADFUNC $GSL_ERUNAWAY $GSL_EMAXITER $GSL_EZERODIV $GSL_EBADTOL $GSL_ETOL $GSL_EUNDRFLW $GSL_EOVRFLW $GSL_ELOSS $GSL_EROUND $GSL_EBADLEN $GSL_ENOTSQR $GSL_ESING $GSL_EDIVERGE $GSL_EUNSUP $GSL_EUNIMPL $GSL_ECACHE $GSL_ETABLE $GSL_ENOPROG $GSL_ENOPROGJ $GSL_ETOLF $GSL_ETOLX $GSL_ETOLG $GSL_EOF /; %EXPORT_TAGS = ( all => \@EXPORT_OK );
1; 1;