SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
Public Member Functions | Public Attributes | List of all members
leansdr::complex< T > Struct Template Reference

#include <math.h>

Public Member Functions

 complex ()
 
 complex (T x)
 
 complex (T x, T y)
 
void operator+= (const complex< T > &x)
 
void operator*= (const complex< T > &c)
 
void operator*= (const T &k)
 

Public Attributes

re
 
im
 

Detailed Description

template<typename T>
struct leansdr::complex< T >

Definition at line 31 of file math.h.

Constructor & Destructor Documentation

◆ complex() [1/3]

template<typename T>
leansdr::complex< T >::complex ( )
inline

Definition at line 34 of file math.h.

34 {}

◆ complex() [2/3]

template<typename T>
leansdr::complex< T >::complex ( x)
inline

Definition at line 35 of file math.h.

35 : re(x), im(0) {}

◆ complex() [3/3]

template<typename T>
leansdr::complex< T >::complex ( x,
y 
)
inline

Definition at line 36 of file math.h.

36 : re(x), im(y) {}

Member Function Documentation

◆ operator*=() [1/2]

template<typename T>
void leansdr::complex< T >::operator*= ( const complex< T > &  c)
inline

Definition at line 42 of file math.h.

43  {
44  T tre = re * c.re - im * c.im;
45  im = re * c.im + im * c.re;
46  re = tre;
47  }

◆ operator*=() [2/2]

template<typename T>
void leansdr::complex< T >::operator*= ( const T &  k)
inline

Definition at line 48 of file math.h.

49  {
50  re *= k;
51  im *= k;
52  }

◆ operator+=()

template<typename T>
void leansdr::complex< T >::operator+= ( const complex< T > &  x)
inline

Definition at line 37 of file math.h.

38  {
39  re += x.re;
40  im += x.im;
41  }

Member Data Documentation

◆ im

template<typename T>
T leansdr::complex< T >::im

Definition at line 33 of file math.h.

Referenced by leansdr::s2_frame_receiver< T, SOFTSYMB >::add_syncs(), leansdr::s2_frame_receiver< T, SOFTSYMB >::align_phase(), leansdr::datvconstellation< leansdr::f32 >::calculate_cstln_points(), leansdr::datvdvbs2constellation< leansdr::f32 >::calculate_cstln_points(), leansdr::cnorm2(), leansdr::conjprod(), leansdr::s2_frame_receiver< T, SOFTSYMB >::descramble(), leansdr::auto_notch< leansdr::f32 >::detect(), leansdr::fast_qpsk_receiver< T >::fast_arg(), DATVDemod::feed(), leansdr::fast_qpsk_receiver< T >::init_lookup_tables(), leansdr::viterbi_sync::init_map(), leansdr::cfft_engine< leansdr::f32 >::inplace(), leansdr::operator*(), leansdr::complex< leansdr::f32 >::operator*=(), leansdr::operator+(), leansdr::complex< leansdr::f32 >::operator+=(), leansdr::auto_notch< leansdr::f32 >::process(), leansdr::cconverter< Tin, Zin, Tout, Zout, Gn, Gd >::run(), leansdr::datvconstellation< leansdr::f32 >::run(), leansdr::datvdvbs2constellation< leansdr::f32 >::run(), leansdr::wgn_c< T >::run(), leansdr::ss_estimator< T >::run(), leansdr::ss_amp_estimator< T >::run(), leansdr::simple_agc< T >::run(), leansdr::cstln_receiver< leansdr::f32, leansdr::eucl_ss >::run(), leansdr::fast_qpsk_receiver< T >::run(), leansdr::cstln_transmitter< Tout, Zout >::run(), leansdr::s2_frame_receiver< T, SOFTSYMB >::run_frame_coarse(), leansdr::s2_frame_receiver< T, SOFTSYMB >::run_frame_locked(), leansdr::s2_plscodes< T >::s2_plscodes(), leansdr::s2_sof< T >::s2_sof(), leansdr::s2_frame_transmitter< T >::scramble(), leansdr::s2_frame_receiver< T, SOFTSYMB >::track_agc(), leansdr::s2_frame_receiver< T, SOFTSYMB >::track_symbol(), leansdr::trig16::trig16(), and leansdr::s2_frame_transmitter< T >::update_cstln().

◆ re

template<typename T>
T leansdr::complex< T >::re

Definition at line 33 of file math.h.

Referenced by leansdr::s2_frame_receiver< T, SOFTSYMB >::add_syncs(), leansdr::s2_frame_receiver< T, SOFTSYMB >::align_phase(), leansdr::datvconstellation< leansdr::f32 >::calculate_cstln_points(), leansdr::datvdvbs2constellation< leansdr::f32 >::calculate_cstln_points(), leansdr::cnorm2(), leansdr::conjprod(), leansdr::s2_frame_receiver< T, SOFTSYMB >::descramble(), leansdr::auto_notch< leansdr::f32 >::detect(), leansdr::spectrum< T, NFFT >::do_spectrum(), leansdr::fast_qpsk_receiver< T >::fast_arg(), DATVDemod::feed(), leansdr::fast_qpsk_receiver< T >::init_lookup_tables(), leansdr::viterbi_sync::init_map(), leansdr::cfft_engine< leansdr::f32 >::inplace(), leansdr::operator*(), leansdr::complex< leansdr::f32 >::operator*=(), leansdr::operator+(), leansdr::complex< leansdr::f32 >::operator+=(), leansdr::auto_notch< leansdr::f32 >::process(), leansdr::cconverter< Tin, Zin, Tout, Zout, Gn, Gd >::run(), leansdr::datvconstellation< leansdr::f32 >::run(), leansdr::datvdvbs2constellation< leansdr::f32 >::run(), leansdr::wgn_c< T >::run(), leansdr::ss_estimator< T >::run(), leansdr::ss_amp_estimator< T >::run(), leansdr::simple_agc< T >::run(), leansdr::cstln_receiver< leansdr::f32, leansdr::eucl_ss >::run(), leansdr::fast_qpsk_receiver< T >::run(), leansdr::cstln_transmitter< Tout, Zout >::run(), leansdr::s2_frame_receiver< T, SOFTSYMB >::run_frame_coarse(), leansdr::s2_frame_receiver< T, SOFTSYMB >::run_frame_locked(), leansdr::s2_plscodes< T >::s2_plscodes(), leansdr::s2_sof< T >::s2_sof(), leansdr::s2_frame_transmitter< T >::scramble(), leansdr::s2_frame_receiver< T, SOFTSYMB >::track_agc(), leansdr::s2_frame_receiver< T, SOFTSYMB >::track_symbol(), leansdr::trig16::trig16(), and leansdr::s2_frame_transmitter< T >::update_cstln().


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