1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-08-03 12:49:50 +00:00

add sprout/numeric/dft.wave.hpp

fix constexpr -> inline constexpr
This commit is contained in:
bolero-MURAKAMI 2012-07-15 16:04:05 +09:00
parent e4a4d17207
commit f9d4b475b4
69 changed files with 420 additions and 378 deletions

View file

@ -757,7 +757,7 @@ namespace sprout {
// factorial_limit
//
template<typename T, typename = typename std::enable_if<std::is_arithmetic<T>::value>::type>
SPROUT_CONSTEXPR std::size_t factorial_limit() {
inline SPROUT_CONSTEXPR std::size_t factorial_limit() {
typedef typename std::remove_cv<T>::type type;
return sprout::math::detail::factorials<type>::limit;
}
@ -765,7 +765,7 @@ namespace sprout {
// factorial
//
template<typename T, typename = typename std::enable_if<std::is_arithmetic<T>::value>::type>
SPROUT_CONSTEXPR T factorial(std::size_t x) {
inline SPROUT_CONSTEXPR T factorial(std::size_t x) {
typedef typename std::remove_cv<T>::type type;
return x <= sprout::math::factorial_limit<type>()
? sprout::math::detail::factorials<type>::table[x]