expr Struct Reference

expr Struct Reference#

half: half_float::detail::expr Struct Reference
half_float::detail::expr Struct Reference

Temporary half-precision expression. More...

#include <half.hpp>

Public Member Functions

constexpr expr (float f) noexcept
 Conversion constructor. More...
 
constexpr operator float () const noexcept
 Conversion to single-precision. More...
 

Private Attributes

float value_
 Internal expression value stored in single-precision.
 

Detailed Description

Temporary half-precision expression.

This class represents a half-precision expression which just stores a single-precision value internally.

Definition at line 353 of file half.hpp.

Constructor & Destructor Documentation

◆ expr()

constexpr half_float::detail::expr::expr ( float  f)
inlineexplicitconstexprnoexcept

Conversion constructor.

Parameters
fsingle-precision value to convert

Definition at line 357 of file half.hpp.

Member Function Documentation

◆ operator float()

constexpr half_float::detail::expr::operator float ( ) const
inlineconstexprnoexcept

Conversion to single-precision.

Returns
single precision value representing expression value

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