repa-io-3.4.1.1: Read and write Repa arrays in various formats.
Data.Array.Repa.IO.Binary
Description
Reading and writing Repa arrays as binary files.
Synopsis
readArrayFromStorableFile :: forall a sh. (Shape sh, Storable a) => FilePath -> sh -> IO (Array F sh a) #
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 () #
Write an array to a file. Data appears in host byte order.