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

Safe HaskellSafe-Infered

Data.Array.Repa.IO.Binary

Description

Reading and writing Repa arrays as binary files.

Synopsis

Documentation

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.

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

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