|
Public Member Functions |
template<> |
bool | isNaN (const float &value) |
template<> |
bool | isNaN (const double &value) |
template<> |
bool | Rand (bool low, bool width) |
template<> |
char | Rand (char low, char width) |
template<> |
int | Rand (int low, int width) |
template<> |
float | Rand (float low, float width) |
template<> |
double | Rand (double low, double width) |
template<> |
dcomplex | Rand (dcomplex low, dcomplex width) |
template<> |
dcomplex | Min (dcomplex a, dcomplex b) |
template<> |
dcomplex | Max (dcomplex a, dcomplex b) |
Static Public Member Functions |
static TYPE | getZero () |
| Get the value 0.
|
static TYPE | getOne () |
| Get the value 1.
|
static TYPE | getSignalingNaN () |
| Get the IEEE signaling NaN on architectures that support it.
|
static bool | isNaN (const TYPE &value) |
| Indicates whether the supplied value is NaN.
|
static TYPE | getMax () |
| Get max for the templated type.
|
static TYPE | getMin () |
| Get min for the templated type.
|
static TYPE | getEpsilon () |
| Get epsilon for the templated type.
|
static TYPE | getUndefined () |
| Get value to set for undefined data.
|
static TYPE | Min (TYPE a, TYPE b) |
| Compute the minimum of a and b.
|
static TYPE | Max (TYPE a, TYPE b) |
| Compute the maximum of a and b.
|
static TYPE | Rand (TYPE low, TYPE width) |
| Generate a random value from low to low+width.
|
The implementation of this class depends heavily on the particular computer architecture and how it implements floating point arithmetic and hardware traps.