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

Safe HaskellNone
LanguageHaskell98

Data.Array.Repa.Repr.Undefined

Synopsis

Documentation

data X #

An array with undefined elements.

  • This is normally used as the last representation in a partitioned array, as the previous partitions are expected to provide full coverage.

Instances

Source X e #

Undefined array elements. Inspecting them yields error.

Associated Types

data Array X sh e :: * #

Methods

extent :: Shape sh => Array X sh e -> sh #

index :: Shape sh => Array X sh e -> sh -> e #

unsafeIndex :: Shape sh => Array X sh e -> sh -> e #

linearIndex :: Shape sh => Array X sh e -> Int -> e #

unsafeLinearIndex :: Shape sh => Array X sh e -> Int -> e #

deepSeqArray :: Shape sh => Array X sh e -> b -> b #

Shape sh => Load X sh e # 

Methods

loadS :: Target r2 e => Array X sh e -> MVec r2 e -> IO () #

loadP :: Target r2 e => Array X sh e -> MVec r2 e -> IO () #

Structured X a b # 

Associated Types

type TR X :: * #

Methods

smap :: Shape sh => (a -> b) -> Array X sh a -> Array (TR X) sh b #

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

Read sh => Read (Array X sh e) # 

Methods

readsPrec :: Int -> ReadS (Array X sh e) #

readList :: ReadS [Array X sh e] #

readPrec :: ReadPrec (Array X sh e) #

readListPrec :: ReadPrec [Array X sh e] #

Show sh => Show (Array X sh e) # 

Methods

showsPrec :: Int -> Array X sh e -> ShowS #

show :: Array X sh e -> String #

showList :: [Array X sh e] -> ShowS #

data Array X # 
data Array X = AUndefined !sh
type TR X # 
type TR X = X