Module numeric_translators

Source

Structsยง

BFloat16Translator
DoublePrecisionTranslator
E4M3Translator
E5M2Translator
HalfPrecisionTranslator
Posit8Translator
Posit16Translator
Posit32Translator
PositQuire8Translator
PositQuire16Translator
SignedFixedPointTranslator
SignedTranslator
SinglePrecisionTranslator
UnsignedFixedPointTranslator
UnsignedTranslator

Functionsยง

decode_e4m3 ๐Ÿ”’
Decode u8 as 8-bit float with four exponent bits and three mantissa bits
decode_e5m2 ๐Ÿ”’
Decode u8 as 8-bit float with five exponent bits and two mantissa bits
shortest_float_representation ๐Ÿ”’
translate_numeric ๐Ÿ”’
If value is a biguint or consists only of 1 or 0, translates the value using biguint_translator. If value contains other values such as X, Z etc. the result is the corresponding ValueKind