From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 898A0BC57 for ; Thu, 4 Mar 2010 14:52:30 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvIAABdKj0vBvsFKmWdsb2JhbACbVQEBAQEBCAsKBxMitzCEfAQ X-IronPort-AV: E=Sophos;i="4.49,581,1262559600"; d="scan'208";a="45906687" Received: from dnsp.umh.ac.be (HELO hermes1.umh.ac.be) ([193.190.193.74]) by mail2-smtp-roc.national.inria.fr with ESMTP; 04 Mar 2010 14:52:30 +0100 Received: from poincare.swapping.umh.ac.be (poincare.swapping.umh.ac.be [10.102.100.81]) by hermes1.umh.ac.be (8.14.2/8.13.6) with ESMTP id o24DpmIL794626; Thu, 4 Mar 2010 14:51:48 +0100 Received: from localhost ([127.0.0.1] ident=trch) by poincare.swapping.umh.ac.be with esmtp (Exim 4.71) (envelope-from ) id 1NnBTX-0005kd-6T; Thu, 04 Mar 2010 14:52:27 +0100 Date: Thu, 04 Mar 2010 14:52:27 +0100 (CET) Message-Id: <20100304.145227.906513221350493012.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 From: Christophe TROESTLER In-Reply-To: <406c33611003040307v2195e006qfe273bf85c7f2c95@mail.gmail.com> References: <406c33611003040307v2195e006qfe273bf85c7f2c95@mail.gmail.com> X-Face: #2fb%mPx>rRL@4ff~TVgZ"<[:,oL"`TUEGK/[8/qb58~C>jR(x4A+v/n)7BgpEtIph_neoLKJBq0JBY9:}8v|j Organization: University of Mons Return-Receipt-To: Christophe.Troestler@umons.ac.be Disposition-Notification-To: Christophe.Troestler@umons.ac.be X-Mailer: Mew version 7.0.50 on Emacs 23.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.64 on 193.190.193.76 X-Spam: no; 0.00; ocaml:01 arrays:01 matrices:01 ocaml:01 christophe:01 troestler:01 christophe:01 troestler:01 0100,:01 solver:01 lacaml:01 lapack:01 lacaml:01 solver:01 bigarrays:01 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.