22 #ifndef EDSP_RECTANGULAR_HPP 23 #define EDSP_RECTANGULAR_HPP 26 #include <edsp/meta/iterator.hpp> 29 namespace edsp {
namespace windowing {
43 template <
typename OutputIt>
45 using value_type = meta::value_type_t<OutputIt>;
46 using size_type = meta::diff_type_t<OutputIt>;
47 const auto size =
static_cast<size_type
>(
std::distance(first, last));
48 for (size_type i = 0; i < size; ++i, ++first) {
49 *first =
static_cast<value_type
>(1);
55 #endif // EDSP_RECTANGULAR_HPP constexpr T distance(T x, T y) noexcept
Computes the distance between x and y.
Definition: numeric.hpp:328
constexpr void rectangular(OutputIt first, OutputIt last)
Computes a rectangular window of length N and stores the result in the range, beginning at d_first...
Definition: rectangular.hpp:44
Definition: amplifier.hpp:29