33 #include <itpp/itexports.h> 49 template <
int w, e_mode e = TC, o_mode o = WRAP, q_mode q = TRN >
54 CFixed(
double r = 0.0,
double i = 0.0,
int s = 0,
Stat *ptr = 0)
55 :
CFix(r, i, s, w, e, o, q, ptr) {}
57 CFixed(std::complex<double> x,
double,
int s = 0,
Stat *ptr = 0)
58 :
CFix(x, 0.0, s, w, e, o, q, ptr) {}
61 :
CFix(0.0, 0.0, 0, w, e, o, q, ptr) {}
64 :
CFix(r, i, w, e, o, q, ptr) {}
67 :
CFix(x, 0.0, w, e, o, q, ptr) {}
249 #endif // #ifndef CFIXED_H Templated complex fixed-point data type.
CFixed & operator=(const CFix &x)
Assignment from CFix.
vec imag(const cvec &data)
Imaginary part of complex values.
CFixed & operator=(const Fix &x)
Assignment from Fix.
fixrep apply_o_mode(fixrep x) const
Handle overflows using overflow mode omode and make call to statistics object (if any) ...
CFixed< 1, TC, WRAP > cfixed1
Typedefs for CFixed (cfixed1, cfixed2, ..., cfixed64)
fixrep re
Data representation.
CFixed(Stat *ptr)
Constructor.
CFixed & operator=(const std::complex< double > &x)
Assignment from complex<double>. Fractional part is truncated.
Complex fixed-point data type.
CFixed & operator=(int x)
Assignment from int.
virtual ~CFixed()
Destructor.
int shift
Accumulated bitshift (positive means left-shifted, negative means right-shifted)
CFixed(const Fix &r, const Fix &i=0.0, Stat *ptr=0)
Constructor.
fixrep im
Imaginary data part.
CFixed(const CFix &x, double, Stat *ptr=0)
Constructor.
CFixed(double r=0.0, double i=0.0, int s=0, Stat *ptr=0)
Default constructor.
int64_t fixrep
Representation for fixed-point data types.
A class for sampling a signal and calculating statistics.
vec real(const cvec &data)
Real part of complex values.
CFixed(std::complex< double > x, double, int s=0, Stat *ptr=0)
Constructor.
Definitions of a complex fixed-point data type CFix.