23 #ifndef EDSP_PADDER_HPP 24 #define EDSP_PADDER_HPP 26 #include <edsp/meta/iterator.hpp> 27 #include <edsp/meta/expects.hpp> 30 namespace edsp {
inline namespace algorithm {
50 template <
typename InputIt,
typename OutputIt>
51 constexpr
void padder(InputIt first, InputIt last, OutputIt d_first, OutputIt d_last) {
54 meta::expects(d_size >= i_size,
"Output size should be greater or equal than the input size");
55 std::copy(first, last, d_first);
56 std::fill(d_first + i_size, d_last,
static_cast<meta::value_type_t<OutputIt>
>(0));
61 #endif // EDSP_PADDER_HPP constexpr void padder(InputIt first, InputIt last, OutputIt d_first, OutputIt d_last)
Extends the signal defined in the range [first, last) with zeros and stores the result in the range [...
Definition: padder.hpp:51
constexpr T distance(T x, T y) noexcept
Computes the distance between x and y.
Definition: numeric.hpp:328
Definition: amplifier.hpp:29