Uni20
Asynchronous tensor and runtime library.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
uni20::linalg::negate Struct Reference

Return the additive inverse of one element value. More...

#include <elementwise_functions.hpp>

Public Member Functions

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

Detailed Description

Return the additive inverse of one element value.

The named type permits precompiled backends to register an explicit lowering while the same object remains usable by generic host code.

Member Function Documentation

◆ operator()()

template<class Value >
UNI20_HOST_DEVICE constexpr auto uni20::linalg::negate::operator() ( Value  value) const -> decltype(-value)
inlineconstexprnoexcept

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