Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Ocaml and C] Passing Arrays and Matrices of floats from Ocaml to C and back
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Christophe TROESTLER <Christophe.Troestler+ocaml@u...>
Subject: Re: [Caml-list] [Ocaml and C] Passing Arrays and Matrices of floats from Ocaml to C and back
On Thu, 4 Mar 2010 12:07:57 +0100, Odalric-Ambrym Maillard wrote:
> 
> Hello, I have the following problem : I wan to use a Least-squares
> Regression solver written in C in a program written in OCaml.

Aren't the Lacaml/LAPACK least square enough ?
http://www.ocaml.info/home/ocaml_sources.html#lacaml

If you want to bind your very own solver, the recommended route is to
use bigarrays :
http://caml.inria.fr/pub/docs/manual-ocaml/manual043.html#toc143

My 0.02¤,
C.