eDSP  0.0.1
A cross-platform DSP library written in C++.
Namespaces | Functions
complex.hpp File Reference
#include <edsp/meta/unused.hpp>
#include <edsp/math/numeric.hpp>
#include <limits>
#include <complex>
#include <cmath>

Go to the source code of this file.

Namespaces

 edsp
 
 edsp::math
 

Functions

template<typename T >
constexpr T edsp::math::magnitude (const std::complex< T > &z)
 Computes the magnitude of the complex number z. More...
 
template<typename T >
constexpr T edsp::math::phase (const std::complex< T > &z)
 Computes the phase of the complex number z. More...
 
template<typename T >
constexpr T edsp::math::real (const std::complex< T > &z)
 Computes the real component of the complex number z. More...
 
template<typename T >
constexpr T edsp::math::imag (const std::complex< T > &z)
 Computes the imaginary component of the complex number z. More...
 
template<typename T >
constexpr std::complex< T > edsp::math::conj (const std::complex< T > &z)
 Computes the complex conjugate of the complex number z. More...
 
template<typename T >
constexpr auto edsp::math::is_nan (const std::complex< T > &z) noexcept
 Determines if the given real or imaginary part of the complex number is a not-a-number (NaN) value. More...
 
template<typename T >
constexpr auto edsp::math::is_inf (const std::complex< T > &z) noexcept
 Determines if the given real or imaginary part of the complex number is \( \infty \). More...
 
template<typename T >
constexpr std::complex< T > edsp::math::infinity () noexcept
 Computes an \( \infty \) complex number. More...