class
SushiBLAS::Dispatch::ElementScalar
Holds one double parameter as a value of each real and integer element type.
- Declared in
include/SushiBLAS/engine/math/elementwise/scalar.hpp
See also
include/SushiBLAS/engine/math/README.md
Public member functions
explicit ElementScalar(double value) noexceptNarrows value to every element type on the host.
Parameters
valueNarrows to an integer type by saturating to its range, then truncating toward zero; NaN becomes 0.
template <typename T>
T as() const noexceptReturns the parameter in element type T.
Template parameters
Tsycl::half, float, double, int32_t or int64_t.
double value() const noexceptReturns the parameter as given, for the task's metadata.

