WPILibC++ 2023.4.3-108-ge5452e3
lmgamma.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  internal
 

Functions

template<typename T1 , typename T2 >
constexpr T1 internal::lmgamma_recur (const T1 a, const T2 p) noexcept
 
template<typename T1 , typename T2 >
constexpr return_t< T1 > lmgamma (const T1 a, const T2 p) noexcept
 Compile-time log multivariate gamma function. More...
 

Function Documentation

◆ lmgamma()

template<typename T1 , typename T2 >
constexpr return_t< T1 > lmgamma ( const T1  a,
const T2  p 
)
constexprnoexcept

Compile-time log multivariate gamma function.

Parameters
aa real-valued input.
pintegral-valued input.
Returns
computes log-multivariate gamma function via recursion

\[ \Gamma_p(a) = \pi^{(p-1)/2} \Gamma(a) \Gamma_{p-1}(a-0.5) \]

where \( \Gamma_1(a) = \Gamma(a) \).