repa-io-3.2.3.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)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.