22 #ifndef EDSP_ALGORITHM_FIX_HPP 23 #define EDSP_ALGORITHM_FIX_HPP 25 #include <edsp/meta/iterator.hpp> 29 namespace edsp {
inline namespace algorithm {
39 template <
typename InputIt,
typename OutputIt>
40 constexpr
void fix(InputIt first, InputIt last, OutputIt d_first) {
43 [](
const meta::value_type_t<InputIt> value) -> meta::value_type_t<OutputIt> {
return std::trunc(value); });
48 #endif // EDSP_ALGORITHM_FIX_HPP constexpr void fix(InputIt first, InputIt last, OutputIt d_first)
For each element in the range [first, last) computes the nearest integer not greater in magnitude tha...
Definition: fix.hpp:40
Definition: amplifier.hpp:29