|
Uni20
Asynchronous tensor and runtime library.
|
Add one retained scalar multiple to an existing element value. More...
#include <elementwise_functions.hpp>
Public Member Functions | |
| template<class Output , class Input > | |
| UNI20_HOST_DEVICE constexpr auto | operator() (Output output, Input input) const noexcept(noexcept(output+factor *input)) -> decltype(output+factor *input) |
Public Attributes | |
| Factor | factor |
Add one retained scalar multiple to an existing element value.
The first argument is the existing output value and the second is the input value, giving output + factor * input.
|
inlineconstexprnoexcept |
| Factor uni20::linalg::add_scaled< Factor >::factor |