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:
parent
e4a4d17207
commit
f9d4b475b4
69 changed files with 420 additions and 378 deletions
|
@ -223,7 +223,7 @@ namespace sprout {
|
|||
// bernoulli_number_limit
|
||||
//
|
||||
template<typename T, typename = typename std::enable_if<std::is_floating_point<T>::value>::type>
|
||||
SPROUT_CONSTEXPR std::size_t bernoulli_number_limit() {
|
||||
inline SPROUT_CONSTEXPR std::size_t bernoulli_number_limit() {
|
||||
typedef typename std::remove_cv<T>::type type;
|
||||
return sprout::math::detail::bernoulli_numbers<type>::limit;
|
||||
}
|
||||
|
@ -231,7 +231,7 @@ namespace sprout {
|
|||
// bernoulli_number
|
||||
//
|
||||
template<typename T, typename = typename std::enable_if<std::is_floating_point<T>::value>::type>
|
||||
SPROUT_CONSTEXPR T bernoulli_number(std::size_t x) {
|
||||
inline SPROUT_CONSTEXPR T bernoulli_number(std::size_t x) {
|
||||
typedef typename std::remove_cv<T>::type type;
|
||||
return x <= sprout::math::bernoulli_number_limit<type>()
|
||||
? x == 1 ? type(-1) / 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue