Harlinn.Windows 0.1
Loading...
Searching...
No Matches
std::numeric_limits< half_float::half > Class Reference

#include <half.hpp>

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

Static Public Member Functions

static HALF_CONSTEXPR half_float::half min () HALF_NOTHROW
 Smallest positive normal value.
 
static HALF_CONSTEXPR half_float::half lowest () HALF_NOTHROW
 Smallest finite value.
 
static HALF_CONSTEXPR half_float::half max () HALF_NOTHROW
 Largest finite value.
 
static HALF_CONSTEXPR half_float::half epsilon () HALF_NOTHROW
 Difference between one and next representable value.
 
static HALF_CONSTEXPR half_float::half round_error () HALF_NOTHROW
 Maximum rounding error.
 
static HALF_CONSTEXPR half_float::half infinity () HALF_NOTHROW
 Positive infinity.
 
static HALF_CONSTEXPR half_float::half quiet_NaN () HALF_NOTHROW
 Quiet NaN.
 
static HALF_CONSTEXPR half_float::half signaling_NaN () HALF_NOTHROW
 Signalling NaN.
 
static HALF_CONSTEXPR half_float::half denorm_min () HALF_NOTHROW
 Smallest positive subnormal value.
 

Static Public Attributes

static HALF_CONSTEXPR_CONST bool is_signed = true
 Supports signed values.
 
static HALF_CONSTEXPR_CONST bool is_exact = false
 Is not exact.
 
static HALF_CONSTEXPR_CONST bool is_modulo = false
 Doesn't provide modulo arithmetic.
 
static HALF_CONSTEXPR_CONST bool is_iec559 = true
 IEEE conformant.
 
static HALF_CONSTEXPR_CONST bool has_infinity = true
 Supports infinity.
 
static HALF_CONSTEXPR_CONST bool has_quiet_NaN = true
 Supports quiet NaNs.
 
static HALF_CONSTEXPR_CONST float_denorm_style has_denorm = denorm_present
 Supports subnormal values.
 
static HALF_CONSTEXPR_CONST float_round_style round_style
 
static HALF_CONSTEXPR_CONST int digits = 11
 Significant digits.
 
static HALF_CONSTEXPR_CONST int digits10 = 3
 Significant decimal digits.
 
static HALF_CONSTEXPR_CONST int max_digits10 = 5
 Required decimal digits to represent all possible values.
 
static HALF_CONSTEXPR_CONST int radix = 2
 Number base.
 
static HALF_CONSTEXPR_CONST int min_exponent = -13
 One more than smallest exponent.
 
static HALF_CONSTEXPR_CONST int min_exponent10 = -4
 Smallest normalized representable power of 10.
 
static HALF_CONSTEXPR_CONST int max_exponent = 16
 One more than largest exponent.
 
static HALF_CONSTEXPR_CONST int max_exponent10 = 4
 Largest finitely representable power of 10.
 

Detailed Description

Numeric limits for half-precision floats. Because of the underlying single-precision implementation of many operations, it inherits some properties from std::numeric_limits<float>.

Member Function Documentation

◆ denorm_min()

static HALF_CONSTEXPR half_float::half std::numeric_limits< half_float::half >::denorm_min ( )
inlinestatic

Smallest positive subnormal value.

◆ epsilon()

static HALF_CONSTEXPR half_float::half std::numeric_limits< half_float::half >::epsilon ( )
inlinestatic

Difference between one and next representable value.

◆ infinity()

static HALF_CONSTEXPR half_float::half std::numeric_limits< half_float::half >::infinity ( )
inlinestatic

Positive infinity.

◆ lowest()

static HALF_CONSTEXPR half_float::half std::numeric_limits< half_float::half >::lowest ( )
inlinestatic

Smallest finite value.

◆ max()

static HALF_CONSTEXPR half_float::half std::numeric_limits< half_float::half >::max ( )
inlinestatic

Largest finite value.

◆ min()

static HALF_CONSTEXPR half_float::half std::numeric_limits< half_float::half >::min ( )
inlinestatic

Smallest positive normal value.

◆ quiet_NaN()

static HALF_CONSTEXPR half_float::half std::numeric_limits< half_float::half >::quiet_NaN ( )
inlinestatic

Quiet NaN.

◆ round_error()

static HALF_CONSTEXPR half_float::half std::numeric_limits< half_float::half >::round_error ( )
inlinestatic

Maximum rounding error.

◆ signaling_NaN()

static HALF_CONSTEXPR half_float::half std::numeric_limits< half_float::half >::signaling_NaN ( )
inlinestatic

Signalling NaN.

Member Data Documentation

◆ digits

HALF_CONSTEXPR_CONST int std::numeric_limits< half_float::half >::digits = 11
static

Significant digits.

◆ digits10

HALF_CONSTEXPR_CONST int std::numeric_limits< half_float::half >::digits10 = 3
static

Significant decimal digits.

◆ has_denorm

HALF_CONSTEXPR_CONST float_denorm_style std::numeric_limits< half_float::half >::has_denorm = denorm_present
static

Supports subnormal values.

◆ has_infinity

HALF_CONSTEXPR_CONST bool std::numeric_limits< half_float::half >::has_infinity = true
static

Supports infinity.

◆ has_quiet_NaN

HALF_CONSTEXPR_CONST bool std::numeric_limits< half_float::half >::has_quiet_NaN = true
static

Supports quiet NaNs.

◆ is_exact

HALF_CONSTEXPR_CONST bool std::numeric_limits< half_float::half >::is_exact = false
static

Is not exact.

◆ is_iec559

HALF_CONSTEXPR_CONST bool std::numeric_limits< half_float::half >::is_iec559 = true
static

IEEE conformant.

◆ is_modulo

HALF_CONSTEXPR_CONST bool std::numeric_limits< half_float::half >::is_modulo = false
static

Doesn't provide modulo arithmetic.

◆ is_signed

HALF_CONSTEXPR_CONST bool std::numeric_limits< half_float::half >::is_signed = true
static

Supports signed values.

◆ max_digits10

HALF_CONSTEXPR_CONST int std::numeric_limits< half_float::half >::max_digits10 = 5
static

Required decimal digits to represent all possible values.

◆ max_exponent

HALF_CONSTEXPR_CONST int std::numeric_limits< half_float::half >::max_exponent = 16
static

One more than largest exponent.

◆ max_exponent10

HALF_CONSTEXPR_CONST int std::numeric_limits< half_float::half >::max_exponent10 = 4
static

Largest finitely representable power of 10.

◆ min_exponent

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

One more than smallest exponent.

◆ min_exponent10

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

Smallest normalized representable power of 10.

◆ radix

HALF_CONSTEXPR_CONST int std::numeric_limits< half_float::half >::radix = 2
static

Number base.

◆ round_style

HALF_CONSTEXPR_CONST float_round_style std::numeric_limits< half_float::half >::round_style
static
Initial value:
= (std::numeric_limits<float>::round_style==
static const std::float_round_style round_style
Rounding mode to use.
Definition half.hpp:1180

Rounding mode. Due to the mix of internal single-precision computations (using the rounding mode of the underlying single-precision implementation) with the rounding mode of the single-to-half conversions, the actual rounding mode might be std::round_indeterminate if the default half-precision rounding mode doesn't match the single-precision rounding mode.


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