dsplib 1.1.0
C++ DSP library for MATLAB-like coding
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Friends | List of all members
dsplib::cmplx_t Struct Reference

Public Member Functions

constexpr cmplx_t (real_t vre=0, real_t vim=0)
 
constexpr cmplx_t (const cmplx_t &)=default
 
template<typename T , std::enable_if_t< std::is_arithmetic_v< std::remove_reference_t< T > > > * = nullptr>
constexpr cmplx_t (const T &v)
 
template<typename T , std::enable_if_t< std::is_arithmetic_v< std::remove_reference_t< T > > > * = nullptr>
constexpr cmplx_t (const std::complex< T > &v)
 
template<typename T , std::enable_if_t< std::is_arithmetic_v< std::remove_reference_t< T > > > * = nullptr>
 operator std::complex< T > () const
 
cmplx_toperator= (const cmplx_t &)=default
 
const cmplx_toperator+ () const noexcept
 
cmplx_t operator- () const noexcept
 
cmplx_toperator+= (const cmplx_t &rhs) noexcept
 
cmplx_toperator-= (const cmplx_t &rhs) noexcept
 
cmplx_toperator*= (const cmplx_t &rhs) noexcept
 
cmplx_toperator/= (const cmplx_t &rhs) noexcept
 
constexpr cmplx_t operator+ (const cmplx_t &rhs) const noexcept
 
constexpr cmplx_t operator- (const cmplx_t &rhs) const noexcept
 
constexpr cmplx_t operator* (const cmplx_t &rhs) const noexcept
 
constexpr cmplx_t operator/ (const cmplx_t &rhs) const noexcept
 
cmplx_toperator+= (const real_t &rhs) noexcept
 
constexpr cmplx_t operator+ (const real_t &rhs) const noexcept
 
cmplx_toperator-= (const real_t &rhs) noexcept
 
constexpr cmplx_t operator- (const real_t &rhs) const noexcept
 
cmplx_toperator*= (const real_t &rhs) noexcept
 
constexpr cmplx_t operator* (const real_t &rhs) const noexcept
 
cmplx_toperator/= (const real_t &rhs) noexcept
 
constexpr cmplx_t operator/ (const real_t &rhs) const noexcept
 
constexpr bool operator> (const cmplx_t &rhs) const noexcept
 
constexpr bool operator< (const cmplx_t &rhs) const noexcept
 
constexpr bool operator== (const cmplx_t &rhs) const noexcept
 
constexpr bool operator!= (const cmplx_t &rhs) const noexcept
 
constexpr cmplx_t conj () const noexcept
 
constexpr real_t abs2 () const noexcept
 

Public Attributes

real_t re {0}
 
real_t im {0}
 

Friends

std::ostream & operator<< (std::ostream &os, const cmplx_t &x)
 

The documentation for this struct was generated from the following file: