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

EGBLAS wrappers for the scalar_set 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_set ([[maybe_unused]] T *x, [[maybe_unused]] size_t n, [[maybe_unused]] size_t s, [[maybe_unused]] const T beta)
 sets the scalar beta to each element of the single-precision vector x More...
 

Detailed Description

EGBLAS wrappers for the scalar_set operation.

Function Documentation

◆ scalar_set()

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

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

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