13 #ifndef THRILL_API_EX_PREFIX_SUM_HEADER 14 #define THRILL_API_EX_PREFIX_SUM_HEADER 22 template <
typename ValueType,
typename Stack>
23 template <
typename SumFunction>
25 const SumFunction& sum_function,
const ValueType& initial_element)
const {
36 "SumFunction has the wrong input type");
42 "SumFunction has the wrong input type");
48 "SumFunction has the wrong input type");
50 auto node = tlx::make_counting<PrefixSumNode>(
51 *
this,
"ExPrefixSum", sum_function, initial_element);
59 #endif // !THRILL_API_EX_PREFIX_SUM_HEADER DIA is the interface between the user and the Thrill framework.
auto ExPrefixSum(const SumFunction &sum_function=SumFunction(), const ValueType &initial_element=ValueType()) const
ExPrefixSum is a DOp, which computes the exclusive prefix sum of all elements.
common::FunctionTraits< Function > FunctionTraits
alias for convenience.