CamlFloat Tutorial


Scientific Computing with OCaml

CamlFloat provides a sylized interface to some common Lapack and Blas routines for OCaml. It was developed with the objective of combining the features and flexibility of modern functional programming languages with the ease of use and aproachability of standard commercial scientific computing platforms.

Using CamlFloat it is possible to write numerical and scientific code which is at once highly efficient (due to the underlying Lapack and Blas libraries) and understandable and maintainable (thanks to OCaml).

After working through this brief tutorial you should be able to use the CamlFloat toplevel to create, modify and manipulate matrices. You will also be able to use the Lapack and Blas routines to solve linear systems and produce matrix factorizations.

Basic familiarity with OCaml is assumed. A good place to start if you're learning is Richj's tutorial.

A similar package is developed and maintained in parallel for Clean. It is called CleanFloat.

Contents

Setting up the camlFloat Toplevel
Constructing Matrices
Matrix Arithmetic
Using Submatrices
Solving Linear Systems

::: back :::