Open3D (C++ API)
|
Functions | |
template<class T > | |
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) |
void open3d::ml::detail::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 | ||
) |
Reduces subarrays in linear memory with the sum operation. The sum for empty subarrays is 0.
values | The linear array with all values |
values_size | Number of elements of values |
prefix_sum | The exclusive prefix sum of the number of elements for each array |
prefix_sum_size | The number of subarrays |
out_sums | The preallocated output array with size prefix_sum_size |