|
STK++ 1.0
|
Specialization for Real. More...
#include <STK_Real.h>

Static Public Member Functions | |
| static Real | NA () throw () |
| Adding a Non Avalaible (NA) special number using the quiet_NaN method. | |
| static bool | isNA (Real const &x) throw () |
| Test if x is a Non Avalaible (NA) special number. | |
| static bool | isInfinite (Real const &x) throw () |
| Test if x is infinite. | |
| static bool | isFinite (Real const &x) throw () |
| Test if x is finite. | |
Static Public Attributes | |
| static const bool | has_quiet_NaN = false |
| We are using the quiet_NaN representation for NA numbers. | |
| static const bool | hasNA = true |
| True if the type has a representation for a "Not Available.". | |
Specialization for Real.
We are using the quiet_NaN() representation of the underlying Type for representing NA (not available) numbers.
Definition at line 60 of file STK_Real.h.
| static Real STK::Arithmetic< Real >::NA | ( | ) | throw () [inline, static] |
Adding a Non Avalaible (NA) special number using the quiet_NaN method.
Definition at line 69 of file STK_Real.h.
{ return std::numeric_limits<Real>::quiet_NaN();}
| static bool STK::Arithmetic< Real >::isNA | ( | Real const & | x | ) | throw () [inline, static] |
Test if x is a Non Avalaible (NA) special number.
| x | the Real to test. |
Definition at line 78 of file STK_Real.h.
{ return !(x==x);}
| static bool STK::Arithmetic< Real >::isInfinite | ( | Real const & | x | ) | throw () [inline, static] |
Test if x is infinite.
| x | the Real to test. |
Definition at line 84 of file STK_Real.h.
References STK::max().
{ return ( (x < -std::numeric_limits<Real>::max())
||(x > std::numeric_limits<Real>::max())
);
}
| static bool STK::Arithmetic< Real >::isFinite | ( | Real const & | x | ) | throw () [inline, static] |
Test if x is finite.
| x | the Real to test. |
Definition at line 93 of file STK_Real.h.
References STK::Arithmetic< TYPE >::isInfinite(), and STK::Arithmetic< TYPE >::isNA().
{ return (!isNA(x) && !isInfinite(x));}
const bool STK::Arithmetic< Real >::has_quiet_NaN = false [static] |
We are using the quiet_NaN representation for NA numbers.
Definition at line 64 of file STK_Real.h.
const bool STK::Arithmetic< Real >::hasNA = true [static] |
True if the type has a representation for a "Not Available.".
Definition at line 73 of file STK_Real.h.