binary_specialized< T, U > Struct Template Reference

binary_specialized&lt; T, U &gt; Struct Template Reference#

half: half_float::detail::binary_specialized< T, U > Struct Template Reference
half_float::detail::binary_specialized< T, U > Struct Template Reference

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

#include <half.hpp>

Static Public Member Functions

static expr fmin (float x, float y)
 Minimum implementation. More...
 
static expr fmax (float x, float y)
 Maximum implementation. More...
 

Detailed Description

template<typename T, typename U>
struct half_float::detail::binary_specialized< T, U >

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

Template Parameters
Tfirst argument type
Ufirst argument type

Definition at line 2003 of file half.hpp.

Member Function Documentation

◆ fmin()

template<typename T , typename U >
static expr half_float::detail::binary_specialized< T, U >::fmin ( float  x,
float  y 
)
inlinestatic

Minimum implementation.

Parameters
xfirst operand
ysecond operand
Returns
minimum value

Definition at line 2009 of file half.hpp.

◆ fmax()

template<typename T , typename U >
static expr half_float::detail::binary_specialized< T, U >::fmax ( float  x,
float  y 
)
inlinestatic

Maximum implementation.

Parameters
xfirst operand
ysecond operand
Returns
maximum value

Definition at line 2026 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