Gsl.ErrorError reporting
type errno = | CONTINUEiteration has not converged
*)| FAILURE| EDOMinput domain error, e.g sqrt(-1)
*)| ERANGEoutput range error, e.g. exp(1e100)
*)| EFAULTinvalid pointer
*)| EINVALinvalid argument supplied by user
*)| EFAILEDgeneric failure
*)| EFACTORfactorization failed
*)| ESANITYsanity check failed - shouldn't happen
*)| ENOMEMmalloc failed
*)| EBADFUNCproblem with user-supplied function
*)| ERUNAWAYiterative process is out of control
*)| EMAXITERexceeded max number of iterations
*)| EZERODIVtried to divide by zero
*)| EBADTOLuser specified an invalid tolerance
*)| ETOLfailed to reach the specified tolerance
*)| EUNDRFLWunderflow
*)| EOVRFLWoverflow
*)| ELOSSloss of accuracy
*)| EROUNDfailed because of roundoff error
*)| EBADLENmatrix, vector lengths are not conformant
*)| ENOTSQRmatrix not square
*)| ESINGapparent singularity detected
*)| EDIVERGEintegral or series is divergent
*)| EUNSUPrequested feature is not supported by the hardware
*)| EUNIMPLrequested feature not (yet) implemented
*)| ECACHEcache limit exceeded
*)| ETABLEtable limit exceeded
*)| ENOPROGiteration is not making progress towards solution
*)| ENOPROGJjacobian evaluations are not improving the solution
*)| ETOLFcannot reach the specified tolerance in F
*)| ETOLXcannot reach the specified tolerance in X
*)| ETOLGcannot reach the specified tolerance in gradient
*)| EOFend of file
*)exception Gsl_exn of errno * stringError.Gsl_exn is raised by GSL to indicate an error. The second argument gives the reason for the error.
Error.init () sets up the GSL error handler so that the OCaml function Error.handler gets called in case of an error. This behavior is the default now.
Error.uninit () reverts the GSL error handler to the default of the GSL C-library. The default GSL error simply aborts the program.
val handler : (errno -> string -> unit) Stdlib.refThe OCaml handler for GSL errors. Initially set to Error.default_handler. If the function returns, the error is ignored and execution of the GSL function continues.
Redefine it so as to ignore some particular errors (EOVRFLW or EUNDRFLW for instance).
val default_handler : errno -> string -> 'aThe default OCaml handler for GSL errors. It simply raises the Error.Gsl_exn exception.
val strerror : errno -> stringstrerror e returns a description of the error e.
val string_of_errno : errno -> stringstring_of_errno e returns the name of e.