repa-io-2.2.0.1: Read and write Repa arrays in various formats.

Data.Array.Repa.IO.Binary

Description

Reading and writing Repa arrays as binary files.

Synopsis

Documentation

readArrayFromStorableFile :: forall a sh. (Shape sh, Storable a, Elt a) => FilePath -> sh -> IO (Array 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.

writeArrayToStorableFile :: forall sh a. (Shape sh, Storable a, Elt a) => FilePath -> Array sh a -> IO ()Source

Write an array to a file. Data appears in host byte order.