mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-16 15:14:13 +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
|
@ -155,7 +155,7 @@ namespace sprout {
|
|||
};
|
||||
|
||||
template<typename Value1, typename Value2>
|
||||
SPROUT_CONSTEXPR bool operator==(
|
||||
inline SPROUT_CONSTEXPR bool operator==(
|
||||
sprout::sinusoid_iterator<Value1> const& lhs,
|
||||
sprout::sinusoid_iterator<Value2> const& rhs
|
||||
)
|
||||
|
@ -163,7 +163,7 @@ namespace sprout {
|
|||
return lhs.index() == rhs.index();
|
||||
}
|
||||
template<typename Value1, typename Value2>
|
||||
SPROUT_CONSTEXPR bool operator!=(
|
||||
inline SPROUT_CONSTEXPR bool operator!=(
|
||||
sprout::sinusoid_iterator<Value1> const& lhs,
|
||||
sprout::sinusoid_iterator<Value2> const& rhs
|
||||
)
|
||||
|
@ -171,7 +171,7 @@ namespace sprout {
|
|||
return !(lhs == rhs);
|
||||
}
|
||||
template<typename Value1, typename Value2>
|
||||
SPROUT_CONSTEXPR bool operator<(
|
||||
inline SPROUT_CONSTEXPR bool operator<(
|
||||
sprout::sinusoid_iterator<Value1> const& lhs,
|
||||
sprout::sinusoid_iterator<Value2> const& rhs
|
||||
)
|
||||
|
@ -179,7 +179,7 @@ namespace sprout {
|
|||
return lhs.index() < rhs.index();
|
||||
}
|
||||
template<typename Value1, typename Value2>
|
||||
SPROUT_CONSTEXPR bool operator>(
|
||||
inline SPROUT_CONSTEXPR bool operator>(
|
||||
sprout::sinusoid_iterator<Value1> const& lhs,
|
||||
sprout::sinusoid_iterator<Value2> const& rhs
|
||||
)
|
||||
|
@ -187,7 +187,7 @@ namespace sprout {
|
|||
return rhs < lhs;
|
||||
}
|
||||
template<typename Value1, typename Value2>
|
||||
SPROUT_CONSTEXPR bool operator<=(
|
||||
inline SPROUT_CONSTEXPR bool operator<=(
|
||||
sprout::sinusoid_iterator<Value1> const& lhs,
|
||||
sprout::sinusoid_iterator<Value2> const& rhs
|
||||
)
|
||||
|
@ -195,7 +195,7 @@ namespace sprout {
|
|||
return !(rhs < lhs);
|
||||
}
|
||||
template<typename Value1, typename Value2>
|
||||
SPROUT_CONSTEXPR bool operator>=(
|
||||
inline SPROUT_CONSTEXPR bool operator>=(
|
||||
sprout::sinusoid_iterator<Value1> const& lhs,
|
||||
sprout::sinusoid_iterator<Value2> const& rhs
|
||||
)
|
||||
|
@ -203,7 +203,7 @@ namespace sprout {
|
|||
return !(lhs < rhs);
|
||||
}
|
||||
template<typename Value1, typename Value2>
|
||||
SPROUT_CONSTEXPR typename sprout::sinusoid_iterator<Value1>::difference_type operator-(
|
||||
inline SPROUT_CONSTEXPR typename sprout::sinusoid_iterator<Value1>::difference_type operator-(
|
||||
sprout::sinusoid_iterator<Value1> const& lhs,
|
||||
sprout::sinusoid_iterator<Value2> const& rhs
|
||||
)
|
||||
|
@ -211,7 +211,7 @@ namespace sprout {
|
|||
return lhs.index() - rhs.index();
|
||||
}
|
||||
template<typename Value>
|
||||
SPROUT_CONSTEXPR sprout::sinusoid_iterator<Value> operator+(
|
||||
inline SPROUT_CONSTEXPR sprout::sinusoid_iterator<Value> operator+(
|
||||
typename sprout::sinusoid_iterator<Value>::difference_type n,
|
||||
sprout::sinusoid_iterator<Value> const& it
|
||||
)
|
||||
|
@ -223,7 +223,7 @@ namespace sprout {
|
|||
// swap
|
||||
//
|
||||
template<typename Value>
|
||||
void swap(sprout::sinusoid_iterator<Value>& lhs, sprout::sinusoid_iterator<Value>& rhs) SPROUT_NOEXCEPT_EXPR(SPROUT_NOEXCEPT_EXPR(lhs.swap(rhs))) {
|
||||
inline void swap(sprout::sinusoid_iterator<Value>& lhs, sprout::sinusoid_iterator<Value>& rhs) SPROUT_NOEXCEPT_EXPR(SPROUT_NOEXCEPT_EXPR(lhs.swap(rhs))) {
|
||||
lhs.swap(rhs);
|
||||
}
|
||||
|
||||
|
@ -231,14 +231,14 @@ namespace sprout {
|
|||
// next
|
||||
//
|
||||
template<typename Value>
|
||||
SPROUT_CONSTEXPR sprout::sinusoid_iterator<Value> next(
|
||||
inline SPROUT_CONSTEXPR sprout::sinusoid_iterator<Value> next(
|
||||
sprout::sinusoid_iterator<Value> const& it
|
||||
)
|
||||
{
|
||||
return it.next();
|
||||
}
|
||||
template<typename Value>
|
||||
SPROUT_CONSTEXPR sprout::sinusoid_iterator<Value> next(
|
||||
inline SPROUT_CONSTEXPR sprout::sinusoid_iterator<Value> next(
|
||||
sprout::sinusoid_iterator<Value> const& it,
|
||||
typename sprout::sinusoid_iterator<Value>::difference_type n
|
||||
)
|
||||
|
@ -250,14 +250,14 @@ namespace sprout {
|
|||
// prev
|
||||
//
|
||||
template<typename Value>
|
||||
SPROUT_CONSTEXPR sprout::sinusoid_iterator<Value> prev(
|
||||
inline SPROUT_CONSTEXPR sprout::sinusoid_iterator<Value> prev(
|
||||
sprout::sinusoid_iterator<Value> const& it
|
||||
)
|
||||
{
|
||||
return it.prev();
|
||||
}
|
||||
template<typename Value>
|
||||
SPROUT_CONSTEXPR sprout::sinusoid_iterator<Value> prev(
|
||||
inline SPROUT_CONSTEXPR sprout::sinusoid_iterator<Value> prev(
|
||||
sprout::sinusoid_iterator<Value> const& it,
|
||||
typename sprout::sinusoid_iterator<Value>::difference_type n
|
||||
)
|
||||
|
@ -269,7 +269,7 @@ namespace sprout {
|
|||
// distance
|
||||
//
|
||||
template<typename Value>
|
||||
SPROUT_CONSTEXPR typename std::iterator_traits<sprout::sinusoid_iterator<Value> >::difference_type
|
||||
inline SPROUT_CONSTEXPR typename std::iterator_traits<sprout::sinusoid_iterator<Value> >::difference_type
|
||||
distance(
|
||||
sprout::sinusoid_iterator<Value> first,
|
||||
sprout::sinusoid_iterator<Value> last
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue