mir.math.ieee

Base floating point routines.

Members

Enums

RealFormat
enum RealFormat

Functions

feqrel
int feqrel(T x, T y)

To what precision is x equal to y?

frexp
T frexp(T value, int exp)

Separate floating point value into significand and exponent.

ieeeMean
T ieeeMean(T xx, T yy)

Return the value that lies halfway between x and y on the IEEE number line.

ldexp
T ldexp(T n, int exp)
nextDown
T nextDown(T x)

Calculate the next smallest floating point value before x.

nextUp
T nextUp(T x)

Calculate the next largest floating point value after x.

signbit
bool signbit(T x)

Return true if sign bit of e is set, false if not.

Manifest constants

MANTISSA_LSB
enum MANTISSA_LSB;
Undocumented in source.
MANTISSA_LSB
enum MANTISSA_LSB;
Undocumented in source.
MANTISSA_MSB
enum MANTISSA_MSB;
Undocumented in source.
MANTISSA_MSB
enum MANTISSA_MSB;
Undocumented in source.

Templates

floatTraits
template floatTraits(T)
Undocumented in source.

Meta

License

Apache-2.0

Authors

Walter Bright, Don Clugston, Ilya Yaroshenko