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

Safe HaskellNone
LanguageHaskell98

Data.Array.Repa.Repr.ByteString

Synopsis

Documentation

data B #

Strict ByteStrings arrays are represented as ForeignPtr buffers of Word8

Instances

Source B Word8 #

Read elements from a ByteString.

Associated Types

data Array B sh Word8 :: * #

Methods

extent :: Shape sh => Array B sh Word8 -> sh #

index :: Shape sh => Array B sh Word8 -> sh -> Word8 #

unsafeIndex :: Shape sh => Array B sh Word8 -> sh -> Word8 #

linearIndex :: Shape sh => Array B sh Word8 -> Int -> Word8 #

unsafeLinearIndex :: Shape sh => Array B sh Word8 -> Int -> Word8 #

deepSeqArray :: Shape sh => Array B sh Word8 -> b -> b #

Structured B Word8 b # 

Associated Types

type TR B :: * #

Methods

smap :: Shape sh => (Word8 -> b) -> Array B sh Word8 -> Array (TR B) sh b #

szipWith :: (Shape sh, Source r c) => (c -> Word8 -> b) -> Array r sh c -> Array B sh Word8 -> Array (TR B) sh b #

Read sh => Read (Array B sh Word8) # 
Show sh => Show (Array B sh Word8) # 

Methods

showsPrec :: Int -> Array B sh Word8 -> ShowS #

show :: Array B sh Word8 -> String #

showList :: [Array B sh Word8] -> ShowS #

type TR B # 
type TR B = D
data Array B sh Word8 # 

fromByteString :: sh -> ByteString -> Array B sh Word8 #

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

toByteString :: Array B sh Word8 -> ByteString #

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