From: Xavier Leroy <xavier.leroy@inria.fr>
To: Rolf Wester <rolf.wester@ilt.fhg.de>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Re: complex bigarrays
Date: Thu, 8 Nov 2001 10:28:33 +0100 [thread overview]
Message-ID: <20011108102833.A9260@pauillac.inria.fr> (raw)
In-Reply-To: <3BE7C3FF.29312.161FE94D@localhost>; from rolf.wester@ilt.fhg.de on Tue, Nov 06, 2001 at 11:05:35AM +0200
> 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
next prev parent reply other threads:[~2001-11-08 9:28 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-06 9:05 [Caml-list] Re: OCaml speed Rolf Wester
2001-11-06 10:44 ` Markus Mottl
2001-11-08 9:28 ` Xavier Leroy [this message]
2001-11-08 14:59 ` [Caml-list] Re: complex bigarrays Rolf Wester
2001-11-08 15:35 ` Thorsten Ohl
[not found] ` <81DA66D2-D46E-11D5-82F9-003065BDAA76@mac.com>
2001-11-08 17:56 ` Thorsten Ohl
2001-11-08 18:12 ` Joerg Czeranski
2001-11-08 18:20 ` Ken Rose
2001-11-08 18:35 ` David McClain
2001-11-08 23:13 David Gurr
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=20011108102833.A9260@pauillac.inria.fr \
--to=xavier.leroy@inria.fr \
--cc=caml-list@inria.fr \
--cc=rolf.wester@ilt.fhg.de \
/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