package sundialsml
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=451b3a1cf1b24c6a1483945dac0901c9f1a104e1364081dd0443796ee7e179ab
md5=71fd10d67a87969d9fda2cbc188124f4
Description
Sundials is a collection of six numerical solvers: CVODE, CVODES, IDA, IDAS, ARKODE, and KINSOL. This interface provides access to all features of the underlying library.
The structure of the OCaml interface mostly follows that of the original library, both for ease of reading the existing documentation and for converting existing source code, but several changes have been made for programming convenience and to increase safety, namely:
-
solver sessions are mostly configured via algebraic data types rather than multiple function calls;
-
errors are signalled by exceptions not return codes (also from user-supplied callback routines);
-
user data is shared between callback routines via closures (partial applications of functions);
-
vectors are checked for compatibility with a session (using a combination of static and dynamic checks), and;
-
explicit free commands are not necessary since OCaml is a garbage-collected language.
The OCaml documentation contains extensive cross-links to the original documentation. OCaml versions of the standard examples usually have an overhead of about 30% compared to the original C versions, and almost never more than 50%.
Dependencies (4)
-
conf-sundials
build
- ocamlfind
- base-bigarray
-
ocaml
>= "3.12.1" & < "4.14"
Dev Dependencies
None
Used by (1)
-
owl-ode-sundials
< "0.5.0"
Conflicts
None