Skip to main content

template <int Dims,
          typename Ptr,
          typename BinaryOperation>
typename std::iterator_traits<Ptr>::value_type
joint_reduce(const group<Dims>& g,
             Ptr first,
             Ptr last,
             BinaryOperation binary_op)

Template Parameters

int Dims
Ptr
BinaryOperation

Parameters

const group<Dims>& g
Ptr first
Ptr last
BinaryOperation binary_op

template <int Dims,
          typename Ptr,
          typename T,
          typename BinaryOperation>
T joint_reduce(const group<Dims>& g,
               Ptr first,
               Ptr last,
               T init,
               BinaryOperation binary_op)

Template Parameters

int Dims
Ptr
T
BinaryOperation

Parameters

const group<Dims>& g
Ptr first
Ptr last
T init
BinaryOperation binary_op