27 #ifndef EDSP_COMPLEX2REAL_HPP 28 #define EDSP_COMPLEX2REAL_HPP 30 #include <edsp/meta/iterator.hpp> 34 namespace edsp {
inline namespace converter {
43 template <
typename InputIt,
typename OutputIt>
44 constexpr
void complex2real(InputIt first, InputIt last, OutputIt d_first1, OutputIt d_first2) {
45 using input_t = meta::value_type_t<InputIt>;
46 using output_t = meta::value_type_t<OutputIt>;
47 for (; first != last; ++first, ++d_first1, ++d_first2) {
55 #endif //EDSP_COMPLEX2REAL_HPP constexpr void complex2real(InputIt first, InputIt last, OutputIt d_first1, OutputIt d_first2)
Converts a range of complex numbers in two ranges storing the real and imaginary parts.
Definition: complex2real.hpp:44
constexpr T real(const std::complex< T > &z)
Computes the real component of the complex number z.
Definition: complex.hpp:60
constexpr T imag(const std::complex< T > &z)
Computes the imaginary component of the complex number z.
Definition: complex.hpp:70
Definition: amplifier.hpp:29