How is the state of linear algebra in OCaml compared to languages like Julia where there’s a lot going on in Linear algebra field. A lot of algorithm and methods are implemented, I’m interested mainly in matrix decomposition methods and some iterative methods as well. So
How is the support in OCaml?
Will a float32 type ever be available on OCaml base?
Is there a good linear algebra module written in pure OCaml with high performance?
For matrix decomposition methods (including iterative ones), I think that Owl is currently the most comprehensive library. There are also bindings to BLAS and LAPACK available through Lacaml. It is also worth mentioning Raven, which is currently under development.
In terms of performance, matrix operations are comparable to NumPy in Python or Julia, as they are ultimately based on OpenBLAS (see also this link)
Will a float32 type ever be available on OCaml base?
I think that float16, float32 and float64 (arrays) are supported from longtime ago in OCaml, see for example Bigarray library
Is there a good linear algebra module written in pure OCaml with high performance?