2012-12-03 12:48:50 +00:00
|
|
|
#ifndef SPROUT_RANGE_NUMERIC_DFT_DFT_ELEMENT_HPP
|
|
|
|
#define SPROUT_RANGE_NUMERIC_DFT_DFT_ELEMENT_HPP
|
|
|
|
|
|
|
|
#include <sprout/config.hpp>
|
|
|
|
#include <sprout/container/traits.hpp>
|
|
|
|
#include <sprout/container/functions.hpp>
|
|
|
|
#include <sprout/numeric/dft/dft_element.hpp>
|
|
|
|
|
|
|
|
namespace sprout {
|
|
|
|
namespace range {
|
|
|
|
//
|
|
|
|
// dft_element
|
|
|
|
//
|
2013-02-03 16:10:26 +00:00
|
|
|
template<typename InputRange>
|
|
|
|
inline SPROUT_CONSTEXPR typename sprout::container_traits<InputRange>::value_type
|
|
|
|
dft_element(InputRange const& input, typename sprout::container_traits<InputRange>::difference_type i) {
|
2012-12-03 12:48:50 +00:00
|
|
|
return sprout::dft_element(sprout::begin(input), sprout::end(input), i);
|
|
|
|
}
|
|
|
|
} // namespace range
|
|
|
|
} // namespace sprout
|
|
|
|
|
|
|
|
#endif // #ifndef SPROUT_RANGE_NUMERIC_DFT_DFT_ELEMENT_HPP
|