mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-14 15:04:09 +00:00
add c++14 fft/dft range algorithms
This commit is contained in:
parent
aaf31f2ab8
commit
fe255a5e74
73 changed files with 877 additions and 17 deletions
|
@ -11,8 +11,12 @@
|
|||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/iterator/type_traits/is_iterator_of.hpp>
|
||||
#include <sprout/type_traits/enabler_if.hpp>
|
||||
#include <sprout/algorithm/fixed/results.hpp>
|
||||
#include <sprout/numeric/dft/fixed/spectrum.hpp>
|
||||
#include <sprout/range/numeric/dft/fixed/amplitude_spectrum.hpp>
|
||||
#include <sprout/range/numeric/dft/fixed/phase_spectrum.hpp>
|
||||
|
||||
namespace sprout {
|
||||
namespace range {
|
||||
|
@ -20,7 +24,10 @@ namespace sprout {
|
|||
//
|
||||
// spectrum
|
||||
//
|
||||
template<typename InputRange, typename Result>
|
||||
template<
|
||||
typename InputRange, typename Result,
|
||||
typename sprout::enabler_if<!sprout::is_iterator_outputable<Result>::value>::type = sprout::enabler
|
||||
>
|
||||
inline SPROUT_CONSTEXPR typename sprout::fixed::results::algorithm<Result>::type
|
||||
spectrum(InputRange const& rng, Result const& result) {
|
||||
return sprout::fixed::spectrum(sprout::begin(rng), sprout::end(rng), result);
|
||||
|
@ -37,7 +44,4 @@ namespace sprout {
|
|||
} // namespace range
|
||||
} // namespace sprout
|
||||
|
||||
#include <sprout/range/numeric/dft/fixed/amplitude_spectrum.hpp>
|
||||
#include <sprout/range/numeric/dft/fixed/phase_spectrum.hpp>
|
||||
|
||||
#endif // #ifndef SPROUT_RANGE_NUMERIC_DFT_FIXED_SPECTRUM_HPP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue