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

CUBLAS implementation of the sum product. More...

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

Go to the source code of this file.

Functions

template<typename A >
value_t< A > etl::impl::cublas::sum (const A &)
 Returns the sum of all the values contained in the given expression. More...
 
template<typename A >
value_t< A > etl::impl::cublas::asum (const A &)
 Returns the sum of all the absolute values contained in the given expression. More...
 

Detailed Description

CUBLAS implementation of the sum product.

Unfortunately, CUBLAS has no sum implementation, therefore, it uses a dot product with a vector of 1...

This must be improved!

Function Documentation

◆ asum()

template<typename A >
value_t<A> etl::impl::cublas::asum ( const A &  )

◆ sum()

template<typename A >
value_t<A> etl::impl::cublas::sum ( const A &  )