caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Christophe TROESTLER <Christophe.Troestler+ocaml@umons.ac.be>
To: odalric.maillard@inria.fr, odalricambrym.maillard@gmail.com
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] [Ocaml and C] Passing Arrays and Matrices of floats from Ocaml to C and back
Date: Thu, 04 Mar 2010 14:52:27 +0100 (CET)	[thread overview]
Message-ID: <20100304.145227.906513221350493012.Christophe.Troestler+ocaml@umons.ac.be> (raw)
In-Reply-To: <406c33611003040307v2195e006qfe273bf85c7f2c95@mail.gmail.com>

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.


      parent reply	other threads:[~2010-03-04 13:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-04 11:07 Odalric-Ambrym Maillard
2010-03-04 13:08 ` [Caml-list] " Paolo Donadeo
2010-03-04 14:04   ` Odalric-Ambrym Maillard
2010-03-04 17:02     ` Odalric-Ambrym Maillard
2010-03-04 13:52 ` Christophe TROESTLER [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100304.145227.906513221350493012.Christophe.Troestler+ocaml@umons.ac.be \
    --to=christophe.troestler+ocaml@umons.ac.be \
    --cc=caml-list@inria.fr \
    --cc=odalric.maillard@inria.fr \
    --cc=odalricambrym.maillard@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).