Go to the source code of this file.
|
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...
|
|
◆ 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
-
a | a real-valued input. |
p | integral-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) \).