Uni20
Asynchronous tensor and runtime library.
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
uni20::linalg::scale< Factor > Struct Template Reference

Multiply one element value by a retained scalar factor. More...

#include <elementwise_functions.hpp>

Public Member Functions

template<class Value >
UNI20_HOST_DEVICE constexpr auto operator() (Value value) const noexcept(noexcept(factor *value)) -> decltype(factor *value)
 

Public Attributes

Factor factor
 

Detailed Description

template<class Factor>
struct uni20::linalg::scale< Factor >

Multiply one element value by a retained scalar factor.

The factor is part of the operation payload carried through dispatch. Precompiled backends explicitly register supported factor and element-type combinations.

Member Function Documentation

◆ operator()()

template<class Factor >
template<class Value >
UNI20_HOST_DEVICE constexpr auto uni20::linalg::scale< Factor >::operator() ( Value  value) const -> decltype(factor * value)
inlineconstexprnoexcept

Member Data Documentation

◆ factor

template<class Factor >
Factor uni20::linalg::scale< Factor >::factor

The documentation for this struct was generated from the following file: