21#ifndef _gcem_binomial_coef_HPP
22#define _gcem_binomial_coef_HPP
34 (k == T(0) || n == k) ? T(1) :
40template<typename T, typename std::enable_if<std::is_integral<T>::value>
::type* =
nullptr>
49template<typename T, typename std::enable_if<!std::is_integral<T>::value>
::type* =
nullptr>
61template<
typename T1,
typename T2,
typename TC = common_t<T1,T2>>
82template<
typename T1,
typename T2>
constexpr common_t< T1, T2 > binomial_coef(const T1 n, const T2 k) noexcept
Compile-time binomial coefficient.
Definition: binomial_coef.hpp:85
type
Definition: core.h:575
unsigned long long int ullint_t
Definition: gcem_options.hpp:69
Definition: Eigen_Colamd.h:50
constexpr TC binomial_coef_type_check(const T1 n, const T2 k) noexcept
Definition: binomial_coef.hpp:64
constexpr T binomial_coef_check(const T n, const T k) noexcept
Definition: binomial_coef.hpp:43
constexpr T binomial_coef_recur(const T n, const T k) noexcept
Definition: binomial_coef.hpp:30