Expression Templates Library (ETL)
Functions
sum.hpp File Reference

Standard implementation of the "sum" reduction. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename E >
value_t< E > etl::impl::standard::sum (const E &input)
 Compute the sum of the input in the given expression. More...
 
template<typename E >
value_t< E > etl::impl::standard::asum (const E &input)
 Compute the sum of the absolute values in the given expression. More...
 

Detailed Description

Standard implementation of the "sum" reduction.

Function Documentation

◆ asum()

template<typename E >
value_t<E> etl::impl::standard::asum ( const E &  input)

Compute the sum of the absolute values in the given expression.

Parameters
inputThe input expression
Returns
the absolute sum

◆ sum()

template<typename E >
value_t<E> etl::impl::standard::sum ( const E &  input)

Compute the sum of the input in the given expression.

Parameters
inputThe input expression
Returns
the sum