Data.Array.Repa.IO.Binary
Description
Reading and writing Repa arrays as binary files.
readArrayFromStorableFile :: forall a sh. (Shape sh, Storable a) => FilePath -> sh -> IO (Array F sh a) Source #
Read an array from a file. Data appears in host byte order. If the file size does match the provided shape then error.
error
writeArrayToStorableFile :: forall sh a r. (Shape sh, Source r a, Storable a) => FilePath -> Array r sh a -> IO () Source #
Write an array to a file. Data appears in host byte order.