23 #ifndef EDSP_RECTIFY_HPP 24 #define EDSP_RECTIFY_HPP 26 #include <edsp/meta/iterator.hpp> 30 namespace edsp {
inline namespace algorithm {
40 template <
typename InputIt,
typename OutputIt>
41 constexpr
void rectify(InputIt first, InputIt last, OutputIt d_first) {
44 [](
const meta::value_type_t<InputIt> value) -> meta::value_type_t<OutputIt> {
return std::fabs(value); });
49 #endif //EDSP_RECTIFY_HPP constexpr void rectify(InputIt first, InputIt last, OutputIt d_first)
For each element in the range [first, last) computes the absolute value not and stores the result in ...
Definition: rectify.hpp:41
Definition: amplifier.hpp:29