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

EGBLAS wrappers for the scalar_add operation. More...

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

Go to the source code of this file.

Functions

template<typename T >
void etl::impl::egblas::scalar_add ([[maybe_unused]] T *x, [[maybe_unused]] size_t n, [[maybe_unused]] size_t s, [[maybe_unused]] const T beta)
 Adds the scalar beta to each element of the single-precision vector x. More...
 

Detailed Description

EGBLAS wrappers for the scalar_add operation.

Function Documentation

◆ scalar_add()

template<typename T >
void etl::impl::egblas::scalar_add ( [[maybe_unused] ] T *  x,
[[maybe_unused] ] size_t  n,
[[maybe_unused] ] size_t  s,
[[maybe_unused] ] const T  beta 
)
inline

Adds the scalar beta to each element of the single-precision vector x.

Parameters
xThe vector to add the scalar to (GPU pointer)
nThe size of the vector
sThe stride of the vector
betaThe scalar to add