Defines wrapper functions for mathematical functions taken from libraries, and several other mathematical functions. More...
Go to the source code of this file.
Classes | |
struct | mathutils::FactOverflow |
Namespaces | |
mathutils | |
Comprises wrapper functions for mathematical functions taken from libraries (Boost.Math, GSL), and several other mathematical functions. | |
Functions | |
int | mathutils::sign (double) |
int | mathutils::fcmp (double, double, double) |
template<class T > | |
const T | mathutils::sqr (T x) |
double | mathutils::sqr (double x) |
double | mathutils::sqrAbs (const dcomp &) |
double | mathutils::fact (unsigned) throw (FactOverflow) |
double | mathutils::choose (unsigned, unsigned) |
template<typename T > | |
bool | mathutils::parity (T n) |
int | mathutils::round (double r) |
template<typename T > | |
char | mathutils::minusOneToThePowerOf (T n) |
dcomp | mathutils::coherentElement (unsigned long n, const dcomp &alpha) |
Calculates relying on the Stirling formula if is too large for explicit calculation of factorial. More... | |
Variables | |
const double | mathutils::PI |
const double | mathutils::SQRTPI |
const double | mathutils::EULER |
Defines wrapper functions for mathematical functions taken from libraries, and several other mathematical functions.
The principal aim of this arrangement is to localize dependence on GSL. In particular, GSL headers may be included only in .cc files.
Definition in file MathExtensions.h.