Template Struct gammaRecursion< Real, twoS, false >

Struct Documentation

template<typename Real, int twoS>
struct gammaRecursion<Real, twoS, false>

Compute gamma function for negative half-integral s values using the recursion. \( \Gamma[\frac{\mathrm{twoS}}{2}] = \frac{2\Gamma[\frac{\mathrm{twoS}_2}{2}]}{\mathrm{twoS}} \) Returns infinity (expressed as the largest value representable by Real) for \(twoS = 0, -2, -4, -6, \ldots\) .

Public Static Attributes

static constexpr Real value = gammaRecursion<Real, twoS + 2, false>::value == std::numeric_limits<Real>::max() ? std::numeric_limits<Real>::max() : gammaRecursion<Real, twoS + 2, false>::value / (0.5f * twoS)