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

Safe HaskellNone

Data.Array.Parallel.Unlifted.Distributed.Basics

Description

Basic operations on distributed types.

Synopsis

Documentation

eqD :: (Eq a, DT a) => Gang -> Dist a -> Dist a -> BoolSource

Test whether to distributed values are equal. This requires a Gang and hence can't be defined in terms of Eq.

neqD :: (Eq a, DT a) => Gang -> Dist a -> Dist a -> BoolSource

Test whether to distributed values are not equal. This requires a Gang and hence can't be defined in terms of Eq.

toD :: DT a => Gang -> [a] -> Dist aSource

Generate a distributed value from the first p elements of a list.

  • For debugging only, don't use in production code.

fromD :: DT a => Gang -> Dist a -> [a]Source

Yield all elements of a distributed value.

  • For debugging only, don't use in production code.