Version française
Home     About     Download     Resources     Contact us    
Browse thread
Documentation request: allocation of bigarrays in C
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jonathan Roewen <jonathan.roewen@g...>
Subject: Re: [Caml-list] Documentation request: allocation of bigarrays in C
> In my case, I want to read a relatively big file (50MB) containing
> arrays of floats . I use C functions for the raw speed then pass the
> bigarrays to OCaml to do some reordering of the data, and higher-level
> processing.
>
> I do not open the file in Ocaml then send a string to C for parsing, but
> rather open the file in C and return the bigarray list to Ocaml. (cf my
> previous mistake on creating Ocaml lists in C on this mailing-list)

Does Bigarray.X.map_file not serve the purpose?

Kindest Regards,

Jonathan