Contents

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) noexcept

Narrows value to every element type on the host.

Parameters

value

Narrows to an integer type by saturating to its range, then truncating toward zero; NaN becomes 0.

template <typename T>
T as() const noexcept

Returns the parameter in element type T.

Template parameters

T

sycl::half, float, double, int32_t or int64_t.

double value() const noexcept

Returns the parameter as given, for the task's metadata.