sparrow 1.4.0
C++20 idiomatic APIs for the Apache Arrow Columnar Format
Loading...
Searching...
No Matches
std::numeric_limits< half_float::half > Class Reference

Numeric limits for half-precision floats. More...

#include <float16_t.hpp>

Collaboration diagram for std::numeric_limits< half_float::half >:
[legend]

Static Public Member Functions

static constexpr half_float::half min () noexcept
 Smallest positive normal value.
 
static constexpr half_float::half lowest () noexcept
 Smallest finite value.
 
static constexpr half_float::half max () noexcept
 Largest finite value.
 
static constexpr half_float::half epsilon () noexcept
 Difference between 1 and next representable value.
 
static constexpr half_float::half round_error () noexcept
 Maximum rounding error in ULP (units in the last place).
 
static constexpr half_float::half infinity () noexcept
 Positive infinity.
 
static constexpr half_float::half quiet_NaN () noexcept
 Quiet NaN.
 
static constexpr half_float::half signaling_NaN () noexcept
 Signaling NaN.
 
static constexpr half_float::half denorm_min () noexcept
 Smallest positive subnormal value.
 

Static Public Attributes

static constexpr bool is_specialized = true
 Is template specialization.
 
static constexpr bool is_signed = true
 Supports signed values.
 
static constexpr bool is_integer = false
 Is not an integer type.
 
static constexpr bool is_exact = false
 Is not exact.
 
static constexpr bool is_modulo = false
 Doesn't provide modulo arithmetic.
 
static constexpr bool is_bounded = true
 Has a finite set of values.
 
static constexpr bool is_iec559 = true
 IEEE conformant.
 
static constexpr bool has_infinity = true
 Supports infinity.
 
static constexpr bool has_quiet_NaN = true
 Supports quiet NaNs.
 
static constexpr bool has_signaling_NaN = true
 Supports signaling NaNs.
 
static constexpr float_denorm_style has_denorm = denorm_present
 Supports subnormal values.
 
static constexpr bool has_denorm_loss = false
 Supports no denormalization detection.
 
static constexpr bool traps = false
 Traps only if HALF_ERRHANDLING_THROW_... is acitvated.
 
static constexpr bool tinyness_before = false
 Does not support no pre-rounding underflow detection.
 
static constexpr float_round_style round_style = half_float::half::round_style
 Rounding mode.
 
static constexpr int digits = 11
 Significant digits.
 
static constexpr int digits10 = 3
 Significant decimal digits.
 
static constexpr int max_digits10 = 5
 Required decimal digits to represent all possible values.
 
static constexpr int radix = 2
 Number base.
 
static constexpr int min_exponent = -13
 One more than smallest exponent.
 
static constexpr int min_exponent10 = -4
 Smallest normalized representable power of 10.
 
static constexpr int max_exponent = 16
 One more than largest exponent.
 
static constexpr int max_exponent10 = 4
 Largest finitely representable power of 10.
 

Detailed Description

Numeric limits for half-precision floats.

See also: Documentation for std::numeric_limits

Definition at line 1945 of file float16_t.hpp.

Member Function Documentation

◆ denorm_min()

static constexpr half_float::half std::numeric_limits< half_float::half >::denorm_min ( )
inlinestaticconstexprnoexcept

Smallest positive subnormal value.

Definition at line 2049 of file float16_t.hpp.

◆ epsilon()

static constexpr half_float::half std::numeric_limits< half_float::half >::epsilon ( )
inlinestaticconstexprnoexcept

Difference between 1 and next representable value.

Definition at line 2033 of file float16_t.hpp.

◆ infinity()

static constexpr half_float::half std::numeric_limits< half_float::half >::infinity ( )
inlinestaticconstexprnoexcept

Positive infinity.

Definition at line 2040 of file float16_t.hpp.

◆ lowest()

static constexpr half_float::half std::numeric_limits< half_float::half >::lowest ( )
inlinestaticconstexprnoexcept

Smallest finite value.

Definition at line 2027 of file float16_t.hpp.

◆ max()

static constexpr half_float::half std::numeric_limits< half_float::half >::max ( )
inlinestaticconstexprnoexcept

Largest finite value.

Definition at line 2030 of file float16_t.hpp.

◆ min()

static constexpr half_float::half std::numeric_limits< half_float::half >::min ( )
inlinestaticconstexprnoexcept

Smallest positive normal value.

Definition at line 2024 of file float16_t.hpp.

◆ quiet_NaN()

static constexpr half_float::half std::numeric_limits< half_float::half >::quiet_NaN ( )
inlinestaticconstexprnoexcept

Quiet NaN.

Definition at line 2043 of file float16_t.hpp.

◆ round_error()

static constexpr half_float::half std::numeric_limits< half_float::half >::round_error ( )
inlinestaticconstexprnoexcept

