ClikaRT::dtype::float6_e3m2_t
struct
Header: ClikaRT/compute/scalar_types.h
FP6 E3M2: 1 sign + 3 exponent + 2 mantissa, bias 3. Range ±28, smallest normal 2^-2, eps 2^-2. Low 6 bits of a byte.
Static member functions
from_bits()
static constexpr float6_e3m2_t from_bits(std::uint8_t b) noexcept
Reinterpret the low 6 bits of b as an encoding without converting.
Declared in ClikaRT/compute/scalar_types.h, line 307
Member functions
float6_e3m2_t()
constexpr constexpr float6_e3m2_t() noexcept=default
Declared in ClikaRT/compute/scalar_types.h, line 298
float6_e3m2_t(float)
explicit float6_e3m2_t(float f) noexcept
Convert from fp32 (round-to-nearest-even; saturates on overflow).
Declared in ClikaRT/compute/scalar_types.h, line 301
operator float()
operator float() const noexcept
Convert to fp32 (lossless).
Declared in ClikaRT/compute/scalar_types.h, line 304
Data members
bits
std::uint8_t bits = 0
Raw encoding in the low 6 bits (the storage/ABI form).
Declared in ClikaRT/compute/scalar_types.h, line 296
Friends
operator==
friend bool operator==(float6_e3m2_t a, float6_e3m2_t b) noexcept
Compares a and b by dequantized value.
Declared in ClikaRT/compute/scalar_types.h, line 309
operator!=
friend bool operator!=(float6_e3m2_t a, float6_e3m2_t b) noexcept
Compares a and b by dequantized value.
Declared in ClikaRT/compute/scalar_types.h, line 310
operator<
friend bool operator<(float6_e3m2_t a, float6_e3m2_t b) noexcept
Compares a and b by dequantized value.
Declared in ClikaRT/compute/scalar_types.h, line 311
operator<=
friend bool operator<=(float6_e3m2_t a, float6_e3m2_t b) noexcept
Compares a and b by dequantized value.
Declared in ClikaRT/compute/scalar_types.h, line 312
operator>
friend bool operator>(float6_e3m2_t a, float6_e3m2_t b) noexcept
Compares a and b by dequantized value.
Declared in ClikaRT/compute/scalar_types.h, line 313
operator>=
friend bool operator>=(float6_e3m2_t a, float6_e3m2_t b) noexcept
Compares a and b by dequantized value.
Declared in ClikaRT/compute/scalar_types.h, line 314