Le 17 nov. 05 à 23:43, Daniel Bünzli a écrit : > > Le 17 nov. 05 à 23:16, Damien Bobillot a écrit : > >> PS : I think it will perhaps have the same problems as floating >> computation, which is not really efficient. As far as I know, >> floats are not stored as float in memory, but as a generic ocaml >> value : a pointer to a structure contains a tag indicating that >> it's a float, and after the IEEE float value. > > This not exactly true. As an exception, they are unboxed in records > and arrays made of floats only [1,2]. > > Note that you can also use bigarrays [3] to have unboxed arrays of > any scalar datatype. > > This page [4] (unfortunately not available in the faq of the new > ocaml site) contains interesting information about writing > numerical code in ocaml. Ok, and thank you for the references. Perhaps, writing a bigarray-like module for vectorized operation may be the solution. > [1] manual032.html#htoc218> > [2] manual032.html#htoc219> > [3] manual043.html#htoc261> > [4] -- Damien alias Schmurtz aim:goim?screenname=schmuuurtz