WPILibC++ 2023.4.3
|
Go to the source code of this file.
Namespaces | |
namespace | internal |
Functions | |
template<typename T > | |
constexpr T | internal::log_binomial_coef_compute (const T n, const T k) noexcept |
template<typename T1 , typename T2 , typename TC = common_return_t<T1,T2>> | |
constexpr TC | internal::log_binomial_coef_type_check (const T1 n, const T2 k) noexcept |
template<typename T1 , typename T2 > | |
constexpr common_return_t< T1, T2 > | log_binomial_coef (const T1 n, const T2 k) noexcept |
Compile-time log binomial coefficient. More... | |
|
constexprnoexcept |
Compile-time log binomial coefficient.
n | integral-valued input. |
k | integral-valued input. |
\[ \ln \frac{n!}{k!(n-k)!} = \ln \Gamma(n+1) - [ \ln \Gamma(k+1) + \ln \Gamma(n-k+1) ] \]