dph-prim-par-0.7.0.1: Data Parallel Haskell segmented arrays. (production version)

Safe HaskellNone

Data.Array.Parallel.Unlifted.Distributed.Data.Tuple

Contents

Description

Distribution of Tuples

Synopsis

Pairs

zipD :: (DT a, DT b) => Dist a -> Dist b -> Dist (a, b)Source

Pairing of distributed values. The two values must belong to the same Gang.

unzipD :: (DT a, DT b) => Dist (a, b) -> (Dist a, Dist b)Source

Unpairing of distributed values.

fstD :: (DT a, DT b) => Dist (a, b) -> Dist aSource

Extract the first elements of a distributed pair.

sndD :: (DT a, DT b) => Dist (a, b) -> Dist bSource

Extract the second elements of a distributed pair.

Triples

zip3D :: (DT a, DT b, DT c) => Dist a -> Dist b -> Dist c -> Dist (a, b, c)Source

Pairing of distributed values. The two values must belong to the same Gang.

unzip3D :: (DT a, DT b, DT c) => Dist (a, b, c) -> (Dist a, Dist b, Dist c)Source

Unpairing of distributed values.