unary_specialized< T > Struct Template Reference

unary_specialized&lt; T &gt; Struct Template Reference#

half: half_float::detail::unary_specialized< T > Struct Template Reference
half_float::detail::unary_specialized< T > Struct Template Reference

Wrapper for unary half-precision functions needing specialization for individual argument types. More...

#include <half.hpp>

Static Public Member Functions

static constexpr half negate (half arg)
 Negation implementation. More...
 
static half fabs (half arg)
 Absolute value implementation. More...
 

Detailed Description

template<typename T>
struct half_float::detail::unary_specialized< T >

Wrapper for unary half-precision functions needing specialization for individual argument types.

Template Parameters
Targument type

Definition at line 1982 of file half.hpp.

Member Function Documentation

◆ negate()

template<typename T >
static constexpr half half_float::detail::unary_specialized< T >::negate ( half  arg)
inlinestaticconstexpr

Negation implementation.

Parameters
argvalue to negate
Returns
negated value

Definition at line 1987 of file half.hpp.

◆ fabs()

template<typename T >
static half half_float::detail::unary_specialized< T >::fabs ( half  arg)
inlinestatic

Absolute value implementation.

Parameters
argfunction argument
Returns
absolute value

Definition at line 1992 of file half.hpp.


The documentation for this struct was generated from the following file:
  • /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-half/checkouts/latest/include/half.hpp