32 #ifndef HERMES_HERMES_NUMERIC_E_FLOAT_H
33 #define HERMES_HERMES_NUMERIC_E_FLOAT_H
153 f64 relativeError()
const;
156 long double preciseValue()
const;
Represents a value with error bounds.
Definition: e_float.h:47
HERMES_DEVICE_CALLABLE f32 upperBound() const
Computes the upper error bound carried by this number.
Definition: e_float.h:146
HERMES_DEVICE_CALLABLE f32 lowerBound() const
Computes the lower error bound carried by this number.
Definition: e_float.h:149
HERMES_DEVICE_CALLABLE EFloat()
Default constructor.
Definition: e_float.h:64
HERMES_DEVICE_CALLABLE f32 absoluteError() const
Computes the absolute error carried by this number.
Definition: e_float.h:143
HERMES_DEVICE_CALLABLE EFloat(f32 v, f32 e=0.f)
Constructs from value and error size.
Definition: e_float.h:68
T low
lowest interval value
Definition: interval.h:163
T high
greatest interval value
Definition: interval.h:164
#define HERMES_DEVICE_CALLABLE
Specifies that the function can be called from both host and device sides.
Definition: defs.h:45
double f64
64 bit size floating point type
Definition: defs.h:79
float f32
32 bit size floating point type
Definition: defs.h:78
static HERMES_DEVICE_CALLABLE f32 nextFloatUp(f32 v)
Computes the next greater representable floating-point value.
Definition: numeric.h:392
static HERMES_DEVICE_CALLABLE f32 nextFloatDown(f32 v)
Computes the next smaller representable floating-point value.
Definition: numeric.h:411