Template Class incompleteGammaComputer

Class Documentation

template<typename Real, int twoS>
class incompleteGammaComputer

Computes the upper incomplete Gamma function. \( \Gamma[s,x] = \int_x^\infty t^{s-1} e^{-t} \mathrm{d}t \) In this code we only need half integral arguments for \(s\), and only positive \(x\) arguments.

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

  • twoS – twice the s value required.

Public Static Functions

static inline Real compute(Real x)

Computes the incomplete gamma function.

Parameters:

x – value required.

Returns:

\(\Gamma[\frac{\mathrm{twoS}}{2}, x^2]\).