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

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
 

Detailed Description

template<class Factor>
struct uni20::linalg::add_scaled< 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.

Member Function Documentation

◆ operator()()

template<class Factor >
template<class Output , class Input >
UNI20_HOST_DEVICE constexpr auto uni20::linalg::add_scaled< Factor >::operator() ( Output  output,
Input  input 
) const -> decltype(output + factor * input)
inlineconstexprnoexcept

Member Data Documentation

◆ factor

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

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