28 auto acc_functor = [&acc](T value) { acc += value; };
30 auto batch_fun = [](
auto& sub) {
33 for (
size_t i = 0; i <
etl::size(sub); ++i) {
56 auto acc_functor = [&acc](T value) { acc += value; };
58 auto batch_fun = [](
auto& sub) {
61 for (
size_t i = 0; i <
etl::size(sub); ++i) {
void engine_dispatch_1d_acc_slice(E &&expr, Functor &&functor, AccFunctor &&acc_functor, [[maybe_unused]] size_t threshold, [[maybe_unused]] size_t n_threads=etl::threads)
Dispatch the elements of an ETL container in a parallel manner and use an accumulator functor to accu...
Definition: parallel_support.hpp:890
Definition: prob_pooling.hpp:10
auto abs(E &&value)
Apply absolute on each value of the given expression.
Definition: expression_builder.hpp:54
value_t< E > asum(E &&values)
Returns the sum of all the absolute values contained in the given expression.
Definition: expression_builder.hpp:637
constexpr size_t sum_parallel_threshold
The minimum number of elements before considering parallel acc implementation.
Definition: threshold.hpp:68
value_t< E > sum(E &&values)
Returns the sum of all the values contained in the given expression.
Definition: expression_builder.hpp:624
constexpr size_t size(const E &expr) noexcept
Returns the size of the given ETL expression.
Definition: helpers.hpp:108
typename decay_traits< E >::value_type value_t
Traits to extract the value type out of an ETL type.
Definition: tmp.hpp:81