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
|
@ -156,7 +156,7 @@ namespace sprout {
|
|||
};
|
||||
|
||||
template<typename Value1, typename Value2>
|
||||
SPROUT_CONSTEXPR bool operator==(
|
||||
inline SPROUT_CONSTEXPR bool operator==(
|
||||
sprout::square_iterator<Value1> const& lhs,
|
||||
sprout::square_iterator<Value2> const& rhs
|
||||
)
|
||||
|
@ -164,7 +164,7 @@ namespace sprout {
|
|||
return lhs.index() == rhs.index();
|
||||
}
|
||||
template<typename Value1, typename Value2>
|
||||
SPROUT_CONSTEXPR bool operator!=(
|
||||
inline SPROUT_CONSTEXPR bool operator!=(
|
||||
sprout::square_iterator<Value1> const& lhs,
|
||||
sprout::square_iterator<Value2> const& rhs
|
||||
)
|
||||
|
@ -172,7 +172,7 @@ namespace sprout {
|
|||
return !(lhs == rhs);
|
||||
}
|
||||
template<typename Value1, typename Value2>
|
||||
SPROUT_CONSTEXPR bool operator<(
|
||||
inline SPROUT_CONSTEXPR bool operator<(
|
||||
sprout::square_iterator<Value1> const& lhs,
|
||||
sprout::square_iterator<Value2> const& rhs
|
||||
)
|
||||
|
@ -180,7 +180,7 @@ namespace sprout {
|
|||
return lhs.index() < rhs.index();
|
||||
}
|
||||
template<typename Value1, typename Value2>
|
||||
SPROUT_CONSTEXPR bool operator>(
|
||||
inline SPROUT_CONSTEXPR bool operator>(
|
||||
sprout::square_iterator<Value1> const& lhs,
|
||||
sprout::square_iterator<Value2> const& rhs
|
||||
)
|
||||
|
@ -188,7 +188,7 @@ namespace sprout {
|
|||
return rhs < lhs;
|
||||
}
|
||||
template<typename Value1, typename Value2>
|
||||
SPROUT_CONSTEXPR bool operator<=(
|
||||
inline SPROUT_CONSTEXPR bool operator<=(
|
||||
sprout::square_iterator<Value1> const& lhs,
|
||||
sprout::square_iterator<Value2> const& rhs
|
||||
)
|
||||
|
@ -196,7 +196,7 @@ namespace sprout {
|
|||
return !(rhs < lhs);
|
||||
}
|
||||
template<typename Value1, typename Value2>
|
||||
SPROUT_CONSTEXPR bool operator>=(
|
||||
inline SPROUT_CONSTEXPR bool operator>=(
|
||||
sprout::square_iterator<Value1> const& lhs,
|
||||
sprout::square_iterator<Value2> const& rhs
|
||||
)
|
||||
|
@ -204,7 +204,7 @@ namespace sprout {
|
|||
return !(lhs < rhs);
|
||||
}
|
||||
template<typename Value1, typename Value2>
|
||||
SPROUT_CONSTEXPR typename sprout::square_iterator<Value1>::difference_type operator-(
|
||||
inline SPROUT_CONSTEXPR typename sprout::square_iterator<Value1>::difference_type operator-(
|
||||
sprout::square_iterator<Value1> const& lhs,
|
||||
sprout::square_iterator<Value2> const& rhs
|
||||
)
|
||||
|
@ -212,7 +212,7 @@ namespace sprout {
|
|||
return lhs.index() - rhs.index();
|
||||
}
|
||||
template<typename Value>
|
||||
SPROUT_CONSTEXPR sprout::square_iterator<Value> operator+(
|
||||
inline SPROUT_CONSTEXPR sprout::square_iterator<Value> operator+(
|
||||
typename sprout::square_iterator<Value>::difference_type n,
|
||||
sprout::square_iterator<Value> const& it
|
||||
)
|
||||
|
@ -224,7 +224,7 @@ namespace sprout {
|
|||
// swap
|
||||
//
|
||||
template<typename Value>
|
||||
void swap(sprout::square_iterator<Value>& lhs, sprout::square_iterator<Value>& rhs) SPROUT_NOEXCEPT_EXPR(SPROUT_NOEXCEPT_EXPR(lhs.swap(rhs))) {
|
||||
inline void swap(sprout::square_iterator<Value>& lhs, sprout::square_iterator<Value>& rhs) SPROUT_NOEXCEPT_EXPR(SPROUT_NOEXCEPT_EXPR(lhs.swap(rhs))) {
|
||||
lhs.swap(rhs);
|
||||
}
|
||||
|
||||
|
@ -232,14 +232,14 @@ namespace sprout {
|
|||
// next
|
||||
//
|
||||
template<typename Value>
|
||||
SPROUT_CONSTEXPR sprout::square_iterator<Value> next(
|
||||
inline SPROUT_CONSTEXPR sprout::square_iterator<Value> next(
|
||||
sprout::square_iterator<Value> const& it
|
||||
)
|
||||
{
|
||||
return it.next();
|
||||
}
|
||||
template<typename Value>
|
||||
SPROUT_CONSTEXPR sprout::square_iterator<Value> next(
|
||||
inline SPROUT_CONSTEXPR sprout::square_iterator<Value> next(
|
||||
sprout::square_iterator<Value> const& it,
|
||||
typename sprout::square_iterator<Value>::difference_type n
|
||||
)
|
||||
|
@ -251,14 +251,14 @@ namespace sprout {
|
|||
// prev
|
||||
//
|
||||
template<typename Value>
|
||||
SPROUT_CONSTEXPR sprout::square_iterator<Value> prev(
|
||||
inline SPROUT_CONSTEXPR sprout::square_iterator<Value> prev(
|
||||
sprout::square_iterator<Value> const& it
|
||||
)
|
||||
{
|
||||
return it.prev();
|
||||
}
|
||||
template<typename Value>
|
||||
SPROUT_CONSTEXPR sprout::square_iterator<Value> prev(
|
||||
inline SPROUT_CONSTEXPR sprout::square_iterator<Value> prev(
|
||||
sprout::square_iterator<Value> const& it,
|
||||
typename sprout::square_iterator<Value>::difference_type n
|
||||
)
|
||||
|
@ -270,7 +270,7 @@ namespace sprout {
|
|||
// distance
|
||||
//
|
||||
template<typename Value>
|
||||
SPROUT_CONSTEXPR typename std::iterator_traits<sprout::square_iterator<Value> >::difference_type
|
||||
inline SPROUT_CONSTEXPR typename std::iterator_traits<sprout::square_iterator<Value> >::difference_type
|
||||
distance(
|
||||
sprout::square_iterator<Value> first,
|
||||
sprout::square_iterator<Value> last
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue