STK++ 0.9.13
|
In this file we define miscellaneous utility (template) functions. More...
#include <cmath>
#include <cstdlib>
Go to the source code of this file.
Namespaces | |
namespace | STK |
The namespace STK is the main domain space of the Statistical ToolKit project. | |
Functions | |
template<typename Type > | |
Type | STK::sign (Type const &x, Type const &y=Type(1)) |
template sign value sign(x) * y: Type should be an integral type | |
Real | STK::frand () |
frand() generate a Real uniform number. | |
bool | STK::isOdd (int const &x) |
is x a odd number ? | |
bool | STK::isEven (int const &x) |
is x an even number ? | |
Real | STK::norm (Real const &x, Real const &y) |
Computation of sqrt(x^2 + y^2) without underflow or overflow. | |
In this file we define miscellaneous utility (template) functions.
Definition in file STK_Misc.h.