Maximum rounding error in ULP (units in the last place).

Definition at line 2036 of file float16_t.hpp.

◆ signaling_NaN()

static constexpr half_float::half std::numeric_limits< half_float::half >::signaling_NaN ( )
inlinestaticconstexprnoexcept

Signaling NaN.

Definition at line 2046 of file float16_t.hpp.

Member Data Documentation

◆ digits

int std::numeric_limits< half_float::half >::digits = 11
staticconstexpr

Significant digits.

Definition at line 2000 of file float16_t.hpp.

◆ digits10

int std::numeric_limits< half_float::half >::digits10 = 3
staticconstexpr

Significant decimal digits.

Definition at line 2003 of file float16_t.hpp.

◆ has_denorm

float_denorm_style std::numeric_limits< half_float::half >::has_denorm = denorm_present
staticconstexpr

Supports subnormal values.

Definition at line 1980 of file float16_t.hpp.

◆ has_denorm_loss

bool std::numeric_limits< half_float::half >::has_denorm_loss = false
staticconstexpr

Supports no denormalization detection.

Definition at line 1984 of file float16_t.hpp.

◆ has_infinity

bool std::numeric_limits< half_float::half >::has_infinity = true
staticconstexpr

Supports infinity.

Definition at line 1969 of file float16_t.hpp.

◆ has_quiet_NaN

bool std::numeric_limits< half_float::half >::has_quiet_NaN = true
staticconstexpr

Supports quiet NaNs.

Definition at line 1972 of file float16_t.hpp.

◆ has_signaling_NaN

bool std::numeric_limits< half_float::half >::has_signaling_NaN = true
staticconstexpr

Supports signaling NaNs.

Definition at line 1975 of file float16_t.hpp.

◆ is_bounded

bool std::numeric_limits< half_float::half >::is_bounded = true
staticconstexpr

Has a finite set of values.

Definition at line 1963 of file float16_t.hpp.

◆ is_exact

bool std::numeric_limits< half_float::half >::is_exact = false
staticconstexpr

Is not exact.

Definition at line 1957 of file float16_t.hpp.

◆ is_iec559

bool std::numeric_limits< half_float::half >::is_iec559 = true
staticconstexpr

IEEE conformant.

Definition at line 1966 of file float16_t.hpp.

◆ is_integer

bool std::numeric_limits< half_float::half >::is_integer = false
staticconstexpr

Is not an integer type.

Definition at line 1954 of file float16_t.hpp.

◆ is_modulo

bool std::numeric_limits< half_float::half >::is_modulo = false
staticconstexpr

Doesn't provide modulo arithmetic.

Definition at line 1960 of file float16_t.hpp.

◆ is_signed

bool std::numeric_limits< half_float::half >::is_signed = true
staticconstexpr

Supports signed values.

Definition at line 1951 of file float16_t.hpp.

◆ is_specialized

bool std::numeric_limits< half_float::half >::is_specialized = true
staticconstexpr

Is template specialization.

Definition at line 1948 of file float16_t.hpp.

◆ max_digits10

int std::numeric_limits< half_float::half >::max_digits10 = 5
staticconstexpr

Required decimal digits to represent all possible values.

Definition at line 2006 of file float16_t.hpp.

◆ max_exponent

int std::numeric_limits< half_float::half >::max_exponent = 16
staticconstexpr

One more than largest exponent.

Definition at line 2018 of file float16_t.hpp.

◆ max_exponent10

int std::numeric_limits< half_float::half >::max_exponent10 = 4
staticconstexpr

Largest finitely representable power of 10.

Definition at line 2021 of file float16_t.hpp.

◆ min_exponent

int std::numeric_limits< half_float::half >::min_exponent = -13
staticconstexpr

One more than smallest exponent.

Definition at line 2012 of file float16_t.hpp.

◆ min_exponent10

int std::numeric_limits< half_float::half >::min_exponent10 = -4
staticconstexpr

Smallest normalized representable power of 10.

Definition at line 2015 of file float16_t.hpp.

◆ radix

int std::numeric_limits< half_float::half >::radix = 2
staticconstexpr

Number base.

Definition at line 2009 of file float16_t.hpp.

◆ round_style

float_round_style std::numeric_limits< half_float::half >::round_style = half_float::half::round_style
staticconstexpr

Rounding mode.

Definition at line 1997 of file float16_t.hpp.

◆ tinyness_before

bool std::numeric_limits< half_float::half >::tinyness_before = false
staticconstexpr

Does not support no pre-rounding underflow detection.

Definition at line 1994 of file float16_t.hpp.

◆ traps

bool std::numeric_limits< half_float::half >::traps = false
staticconstexpr

Traps only if HALF_ERRHANDLING_THROW_... is acitvated.

Definition at line 1990 of file float16_t.hpp.


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