Template Function ADS::parallelReduce

Function Documentation

template<Executor E, class T, class F, class Op>
T ADS::parallelReduce(E &ex, std::size_t first, std::size_t last, T id, F &&f, Op op, std::size_t grain = kGrain)

the reduction of [ first , last ): f( lo , hi ) of each block, combined by op in the order of the blocks, starting from id