float8_e4m3fn

The APIs described in this section are reserved and may be changed or deprecated in the future. You are not advised to use these APIs.

Table 1 API list

API Definition

Description

FromBits()

Returns the tag used to construct a Float8E4M3FN object from a bit pattern.

Float8E4M3FN()

Default constructor of struct Float8E4M3FN, initialized to zero.

Float8E4M3FN(uint8_t bits, FromBitsTag)

Constructor of struct Float8E4M3FN, which constructs an object from the original bit pattern.

Float8E4M3FN(float v)

Constructor of struct Float8E4M3FN, which constructs an object from a float value.

operator float()

Converts Float8E4M3FN to float.

operator double()

Converts Float8E4M3FN to double.

Epsilon()

Returns the machine epsilon value of the Float8E4M3FN data type.

Highest()

Returns the maximum finite value of the Float8E4M3FN data type.

Lowest()

Returns the minimum finite value of the Float8E4M3FN data type.

MinPositiveNormal()

Returns the minimum normalized number of the Float8E4M3FN data type.

IsZero()

Checks whether the current Float8E4M3FN value is zero.

IsNaN()

Checks whether the current Float8E4M3FN value is NaN.

IsInf()

Checks whether the current Float8E4M3FN value is infinite.

isinf(const Float8E4M3FN &a)

Checks whether the given Float8E4M3FN value a is infinite.

isnan(const Float8E4M3FN &a)

Checks whether the given Float8E4M3FN value a is NaN.

isfinite(const Float8E4M3FN &a)

Checks whether the given Float8E4M3FN value a is finite.

min()

Returns the minimum normalized number of the Float8E4M3FN data type.

lowest()

Returns the minimum finite value of the Float8E4M3FN data type.

max()

Returns the maximum finite value of the Float8E4M3FN data type.

epsilon()

Returns the machine epsilon value of the Float8E4M3FN data type.

round_error()

Returns the maximum rounding error of the Float8E4M3FN data type.

infinity()

Returns the maximum value of the Float8E4M3FN data type (if infinity is returned, the maximum finite value is returned).

quiet_NaN()

Returns the quiet NaN value of the Float8E4M3FN data type.

signaling_NaN()

Returns the signaling NaN value of the Float8E4M3FN data type.

denorm_min()

Returns the minimum positive denormalized value of the Float8E4M3FN data type.