C++QEDCore  2.100.2 (v2 Milestone 10 Development branch)
a framework for simulating open quantum dynamics – core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
MathExtensions.h File Reference

Defines wrapper functions for mathematical functions taken from libraries, and several other mathematical functions. More...

#include "MathExtensionsFwd.h"
#include "ComplexExtensions.h"
#include "Exception.h"
+ Include dependency graph for MathExtensions.h:
+ This graph shows which files directly or indirectly include this file:

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 $\alpha^n/\sqrt{n!}$ relying on the Stirling formula if $n$ is too large for explicit calculation of factorial. More...
 

Variables

const double mathutils::PI
 
const double mathutils::SQRTPI
 
const double mathutils::EULER
 

Detailed Description

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.