dph-seq-0.3: Data structures for Nested Data-Parallel Haskell.Source codeContentsIndex
Data.Array.Parallel.PArray
Synopsis
data family PArray a
class Elt a
class Random a where
randoms :: RandomGen g => Int -> g -> PArray a
randomRs :: RandomGen g => Int -> (a, a) -> g -> PArray a
length :: Elt a => PArray a -> Int
empty :: Elt a => PArray a
replicate :: Elt a => Int -> a -> PArray a
singleton :: Elt a => a -> PArray a
zip :: (Elt a, Elt b) => PArray a -> PArray b -> PArray (a, b)
unzip :: (Elt a, Elt b) => PArray (a, b) -> (PArray a, PArray b)
enumFromTo :: Int -> Int -> PArray Int
fromList :: Elt a => [a] -> PArray a
nf :: Elt a => PArray a -> ()
Documentation
data family PArray a Source
Lifted parallel arrays
class Elt a Source
show/hide Instances
Elt Double
Elt Int
(Elt a, Elt b) => Elt ((,) a b)
(Elt a, Elt b, Elt c) => Elt ((,,) a b c)
(Elt a, Elt b, Elt c, Elt d) => Elt ((,,,) a b c d)
(Elt a, Elt b, Elt c, Elt d, Elt e) => Elt ((,,,,) a b c d e)
class Random a whereSource
Methods
randoms :: RandomGen g => Int -> g -> PArray aSource
randomRs :: RandomGen g => Int -> (a, a) -> g -> PArray aSource
show/hide Instances
length :: Elt a => PArray a -> IntSource
empty :: Elt a => PArray aSource
replicate :: Elt a => Int -> a -> PArray aSource
singleton :: Elt a => a -> PArray aSource
zip :: (Elt a, Elt b) => PArray a -> PArray b -> PArray (a, b)Source
unzip :: (Elt a, Elt b) => PArray (a, b) -> (PArray a, PArray b)Source
enumFromTo :: Int -> Int -> PArray IntSource
fromList :: Elt a => [a] -> PArray aSource
nf :: Elt a => PArray a -> ()Source
Produced by Haddock version 2.4.2