Browse thread
[Caml-list] Re: OCaml speed
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Xavier Leroy <xavier.leroy@i...> |
| Subject: | Re: [Caml-list] Re: complex bigarrays |
> 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