Template Class gammaComputer

Class Documentation

template<typename Real, int twoS>
class gammaComputer

Computes the Gamma function. \( \Gamma[s] = \int_0^\infty t^{s-1} e^{-t} \mathrm{d}t \) In this code we only need half integral values for the \(s\) argument, so the input argument \(s\) will yield \(\Gamma[\frac{s}{2}]\).

Template Parameters:
  • Real – the floating point type to use for arithmetic.

  • twoS – twice the s value required.

Public Static Attributes

static constexpr Real value = gammaRecursion<Real, twoS, (twoS > 0)>::value

The value of \(\Gamma[\frac{\mathrm{twos}}{2}]\).