dph-par-0.4.0: Data structures for Nested Data-Parallel Haskell.Source codeContentsIndex
Data.Array.Parallel.Prelude
Synopsis
mapP :: (a -> b) -> [::] a -> [::] b
filterP :: (a -> Bool) -> [::] a -> [::] a
combineP :: [:a:] -> [:a:] -> [:Int:] -> [:a:]
emptyP :: [::] a
zipWithP :: (a -> b -> c) -> [::] a -> [::] b -> [::] c
(!:) :: [::] a -> Int -> a
lengthP :: [::] a -> Int
concatP :: [::] ([::] a) -> [::] a
zipP :: [::] a -> [::] b -> [::] (a, b)
unzipP :: [::] (a, b) -> ([::] a, [::] b)
singletonP :: a -> [::] a
(+:+) :: [::] a -> [::] a -> [::] a
replicateP :: Int -> a -> [::] a
fromPArrayP :: PArray a -> [:a:]
fromPArrayPA :: PA a -> PArray a :-> PArray a
toPArrayP :: [:a:] -> PArray a
toPArrayPA :: PA a -> PArray a :-> PArray a
fromNestedPArrayP :: PArray (PArray a) -> [:[:a:]:]
fromNestedPArrayPA :: PA a -> PArray (PArray a) :-> PArray (PArray a)
data Bool
= False
| True
otherwise :: Bool
(&&) :: Bool -> Bool -> Bool
(||) :: Bool -> Bool -> Bool
not :: Bool -> Bool
andP :: [:Bool:] -> Bool
orP :: [:Bool:] -> Bool
data PArray a
class Elt a => Scalar a where
fromUArrPD :: Array a -> PData a
toUArrPD :: PData a -> Array a
primPA :: PA a
toUArrPA :: Scalar a => PArray a -> Array a
fromUArrPA' :: Scalar a => Array a -> PArray a
fromUArrPA_2' :: (Scalar a, Scalar b) => Array (a :*: b) -> PArray (a, b)
fromUArrPA_3 :: (Scalar a, Scalar b, Scalar c) => Int -> Array ((a :*: b) :*: c) -> PArray (a, b, c)
fromUArrPA_3' :: (Scalar a, Scalar b, Scalar c) => Array ((a :*: b) :*: c) -> PArray (a, b, c)
nestUSegdPA' :: Segd -> PArray a -> PArray (PArray a)
Documentation
mapP :: (a -> b) -> [::] a -> [::] bSource
filterP :: (a -> Bool) -> [::] a -> [::] aSource
combineP :: [:a:] -> [:a:] -> [:Int:] -> [:a:]Source
emptyP :: [::] aSource
zipWithP :: (a -> b -> c) -> [::] a -> [::] b -> [::] cSource
(!:) :: [::] a -> Int -> aSource
lengthP :: [::] a -> IntSource
concatP :: [::] ([::] a) -> [::] aSource
zipP :: [::] a -> [::] b -> [::] (a, b)Source
unzipP :: [::] (a, b) -> ([::] a, [::] b)Source
singletonP :: a -> [::] aSource
(+:+) :: [::] a -> [::] a -> [::] aSource
replicateP :: Int -> a -> [::] aSource
fromPArrayP :: PArray a -> [:a:]Source
fromPArrayPA :: PA a -> PArray a :-> PArray aSource
toPArrayP :: [:a:] -> PArray aSource
toPArrayPA :: PA a -> PArray a :-> PArray aSource
fromNestedPArrayP :: PArray (PArray a) -> [:[:a:]:]Source
fromNestedPArrayPA :: PA a -> PArray (PArray a) :-> PArray (PArray a)Source
data Bool Source
Constructors
False
True
show/hide Instances
otherwise :: BoolSource
(&&) :: Bool -> Bool -> BoolSource
(||) :: Bool -> Bool -> BoolSource
not :: Bool -> BoolSource
andP :: [:Bool:] -> BoolSource
orP :: [:Bool:] -> BoolSource
data PArray a Source
Lifted parallel arrays
show/hide Instances
(Elt a, Show a) => Show (PArray a)
class Elt a => Scalar a whereSource
Methods
fromUArrPD :: Array a -> PData aSource
toUArrPD :: PData a -> Array aSource
primPA :: PA aSource
show/hide Instances
toUArrPA :: Scalar a => PArray a -> Array aSource
fromUArrPA' :: Scalar a => Array a -> PArray aSource
fromUArrPA_2' :: (Scalar a, Scalar b) => Array (a :*: b) -> PArray (a, b)Source
fromUArrPA_3 :: (Scalar a, Scalar b, Scalar c) => Int -> Array ((a :*: b) :*: c) -> PArray (a, b, c)Source
fromUArrPA_3' :: (Scalar a, Scalar b, Scalar c) => Array ((a :*: b) :*: c) -> PArray (a, b, c)Source
nestUSegdPA' :: Segd -> PArray a -> PArray (PArray a)Source
Produced by Haddock version 2.6.1