29 #include <tbb/parallel_for.h> 49 const size_t values_size,
50 const int64_t*
const row_splits,
51 const size_t num_arrays,
53 tbb::parallel_for(tbb::blocked_range<size_t>(0, num_arrays),
54 [&](
const tbb::blocked_range<size_t>& r) {
55 for (
size_t i = r.begin(); i != r.end(); ++i) {
56 size_t begin_idx = row_splits[i];
57 size_t end_idx = row_splits[i + 1];
60 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:48
Definition: PinholeCameraIntrinsic.cpp:35