Template Function ADS::parallelInclusiveScan
Defined in File Executor.h
Function Documentation
-
template<Executor E, std::random_access_iterator I, std::random_access_iterator O, class T, class Op = std::plus<>>
T ADS::parallelInclusiveScan(E &ex, I in, std::size_t n, O out, T init, Op op = Op()) out[ i ] = init op in[ 0 ] op … op in[ i ], for the n items from in; in and out may be the same; the last prefix (init if n = 0)