From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA09052; Thu, 8 Nov 2001 10:28:36 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA09234 for ; Thu, 8 Nov 2001 10:28:35 +0100 (MET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id fA89SYX07658; Thu, 8 Nov 2001 10:28:34 +0100 (MET) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA08892; Thu, 8 Nov 2001 10:28:33 +0100 (MET) Date: Thu, 8 Nov 2001 10:28:33 +0100 From: Xavier Leroy To: Rolf Wester Cc: caml-list@inria.fr Subject: Re: [Caml-list] Re: complex bigarrays Message-ID: <20011108102833.A9260@pauillac.inria.fr> References: <3BE7C3FF.29312.161FE94D@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <3BE7C3FF.29312.161FE94D@localhost>; from rolf.wester@ilt.fhg.de on Tue, Nov 06, 2001 at 11:05:35AM +0200 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > The biggest problem is that there is no OCaml build in type complex > and that the Bigarray doesn't have complex too (sometime ago I read > that someone was thinking about adding complex numbers to the > Bigarray module, I would appreciate this very much). Adding complex arrays to the Bigarray module is on my to-do list. One issue is how these arrays should be represented to allow no-copying exchange between C and Fortran. My understanding is that in C, arrays of complex are generally represented as arrays of pairs of floats (or doubles), while in Fortran some codes use the C representation (one array of pairs) while others use a pair of arrays. The array-of-pairs representation fits well the Bigarray interface, but the pair-of-arrays approach does not. Could someone with numerical experience in Fortran provide more information on this? - Xavier Leroy ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr