package owl
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=cb9b596d7a2166630e385381f5dcb7cc6c2a4afebd32b2811db3e4b4fe008f3c
sha512=940c0953ee3fce453787e0820df42f4f3852413ba0a1af9d18af128d90a76bf9c93aaa3af42bd80be938b0b53ed0f546a1972ecc5fad7dd35247cea5e699b78f
Description
Owl: OCaml Scientific and Engineering Computing
Owl is an OCaml numerical library. It supports N-dimensional arrays, both dense and sparse matrix operations, linear algebra, regressions, fast Fourier transforms, and many advanced mathematical and statistical functions (such as Markov chain Monte Carlo methods). Recently, Owl has implemented algorithmic differentiation which essentially makes developing machine learning and neural network algorithms trivial.
Published: 17 Nov 2019
README
Owl - OCaml Scientific and Engineering Computing
Owl is a dedicated system for scientific and engineering computing in the functional programming language OCaml.
This software is currently maintained by Komposio, a Helsinki-based software consulting company.
Visit the project website at ocaml.xyz
Optional features
You can enable optional features by setting the following variables to 1
before compilation:
OWL_ENABLE_EXPMODE=1
: turn on experiment features like-flto
OWL_ENABLE_DEVMODE=1
: turn on all the warnings in developmentOWL_ENABLE_OPENMP=1
: turn on OpenMP support in core module and the automatic parameter tuning (AEOS)OWL_CFLAGS
allows to change the default flags passed to the C targets, it defaults toOWL_CFLAGS="-g -O3 -Ofast -march=native -mfpmath=sse -funroll-loops -ffast-math -DSFMT_MEXP=19937 -msse2 -fno-strict-aliasing -Wno-tautological-constant-out-of-range-compare"`
OWL_AEOS_CFLAGS
allows to change the default flags passed to the C targets when compiling AEOS. It defaults toOWL_AEOS_CFLAGS="-g -O3 -Ofast -march=native -funroll-loops -ffast-math -DSFMT_MEXP=19937 -fno-strict-aliasing"
OWL_DISABLE_LAPACKE_LINKING_FLAG=1
disables the-llapacke
flag in the linking options. This is useful when you have lapacke installed on non-standard localtion.
If you are not using opam
, you should run make clean
before recompiling the library after having changed any of those environment variables.
For examples of use of this feature, you can refer to the Docker.ubuntu
and Docker.ubuntu.arm
docker files, or to the snippet in https://github.com/owlbarn/owl/issues/394#issuecomment-471364916 (which also shows how to use it within esy
).
Troubleshooting
A common source of frustration when installing owl
is the possible appearence of linking errors (see for example https://github.com/owlbarn/owl/issues/450). This usually happens when installing owl
on ubuntu (where it depends on how openblas is complied and packaged), but could happen in other distributions (see for example https://discuss.ocaml.org/t/owl-undefined-symbols-after-standard-installation/4186/13). The only way we could solve those issues is to recompile openblas
and install it manually. You can see how we do it by looking at the Docker files in the repository: https://github.com/owlbarn/owl/blob/master/docker/Dockerfile.ubuntu
Dependencies (11)
- stdlib-shims
-
stdio
build
-
owl-base
= version
-
eigen
>= "0.1.0"
- dune-configurator
-
dune
>= "1.7.0"
-
ctypes
< "0.17.0"
-
conf-openblas
>= "0.2.0"
- base-bigarray
-
base
build
-
ocaml
>= "4.06.0"
Dev Dependencies (1)
-
alcotest
with-test
Used by (11)
-
gobba
>= "0.4.2"
-
gr
< "0.0.2"
-
molenc
= "11.4.0"
-
owl-ode
>= "0.1.0" & < "0.3.0"
-
owl-ode-odepack
< "0.3.0"
-
owl-ode-sundials
< "0.3.0"
- owl-opt
- owl-opt-lbfgs
-
owl-plplot
< "0.8.0"
-
owl-top
< "0.7.1"
-
owl-zoo
= "0.7.0"
Conflicts
None