10 #include <tbb/parallel_for.h>
30 const size_t values_size,
31 const int64_t*
const row_splits,
32 const size_t num_arrays,
34 tbb::parallel_for(tbb::blocked_range<size_t>(0, num_arrays),
35 [&](
const tbb::blocked_range<size_t>& r) {
36 for (
size_t i = r.begin(); i != r.end(); ++i) {
37 size_t begin_idx = row_splits[i];
38 size_t end_idx = row_splits[i + 1];
41 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 row_splits, const size_t num_arrays, T *out_sums)
Definition: ReduceSubarraysSum.h:29
Definition: PinholeCameraIntrinsic.cpp:16