29 #include "tbb/parallel_for.h" 47 const size_t values_size,
48 const int64_t*
const prefix_sum,
49 const size_t prefix_sum_size,
51 tbb::parallel_for(tbb::blocked_range<size_t>(0, prefix_sum_size),
52 [&](
const tbb::blocked_range<size_t>& r) {
53 for (
size_t i = r.begin(); i != r.end(); ++i) {
54 size_t begin_idx = prefix_sum[i];
57 size_t end_idx = (i + 1 < prefix_sum_size
62 for (
size_t j = begin_idx; j < end_idx; ++j) {
void ReduceSubarraysSumCPU(const T *const values, const size_t values_size, const int64_t *const prefix_sum, const size_t prefix_sum_size, T *out_sums)
Definition: ReduceSubarraysSumCPU.h:46
Definition: Open3DViewer.h:29