Unified vectorized implementation of the "sum" reduction.
More...
Go to the source code of this file.
Unified vectorized implementation of the "sum" reduction.
◆ asum()
template<typename L >
| value_t<L> etl::impl::vec::asum |
( |
[[maybe_unused] ] const L & |
lhs | ) |
|
Compute the absolute sum of lhs.
- Parameters
-
- Returns
- the absolute sum of the elements of lhs
◆ asum_impl()
template<typename V , typename L >
| value_t<L> etl::impl::vec::asum_impl |
( |
const L & |
lhs | ) |
|
Vectorized absolute sum computation.
- Parameters
-
| lhs | The expression to compute the sum from |
- Template Parameters
-
- Returns
- The absolute sum of the given range
◆ sum()
template<typename L >
| value_t<L> etl::impl::vec::sum |
( |
[[maybe_unused] ] const L & |
lhs | ) |
|
Compute the sum of lhs.
- Parameters
-
- Returns
- the sum of the elements of lhs
◆ sum_impl()
template<typename V , typename L >
| value_t<L> etl::impl::vec::sum_impl |
( |
const L & |
lhs | ) |
|
Vectorized sum computation.
- Parameters
-
| lhs | The expression to compute the sum from |
- Template Parameters
-
- Returns
- The sum of the given range