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

EGBLAS wrappers for the scalar_div 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_div ([[maybe_unused]] T beta, [[maybe_unused]] T *x, [[maybe_unused]] size_t n, [[maybe_unused]] size_t s)
 Divide the scalar beta by each element of the single-precision vector x. More...
 

Detailed Description

EGBLAS wrappers for the scalar_div operation.

Function Documentation

◆ scalar_div()

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

Divide the scalar beta by each element of the single-precision vector x.

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