mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2024-11-14 10:39:05 +00:00
29 lines
1.1 KiB
C++
29 lines
1.1 KiB
C++
/*=============================================================================
|
|
Copyright (c) 2011-2014 Bolero MURAKAMI
|
|
https://github.com/bolero-MURAKAMI/Sprout
|
|
|
|
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
=============================================================================*/
|
|
#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
|
|
//
|
|
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) {
|
|
return sprout::dft_element(sprout::begin(input), sprout::end(input), i);
|
|
}
|
|
} // namespace range
|
|
} // namespace sprout
|
|
|
|
#endif // #ifndef SPROUT_RANGE_NUMERIC_DFT_DFT_ELEMENT_HPP
|