[Haskell] Writing large n-dim un-boxed array of Int32 quickly?
Rene de Visser
rene_de_visser at hotmail.com
Mon Oct 31 04:21:01 EST 2005
>From: Ketil Malde <ketil at ii.uib.no>
>Rene de Visser wrote:
>
>>I want to write a multi-dimensional unboxed arrary of Int32 to a file.
>>(And also read it back later).
>
>hGetArray/hPutArray?
>
To do this I need to cast my 5 dimensional array to a 1 dimensional array?
Does this work? i.e. how do I know that GHC uses a flat array representation
for
multidemsional arrays (rather than a nested model using pointers).
Rene.
More information about the Haskell
mailing list