repa- High performance, regular, shape polymorphic parallel arrays.

Safe HaskellSafe-Infered




data B Source

Strict ByteStrings arrays are represented as ForeignPtr buffers of Word8


Repr B Word8

Read elements from a ByteString.

Combine B Word8 D b 
Eq sh => Eq (Array B sh Word8) 
Read sh => Read (Array B sh Word8) 
Show sh => Show (Array B sh Word8) 

data family Array r sh e Source

Arrays with a representation tag, shape, and element type. Use one of the type tags like D, U and so on for r, one of DIM1, DIM2 ... for sh.

fromByteString :: Shape sh => sh -> ByteString -> Array B sh Word8Source

O(1). Wrap a ByteString as an array.

toByteString :: Array B sh Word8 -> ByteStringSource

O(1). Unpack a ByteString from an array.