Template Struct gammaRecursion

Struct Documentation

template<typename Real, int twoS, bool isPositive>
struct gammaRecursion

Compute gamma function for positive half-integral s values using the recursion. \( \Gamma[\frac{\mathrm{twoS}}{2}] = \Gamma[\frac{\mathrm{twoS}-2}{2}]\frac{\mathrm{twoS}-2}{2} \)

Public Static Attributes

static constexpr Real value = gammaRecursion<Real, twoS - 2, isPositive>::value * (0.5f * twoS - 1)