Classes | |
class | itpp::CFix |
Complex fixed-point data type. More... | |
class | itpp::CFixed< w, e, o, q > |
Templated complex fixed-point data type. More... | |
class | itpp::Fix |
Fixed-point data type. More... | |
class | itpp::Fix_Base |
Base class for fixed-point data types. More... | |
class | itpp::Fix_Factory |
Class factory for fixed-point data types Fix and CFix. More... | |
class | itpp::Fixed< w, e, o, q > |
Templated fixed-point data type. More... | |
Typedefs | |
typedef Vec< CFix > | itpp::cfixvec |
Typedef for complex fixed-point vector type. | |
typedef Mat< CFix > | itpp::cfixmat |
Typedef for complex fixed-point matrix type. | |
typedef Vec< Fix > | itpp::fixvec |
Typedef for fixed-point vector type. | |
typedef Mat< Fix > | itpp::fixmat |
Typedef for fixed-point matrix type. | |
typedef long long | itpp::int64 |
Typedef for signed 64-bit integer. | |
typedef unsigned long long | itpp::uint64 |
Typedef for unsigned 64-bit integer. | |
typedef int64 | itpp::fixrep |
Representation for fixed-point data types. | |
Enumerations | |
enum | itpp::e_mode { itpp::TC, itpp::US } |
Sign encoding modes (aligned with SystemC). More... | |
enum | itpp::o_mode { itpp::SAT, itpp::SAT_ZERO, itpp::SAT_SYM, itpp::WRAP, itpp::WRAP_SM } |
Overflow modes (aligned with SystemC). More... | |
enum | itpp::q_mode { itpp::RND, itpp::RND_ZERO, itpp::RND_MIN_INF, itpp::RND_INF, itpp::RND_CONV, itpp::RND_CONV_ODD, itpp::TRN, itpp::TRN_ZERO } |
Quantization modes (aligned with SystemC). More... | |
enum | itpp::output_mode { itpp::OUTPUT_FIX, itpp::OUTPUT_FIX_SHIFT, itpp::OUTPUT_FLOAT, itpp::OUTPUT_FLOAT_SHIFT } |
Output modes. More... | |
Functions | |
std::istream & | itpp::operator>> (std::istream &is, CFix &x) |
Input bit representation and, optionally, the shift. | |
std::ostream & | itpp::operator<< (std::ostream &os, const CFix &x) |
Output bit representation and, optionally, the shift. | |
std::istream & | itpp::operator>> (std::istream &is, Fix &x) |
Input bit representation and, optionally, the shift. | |
std::ostream & | itpp::operator<< (std::ostream &os, const Fix &x) |
Output bit representation and, optionally, the shift. | |
std::ostream & | itpp::operator<< (std::ostream &os, const output_mode &o) |
Set output mode. | |
template<> | |
void | itpp::create_elements< Fix > (Fix *&ptr, const int n, const Factory &f) |
Create an n-length array of Fix using Fix_Factory f . | |
template<> | |
void | itpp::create_elements< CFix > (CFix *&ptr, const int n, const Factory &f) |
Create an n-length array of CFix using Fix_Factory f . | |
template<class T> | |
bool | itpp::is_fix (const T &x) |
Return true only if argument is of type Fix or CFix (or an Array/Vec/Mat of Fix or CFix). | |
template<> | |
bool | itpp::is_fix (const Fix &x) |
Return true only if argument is of type Fix or CFix (or an Array/Vec/Mat of Fix or CFix). | |
template<> | |
bool | itpp::is_fix (const fixvec &x) |
Return true only if argument is of type Fix or CFix (or an Array/Vec/Mat of Fix or CFix). | |
template<> | |
bool | itpp::is_fix (const fixmat &x) |
Return true only if argument is of type Fix or CFix (or an Array/Vec/Mat of Fix or CFix). | |
template<> | |
bool | itpp::is_fix (const CFix &x) |
Return true only if argument is of type Fix or CFix (or an Array/Vec/Mat of Fix or CFix). | |
template<> | |
bool | itpp::is_fix (const cfixvec &x) |
Return true only if argument is of type Fix or CFix (or an Array/Vec/Mat of Fix or CFix). | |
template<> | |
bool | itpp::is_fix (const cfixmat &x) |
Return true only if argument is of type Fix or CFix (or an Array/Vec/Mat of Fix or CFix). | |
template<class T> | |
bool | itpp::is_fix (const Array< T > &x) |
Return true only if argument is of type Fix or CFix (or an Array/Vec/Mat of Fix or CFix). | |
void | itpp::set_fix (Fix &y, double x, int n) |
Set y = x * pow2(n) using the quantization mode of y . | |
void | itpp::set_fix (Fix &y, double x, int n, q_mode q) |
Set y = x * pow2(n) using the specified quantization mode q . | |
void | itpp::set_fix (fixvec &y, const vec &x, int n) |
Set y = x * pow2(n) using the quantization mode of y . | |
void | itpp::set_fix (fixvec &y, const vec &x, int n, q_mode q) |
Set y = x * pow2(n) using the specified quantization mode q . | |
void | itpp::set_fix (fixmat &y, const mat &x, int n) |
Set y = x * pow2(n) using the quantization mode of y . | |
void | itpp::set_fix (fixmat &y, const mat &x, int n, q_mode q) |
Set y = x * pow2(n) using the specified quantization mode q . | |
void | itpp::set_fix (double &y, double x, int n) |
Set y = x . Useful in templated code. | |
void | itpp::set_fix (double &y, double x, int n, q_mode q) |
Set y = x . Useful in templated code. | |
void | itpp::set_fix (vec &y, const vec &x, int n) |
Set y = x . Useful in templated code. | |
void | itpp::set_fix (vec &y, const vec &x, int n, q_mode q) |
Set y = x . Useful in templated code. | |
void | itpp::set_fix (mat &y, const mat &x, int n) |
Set y = x . Useful in templated code. | |
void | itpp::set_fix (mat &y, const mat &x, int n, q_mode q) |
Set y = x . Useful in templated code. | |
void | itpp::set_fix (CFix &y, complex< double > x, int n) |
Set y = x * pow2(n) using the quantization mode of y . | |
void | itpp::set_fix (CFix &y, double real, double imag, int n) |
Set y = (real + i*imag) * pow2(n) using the quantization mode of y . | |
void | itpp::set_fix (CFix &y, complex< double > x, int n, q_mode q) |
Set y = x * pow2(n) using the specified quantization mode q . | |
void | itpp::set_fix (CFix &y, double real, double imag, int n, q_mode q) |
Set y = (real + i*imag) * pow2(n) using the specified quantization mode q . | |
void | itpp::set_fix (cfixvec &y, const cvec &x, int n) |
Set y = x * pow2(n) using the quantization mode of y . | |
void | itpp::set_fix (cfixvec &y, const vec &real, const vec &imag, int n) |
Set y = (real + i*imag) * pow2(n) using the quantization mode of y . | |
void | itpp::set_fix (cfixvec &y, const cvec &x, int n, q_mode q) |
Set y = x * pow2(n) using the specified quantization mode q . | |
void | itpp::set_fix (cfixvec &y, const vec &real, const vec &imag, int n, q_mode q) |
Set y = (real + i*imag) * pow2(n) using the specified quantization mode q . | |
void | itpp::set_fix (cfixmat &y, const cmat &x, int n) |
Set y = x * pow2(n) using the quantization mode of y . | |
void | itpp::set_fix (cfixmat &y, const mat &real, const mat &imag, int n) |
Set y = (real + i*imag) * pow2(n) using the quantization mode of y . | |
void | itpp::set_fix (cfixmat &y, const cmat &x, int n, q_mode q) |
Set y = x * pow2(n) using the specified quantization mode q . | |
void | itpp::set_fix (cfixmat &y, const mat &real, const mat &imag, int n, q_mode q) |
Set y = (real + i*imag) * pow2(n) using the specified quantization mode q . | |
void | itpp::set_fix (complex< double > &y, const complex< double > &x, int n) |
Set y = x . Useful in templated code. | |
void | itpp::set_fix (complex< double > &y, double real, double imag, int n) |
Set y = real + i*imag . Useful in templated code. | |
void | itpp::set_fix (complex< double > &y, const complex< double > &x, int n, q_mode q) |
Set y = x . Useful in templated code. | |
void | itpp::set_fix (complex< double > &y, double real, double imag, int n, q_mode q) |
Set y = real + i*imag . Useful in templated code. | |
void | itpp::set_fix (cvec &y, const cvec &x, int n) |
Set y = x . Useful in templated code. | |
void | itpp::set_fix (cvec &y, const vec &real, const vec &imag, int n) |
Set y = real + i*imag . Useful in templated code. | |
void | itpp::set_fix (cvec &y, const cvec &x, int n, q_mode q) |
Set y = x . Useful in templated code. | |
void | itpp::set_fix (cvec &y, const vec &real, const vec &imag, int n, q_mode q) |
Set y = real + i*imag . Useful in templated code. | |
void | itpp::set_fix (cmat &y, const cmat &x, int n) |
Set y = x . Useful in templated code. | |
void | itpp::set_fix (cmat &y, const mat &real, const mat &imag, int n) |
Set y = real + i*imag . Useful in templated code. | |
void | itpp::set_fix (cmat &y, const cmat &x, int n, q_mode q) |
Set y = x . Useful in templated code. | |
void | itpp::set_fix (cmat &y, const mat &real, const mat &imag, int n, q_mode q) |
Set y = real + i*imag . Useful in templated code. | |
template<class T1, class T2> | |
void | itpp::set_fix (Array< T1 > &y, const Array< T2 > &x, int n) |
Call set_fix for each Array element. | |
template<class T1, class T2> | |
void | itpp::set_fix (Array< T1 > &y, const Array< T2 > &real, const Array< T2 > &imag, int n) |
Call set_fix for each Array element. | |
template<class T1, class T2> | |
void | itpp::set_fix (Array< T1 > &y, const Array< T2 > &x, int n, q_mode q) |
Call set_fix for each Array element. | |
template<class T1, class T2> | |
void | itpp::set_fix (Array< T1 > &y, const Array< T2 > &real, const Array< T2 > &imag, int n, q_mode q) |
Call set_fix for each Array element. | |
void | itpp::lshift_fix (Fix &y, int n) |
Left shift n bits. | |
void | itpp::rshift_fix (Fix &y, int n) |
Right shift n bits using the quantization mode of y . | |
void | itpp::rshift_fix (Fix &y, int n, q_mode q) |
Right shift n bits using the specified quantization mode q . | |
void | itpp::lshift_fix (fixvec &y, int n) |
Left shift n bits. | |
void | itpp::rshift_fix (fixvec &y, int n) |
Right shift n bits using the quantization mode of y . | |
void | itpp::rshift_fix (fixvec &y, int n, q_mode q) |
Right shift n bits using the specified quantization mode q . | |
void | itpp::lshift_fix (fixmat &y, int n) |
Left shift n bits. | |
void | itpp::rshift_fix (fixmat &y, int n) |
Right shift n bits using the quantization mode of y . | |
void | itpp::rshift_fix (fixmat &y, int n, q_mode q) |
Right shift n bits using the specified quantization mode q . | |
void | itpp::lshift_fix (double &y, int n) |
Dummy function useful in templated code. | |
void | itpp::rshift_fix (double &y, int n) |
Dummy function useful in templated code. | |
void | itpp::rshift_fix (double &y, int n, q_mode q) |
Dummy function useful in templated code. | |
void | itpp::lshift_fix (vec &y, int n) |
Dummy function useful in templated code. | |
void | itpp::rshift_fix (vec &y, int n) |
Dummy function useful in templated code. | |
void | itpp::rshift_fix (vec &y, int n, q_mode q) |
Dummy function useful in templated code. | |
void | itpp::lshift_fix (mat &y, int n) |
Dummy function useful in templated code. | |
void | itpp::rshift_fix (mat &y, int n) |
Dummy function useful in templated code. | |
void | itpp::rshift_fix (mat &y, int n, q_mode q) |
Dummy function useful in templated code. | |
void | itpp::lshift_fix (CFix &y, int n) |
Left shift n bits. | |
void | itpp::rshift_fix (CFix &y, int n) |
Right shift n bits using the quantization mode of y . | |
void | itpp::rshift_fix (CFix &y, int n, q_mode q) |
Right shift n bits using the specified quantization mode q . | |
void | itpp::lshift_fix (cfixvec &y, int n) |
Left shift n bits. | |
void | itpp::rshift_fix (cfixvec &y, int n) |
Right shift n bits using the quantization mode of y . | |
void | itpp::rshift_fix (cfixvec &y, int n, q_mode q) |
Right shift n bits using the specified quantization mode q . | |
void | itpp::lshift_fix (cfixmat &y, int n) |
Left shift n bits. | |
void | itpp::rshift_fix (cfixmat &y, int n) |
Right shift n bits using the quantization mode of y . | |
void | itpp::rshift_fix (cfixmat &y, int n, q_mode q) |
Right shift n bits using the specified quantization mode q . | |
void | itpp::lshift_fix (complex< double > &y, int n) |
Dummy function useful in templated code. | |
void | itpp::rshift_fix (complex< double > &y, int n) |
Dummy function useful in templated code. | |
void | itpp::rshift_fix (complex< double > &y, int n, q_mode q) |
Dummy function useful in templated code. | |
void | itpp::lshift_fix (cvec &y, int n) |
Dummy function useful in templated code. | |
void | itpp::rshift_fix (cvec &y, int n) |
Dummy function useful in templated code. | |
void | itpp::rshift_fix (cvec &y, int n, q_mode q) |
Dummy function useful in templated code. | |
void | itpp::lshift_fix (cmat &y, int n) |
Dummy function useful in templated code. | |
void | itpp::rshift_fix (cmat &y, int n) |
Dummy function useful in templated code. | |
void | itpp::rshift_fix (cmat &y, int n, q_mode q) |
Dummy function useful in templated code. | |
template<class T> | |
void | itpp::lshift_fix (Array< T > &y, int n) |
Call lshift_fix for each Array element. | |
template<class T> | |
void | itpp::rshift_fix (Array< T > &y, int n) |
Call rshift_fix for each Array element. | |
template<class T> | |
void | itpp::rshift_fix (Array< T > &y, int n, q_mode q) |
Call rshift_fix for each Array element. | |
void | itpp::assert_fixshift (const double x, const int shift) |
If x is a fixed-point variable, assert that x has the specified shift value, otherwise do nothing. | |
void | itpp::assert_fixshift (const complex< double > &x, const int shift) |
If x is a fixed-point variable, assert that x has the specified shift value, otherwise do nothing. | |
void | itpp::assert_fixshift (const Fix &x, const int shift) |
If x is a fixed-point variable, assert that x has the specified shift value, otherwise do nothing. | |
void | itpp::assert_fixshift (const CFix &x, const int shift) |
If x is a fixed-point variable, assert that x has the specified shift value, otherwise do nothing. | |
vec | itpp::to_vec (const fixvec &v) |
Converts a fixvec to vec. | |
cvec | itpp::to_cvec (const cfixvec &v) |
Converts a cfixvec to cvec. | |
mat | itpp::to_mat (const fixmat &m) |
Converts a fixmat to mat. | |
cmat | itpp::to_cmat (const cfixmat &m) |
Converts a cfixmat to cmat. | |
template<class T> | |
T | itpp::to (const double x) |
Convert double to T. | |
template<class T> | |
T | itpp::to (const Fix &x) |
Convert Fix to T. | |
template<class T> | |
T | itpp::to (const complex< double > &x) |
Convert complex<double> to T. | |
template<class T> | |
T | itpp::to (const CFix &x) |
Convert CFix to T. | |
template<class T> | |
T | itpp::to (const double real, const double imag) |
Convert double (real and imaginary parts) to T. | |
template<class T> | |
T | itpp::to (const Fix &real, const Fix &imag) |
Convert Fix (real and imaginary parts) to T. | |
template<class T, class U> | |
Vec< T > | itpp::to (const Vec< U > &x) |
Convert Vec<U> to Vec<T>. | |
template<> | |
vec | itpp::to< double > (const vec &x) |
Convert vec to vec. | |
template<> | |
cvec | itpp::to< complex< double > > (const cvec &x) |
Convert cvec to cvec. | |
template<> | |
fixvec | itpp::to< Fix > (const fixvec &x) |
Convert fixvec to fixvec. | |
template<> | |
cfixvec | itpp::to< CFix > (const cfixvec &x) |
Convert cfixvec to cfixvec. | |
template<class T, class U> | |
Vec< T > | itpp::to (const Vec< U > &real, const Vec< U > &imag) |
Convert Vec<U> (real and imaginary parts) to Vec<T>. | |
template<class T, class U> | |
Mat< T > | itpp::to (const Mat< U > &x) |
Convert Mat<U> to Mat<T>. | |
template<> | |
mat | itpp::to< double > (const mat &x) |
Convert mat to mat. | |
template<> | |
cmat | itpp::to< complex< double > > (const cmat &x) |
Convert cmat to cmat. | |
template<> | |
fixmat | itpp::to< Fix > (const fixmat &x) |
Convert fixmat to fixmat. | |
template<> | |
cfixmat | itpp::to< CFix > (const cfixmat &x) |
Convert cfixmat to cfixmat. | |
template<class T, class U> | |
Mat< T > | itpp::to (const Mat< U > &real, const Mat< U > &imag) |
Convert Mat<U> (real and imaginary parts) to Mat<T>. | |
template<class T, class U> | |
Array< typename ConvertU2T< T, U >::result > | itpp::to (const Array< U > &x) |
Convert Array<U>, where U can be an Array/Vec/Mat, to a corresponding Array with T elements. | |
template<class T, class U> | |
Array< typename ConvertU2T< T, U >::result > | itpp::to (const Array< U > &real, const Array< U > &imag) |
Convert Array<U> (real and imaginary parts), where U can be an Array/Vec/Mat, to a corresponding Array with T elements. | |
double | itpp::unfix (const Fix &x) |
Convert Fix to double by multiplying the bit representation with pow2(-shift). | |
complex< double > | itpp::unfix (const CFix &x) |
Convert CFix to complex<double> by multiplying the bit representation with pow2(-shift). | |
vec | itpp::unfix (const fixvec &x) |
Convert fixvec to vec by multiplying the bit representations with pow2(-shift). | |
cvec | itpp::unfix (const cfixvec &x) |
Convert cfixvec to cvec by multiplying the bit representations with pow2(-shift). | |
mat | itpp::unfix (const fixmat &x) |
Convert fixmat to mat by multiplying the bit representations with pow2(-shift). | |
cmat | itpp::unfix (const cfixmat &x) |
Convert cfixmat to cmat by multiplying the bit representations with pow2(-shift). | |
double | itpp::unfix (const double &x) |
Convert double to double i.e. do nothing. | |
complex< double > | itpp::unfix (const complex< double > &x) |
Convert complex<double> to complex<double> i.e. do nothing. | |
vec | itpp::unfix (const vec &x) |
Convert vec to vec i.e. do nothing. | |
cvec | itpp::unfix (const cvec &x) |
Convert cvec to cvec i.e. do nothing. | |
mat | itpp::unfix (const mat &x) |
Convert mat to mat i.e. do nothing. | |
cmat | itpp::unfix (const cmat &x) |
Convert cmat to cmat i.e. do nothing. | |
template<class T> | |
Array< typename Convert< T >::to_double > | itpp::unfix (const Array< T > &x) |
Convert floating- or fixed-point Array to floating-point Array. | |
Fix | itpp::abs (const Fix &x) |
Absolute value. | |
Fix | itpp::real (const CFix &x) |
Real part of complex value. | |
Fix | itpp::imag (const CFix &x) |
Imaginary part of complex value. | |
CFix | itpp::conj (const CFix &x) |
Conjugate of complex value. | |
Fix | itpp::operator+ (const Fix &x, const Fix &y) |
Fix + Fix. | |
Fix | itpp::operator- (const Fix &x, const Fix &y) |
Fix - Fix. | |
Fix | itpp::operator * (const Fix &x, const Fix &y) |
Fix * Fix. | |
Fix | itpp::operator/ (const Fix &x, const Fix &y) |
Fix / Fix using quantization mode TRN . | |
Fix | itpp::operator+ (const Fix &x, const int y) |
Fix + int. | |
Fix | itpp::operator- (const Fix &x, const int y) |
Fix - int. | |
Fix | itpp::operator * (const Fix &x, const int y) |
Fix * int. | |
Fix | itpp::operator/ (const Fix &x, const int y) |
Fix / int using quantization mode TRN . | |
Fix | itpp::operator+ (const int x, const Fix &y) |
int + Fix | |
Fix | itpp::operator- (const int x, const Fix &y) |
int - Fix | |
Fix | itpp::operator * (const int x, const Fix &y) |
int * Fix | |
Fix | itpp::operator/ (const int x, const Fix &y) |
int / Fix using quantization mode TRN | |
fixvec | itpp::operator+ (const fixvec &v, const int s) |
fixvec + int | |
fixvec | itpp::operator+ (const int s, const fixvec &v) |
int + fixvec | |
fixvec | itpp::operator- (const fixvec &v, const int s) |
fixvec - int | |
fixvec | itpp::operator- (const int s, const fixvec &v) |
int - fixvec | |
fixvec | itpp::operator * (const fixvec &v, const int s) |
fixvec * int | |
fixvec | itpp::operator * (const int s, const fixvec &v) |
int * fixvec | |
fixvec | itpp::operator/ (const fixvec &v, const int s) |
fixvec / int using quantization mode TRN | |
fixmat | itpp::operator+ (const fixmat &v, const int s) |
fixmat + int | |
fixmat | itpp::operator+ (const int s, const fixmat &v) |
int + fixmat | |
fixmat | itpp::operator- (const fixmat &v, const int s) |
fixmat - int | |
fixmat | itpp::operator- (const int s, const fixmat &v) |
int - fixmat | |
fixmat | itpp::operator * (const fixmat &v, const int s) |
fixmat * int | |
fixmat | itpp::operator * (const int s, const fixmat &v) |
int * fixmat | |
fixmat | itpp::operator/ (const fixmat &v, const int s) |
fixmat / int using quantization mode TRN | |
fixvec | itpp::operator+ (const fixvec &a, const ivec &b) |
fixvec + ivec | |
fixvec | itpp::operator+ (const ivec &a, const fixvec &b) |
ivec + fixvec | |
fixvec | itpp::operator- (const fixvec &a, const ivec &b) |
fixvec - ivec | |
fixvec | itpp::operator- (const ivec &a, const fixvec &b) |
ivec - fixvec | |
Fix | itpp::operator * (const fixvec &a, const ivec &b) |
fixvec * ivec | |
Fix | itpp::operator * (const ivec &a, const fixvec &b) |
ivec * fixvec | |
fixmat | itpp::operator+ (const fixmat &a, const imat &b) |
fixmat + imat | |
fixmat | itpp::operator+ (const imat &a, const fixmat &b) |
imat + fixmat | |
fixmat | itpp::operator- (const fixmat &a, const imat &b) |
fixmat - imat | |
fixmat | itpp::operator- (const imat &a, const fixmat &b) |
imat - fixmat | |
fixmat | itpp::operator * (const fixmat &a, const imat &b) |
fixmat * imat | |
fixmat | itpp::operator * (const imat &a, const fixmat &b) |
imat * fixmat | |
CFix | itpp::operator+ (const CFix &x, const CFix &y) |
CFix + CFix. | |
CFix | itpp::operator- (const CFix &x, const CFix &y) |
CFix - CFix. | |
CFix | itpp::operator * (const CFix &x, const CFix &y) |
CFix * CFix. | |
CFix | itpp::operator/ (const CFix &x, const CFix &y) |
CFix / CFix using quantization mode TRN . | |
CFix | itpp::operator+ (const CFix &x, const Fix &y) |
CFix + Fix. | |
CFix | itpp::operator- (const CFix &x, const Fix &y) |
CFix - Fix. | |
CFix | itpp::operator * (const CFix &x, const Fix &y) |
CFix * Fix. | |
CFix | itpp::operator/ (const CFix &x, const Fix &y) |
CFix / Fix using quantization mode TRN . | |
CFix | itpp::operator+ (const Fix &x, const CFix &y) |
Fix + CFix. | |
CFix | itpp::operator- (const Fix &x, const CFix &y) |
Fix - CFix. | |
CFix | itpp::operator * (const Fix &x, const CFix &y) |
Fix * CFix. | |
CFix | itpp::operator/ (const Fix &x, const CFix &y) |
Fix / CFix using quantization mode TRN . | |
CFix | itpp::operator+ (const CFix &x, const int y) |
CFix + int. | |
CFix | itpp::operator- (const CFix &x, const int y) |
CFix - int. | |
CFix | itpp::operator * (const CFix &x, const int y) |
CFix * int. | |
CFix | itpp::operator/ (const CFix &x, const int y) |
CFix / int using quantization mode TRN . | |
CFix | itpp::operator+ (const int x, const CFix &y) |
int + CFix | |
CFix | itpp::operator- (const int x, const CFix &y) |
int - CFix | |
CFix | itpp::operator * (const int x, const CFix &y) |
int * CFix | |
CFix | itpp::operator/ (const int x, const CFix &y) |
int / CFix using quantization mode TRN | |
cfixvec | itpp::operator+ (const fixvec &v, const CFix &s) |
fixvec + CFix | |
cfixvec | itpp::operator+ (const CFix &s, const fixvec &v) |
CFix + fixvec. | |
cfixvec | itpp::operator- (const fixvec &v, const CFix &s) |
fixvec - CFix | |
cfixvec | itpp::operator- (const CFix &s, const fixvec &v) |
CFix - fixvec. | |
cfixvec | itpp::operator * (const fixvec &v, const CFix &s) |
fixvec * CFix | |
cfixvec | itpp::operator * (const CFix &s, const fixvec &v) |
CFix * fixvec. | |
cfixvec | itpp::operator/ (const fixvec &v, const CFix &s) |
fixvec / CFix using quantization mode TRN | |
cfixmat | itpp::operator+ (const fixmat &m, const CFix &s) |
fixmat + CFix | |
cfixmat | itpp::operator+ (const CFix &s, const fixmat &m) |
CFix + fixmat. | |
cfixmat | itpp::operator- (const fixmat &m, const CFix &s) |
fixmat - CFix | |
cfixmat | itpp::operator- (const CFix &s, const fixmat &m) |
CFix - fixmat. | |
cfixmat | itpp::operator * (const fixmat &m, const CFix &s) |
fixmat * CFix | |
cfixmat | itpp::operator * (const CFix &s, const fixmat &m) |
CFix * fixmat. | |
cfixmat | itpp::operator/ (const fixmat &m, const CFix &s) |
fixmat / CFix using quantization mode TRN | |
cfixvec | itpp::operator+ (const ivec &v, const CFix &s) |
ivec + CFix | |
cfixvec | itpp::operator+ (const CFix &s, const ivec &v) |
CFix + ivec. | |
cfixvec | itpp::operator- (const ivec &v, const CFix &s) |
ivec - CFix | |
cfixvec | itpp::operator- (const CFix &s, const ivec &v) |
CFix - ivec. | |
cfixvec | itpp::operator * (const ivec &v, const CFix &s) |
ivec * CFix | |
cfixvec | itpp::operator * (const CFix &s, const ivec &v) |
CFix * ivec. | |
cfixvec | itpp::operator/ (const ivec &v, const CFix &s) |
ivec / CFix using quantization mode TRN | |
cfixmat | itpp::operator+ (const imat &m, const CFix &s) |
imat + CFix | |
cfixmat | itpp::operator+ (const CFix &s, const imat &m) |
CFix + imat. | |
cfixmat | itpp::operator- (const imat &m, const CFix &s) |
imat - CFix | |
cfixmat | itpp::operator- (const CFix &s, const imat &m) |
CFix - imat. | |
cfixmat | itpp::operator * (const imat &m, const CFix &s) |
imat * CFix | |
cfixmat | itpp::operator * (const CFix &s, const imat &m) |
CFix * imat. | |
cfixmat | itpp::operator/ (const imat &m, const CFix &s) |
imat / CFix using quantization mode TRN | |
cfixvec | itpp::operator+ (const cfixvec &v, const Fix &s) |
cfixvec + Fix | |
cfixvec | itpp::operator+ (const Fix &s, const cfixvec &v) |
Fix + cfixvec. | |
cfixvec | itpp::operator- (const cfixvec &v, const Fix &s) |
cfixvec - Fix | |
cfixvec | itpp::operator- (const Fix &s, const cfixvec &v) |
Fix - cfixvec. | |
cfixvec | itpp::operator * (const cfixvec &v, const Fix &s) |
cfixvec * Fix | |
cfixvec | itpp::operator * (const Fix &s, const cfixvec &v) |
Fix * cfixvec. | |
cfixvec | itpp::operator/ (const cfixvec &v, const Fix &s) |
cfixvec / Fix using quantization mode TRN | |
cfixmat | itpp::operator+ (const cfixmat &m, const Fix &s) |
cfixmat + Fix | |
cfixmat | itpp::operator+ (const Fix &s, const cfixmat &m) |
Fix + cfixmat. | |
cfixmat | itpp::operator- (const cfixmat &m, const Fix &s) |
cfixmat - Fix | |
cfixmat | itpp::operator- (const Fix &s, const cfixmat &m) |
Fix - cfixmat. | |
cfixmat | itpp::operator * (const cfixmat &m, const Fix &s) |
cfixmat * Fix | |
cfixmat | itpp::operator * (const Fix &s, const cfixmat &m) |
Fix * cfixmat. | |
cfixmat | itpp::operator/ (const cfixmat &m, const Fix &s) |
cfixmat / Fix using quantization mode TRN | |
cfixvec | itpp::operator+ (const cfixvec &v, const int s) |
cfixvec + int | |
cfixvec | itpp::operator+ (const int s, const cfixvec &v) |
int + cfixvec | |
cfixvec | itpp::operator- (const cfixvec &v, const int s) |
cfixvec - int | |
cfixvec | itpp::operator- (const int s, const cfixvec &v) |
int - cfixvec | |
cfixvec | itpp::operator * (const cfixvec &v, const int s) |
cfixvec * int | |
cfixvec | itpp::operator * (const int s, const cfixvec &v) |
int * cfixvec | |
cfixvec | itpp::operator/ (const cfixvec &v, const int s) |
cfixvec / int using quantization mode TRN | |
cfixmat | itpp::operator+ (const cfixmat &m, const int s) |
cfixmat + int | |
cfixmat | itpp::operator+ (const int s, const cfixmat &m) |
int + cfixmat | |
cfixmat | itpp::operator- (const cfixmat &m, const int s) |
cfixmat - int | |
cfixmat | itpp::operator- (const int s, const cfixmat &m) |
int - cfixmat | |
cfixmat | itpp::operator * (const cfixmat &m, const int s) |
cfixmat * int | |
cfixmat | itpp::operator * (const int s, const cfixmat &m) |
int * cfixmat | |
cfixmat | itpp::operator/ (const cfixmat &m, const int s) |
cfixmat / int using quantization mode TRN | |
cfixvec | itpp::operator+ (const cfixvec &a, const fixvec &b) |
cfixvec + fixvec | |
cfixvec | itpp::operator+ (const fixvec &a, const cfixvec &b) |
fixvec + cfixvec | |
cfixvec | itpp::operator- (const cfixvec &a, const fixvec &b) |
cfixvec - fixvec | |
cfixvec | itpp::operator- (const fixvec &a, const cfixvec &b) |
fixvec - cfixvec | |
CFix | itpp::operator * (const cfixvec &a, const fixvec &b) |
cfixvec * fixvec | |
CFix | itpp::operator * (const fixvec &a, const cfixvec &b) |
fixvec * cfixvec | |
cfixmat | itpp::operator+ (const cfixmat &a, const fixmat &b) |
cfixmat + fixmat | |
cfixmat | itpp::operator+ (const fixmat &a, const cfixmat &b) |
fixmat + cfixmat | |
cfixmat | itpp::operator- (const cfixmat &a, const fixmat &b) |
cfixmat - fixmat | |
cfixmat | itpp::operator- (const fixmat &a, const cfixmat &b) |
fixmat - cfixmat | |
cfixmat | itpp::operator * (const cfixmat &a, const fixmat &b) |
cfixmat * fixmat | |
cfixmat | itpp::operator * (const fixmat &a, const cfixmat &b) |
fixmat * cfixmat | |
cfixvec | itpp::operator+ (const cfixvec &a, const ivec &b) |
cfixvec + ivec | |
cfixvec | itpp::operator+ (const ivec &a, const cfixvec &b) |
ivec + cfixvec | |
cfixvec | itpp::operator- (const cfixvec &a, const ivec &b) |
cfixvec - ivec | |
cfixvec | itpp::operator- (const ivec &a, const cfixvec &b) |
ivec - cfixvec | |
CFix | itpp::operator * (const cfixvec &a, const ivec &b) |
cfixvec * ivec | |
CFix | itpp::operator * (const ivec &a, const cfixvec &b) |
ivec * cfixvec | |
cfixmat | itpp::operator+ (const cfixmat &a, const imat &b) |
cfixmat + imat | |
cfixmat | itpp::operator+ (const imat &a, const cfixmat &b) |
imat + cfixmat | |
cfixmat | itpp::operator- (const cfixmat &a, const imat &b) |
cfixmat - imat | |
cfixmat | itpp::operator- (const imat &a, const cfixmat &b) |
imat - cfixmat | |
cfixmat | itpp::operator * (const cfixmat &a, const imat &b) |
cfixmat * imat | |
cfixmat | itpp::operator * (const imat &a, const cfixmat &b) |
imat * cfixmat | |
bool | itpp::Vec::set (const char *str) |
Set the vector equal to the values in the str string. | |
bool | itpp::Mat::set (const char *values) |
Set matrix equal to values in values . | |
Variables | |
const int | itpp::MAX_WORDLEN = 64 |
Max word length. | |
const uint64 | itpp::UINT64_POW2 [64] |
Table for fast multiplication or division by 2^n. | |
const double | itpp::DOUBLE_POW2 [128] |
Table for fast multiplication by 2^(n-64). |
#include <itfixedpoint.h>
These classes have a common base class called Fix_Base; see inheritance diagram in the itpp::Fix_Base documentation. The following data members are inherited from Fix_Base:
The term "fixed-point restrictions" refers to all these data members except for the shift factor, which is considered to be part of the "fixed-point number". The shift factor has some resemblance to a binary point. The value of the shift factor is set in initializations and assignments and it is modified by multiplications, divisions and bit-shifting operations. The shift factor is used for checking that both terms have been shifted the same amount in additions and subtractions. Also, it is used to "un-shift" the data when a fixed-point number is converted to floating point.
Names of classes and enums have been aligned with the fixed-point data types in SystemC to some extent, but the fixed-point data types in IT++ and SystemC are quite different. In fact, the fixed-point data types in IT++ probably correspond better to the variable-precision integer types in SystemC (with one important difference: the fixed-point numbers in IT++ remember the amount of bit-shifting that has been applied to them, so that they can be converted back to "floating-point magnitude" easily if this is desired). The reason for this design choice in IT++ is to make the fixed-point simulations as fast as possible. If necessary, the core parts in itbase.h (e.g. Array, Vec and Mat) should be able to use some other data type than the ones presented here, assuming that a proper itpp::Factory is created for the data type, just like itpp::Fix_Factory has been created for these data types.
Sometimes the documentation for the IT++ fixed-point data types states that a function is "useful in templated code". This means that the function facilitates writing templated code where the template argument is meant to be either a floating-point type (double or complex<double>) or a fixed-point type (Fix or CFix), i.e. code which is supposed to support both floating-point and fixed-point simulations. For example, the operator >>= is defined for Fix and CFix, but not for double and complex<double>, so it might be a better idea to use the function rshift_fix which is defined for Fix and CFix as well as double and complex<double>.
For an example program, take a look at tests/fix_test.cpp.
An IT++ fixed-point number consists of a bit representation and a shift factor. The shift factor is a member of Fix_Base, while the bit representation is a member of the inherited class (Fix or CFix). The shift factor indicates the number of bit-shifts that have been performed on the data. A positive shift factor means that the data has been left-shifted while a negative shift factor means that the data has been right-shifted. For information about how the shift factor is affected by different operators, see section Operators and methods.
TC is default.
WRAP is default.
TRN is default. RND and TRN are usually the most implementation friendly. However, note that it is RND_INF that corresponds to "ordinary rounding" and TRN_ZERO that corresponds to "ordinary truncation".
The sample method in the statistics object is called during initializations and assignments. A single statistics object can collect statistics from more than one fixed-point variable.
OUTPUT_FIX_SHIFT is default. Unlike the other modes, output_mode is a static data member of Fix_Base, i.e. the output_mode is common for all fixed-point variables. Use the following commands to change output_mode:
Fix_Base::set_output_mode(OUTPUT_FIX); Fix_Base::set_output_mode(OUTPUT_FIX_SHIFT); Fix_Base::set_output_mode(OUTPUT_FLOAT); Fix_Base::set_output_mode(OUTPUT_FLOAT_SHIFT); // Alternative using a string parameter Fix_Base::set_output_mode("OUTPUT_FIX"); Fix_Base::set_output_mode("OUTPUT_FIX_SHIFT"); Fix_Base::set_output_mode("OUTPUT_FLOAT"); Fix_Base::set_output_mode("OUTPUT_FLOAT_SHIFT"); // Alternative using an ostream modifier cout << OUTPUT_FIX; cout << OUTPUT_FIX_SHIFT; cout << OUTPUT_FLOAT; cout << OUTPUT_FLOAT_SHIFT;
double
when a design is refined from floating- to fixed-point implementation. The data is stored in the least significant bits of a 64-bit integer variable.The following example shows how to declare a two's complement (i.e. a signed) 20-bit variable with wrap-around as overflow handling with the initial value 3.14 shifted up 10 bits:
Note that Fix takes the initial values as well as the fixed-point restrictions as constructor arguments. Fixed also takes the initial values as constructor arguments but it takes the fixed-point restrictions as template arguments. Choose Fix or Fixed depending on your needs. There are three main reasons why you would want to choose Fix instead of Fixed. First, if you want to change the fixed-point restrictions for a variable during run time, you have to use Fix, since the fixed-point restrictions for Fixed have been "fixed" at compile time. Second, if your code is using a lot of templating, you might end up with many more template arguments if you use Fixed than you would if you use Fix, since each set of fixed-point restrictions that you want to use will correspond to another type (based on the class template Fixed) instead of just different configurations of a single type (Fix). Third, the vector and matrix operations currently work better for Fix than for Fixed.
typedef Fixed<1, TC, WRAP> fixed1; // for Fixed with 1 bit ... typedef Fixed<64, TC, WRAP> fixed64; // for Fixed with 64 bits typedef Fixed<1, US, WRAP> ufixed1; // for Unsigned Fixed with 1 bit ... typedef Fixed<64, US, WRAP> ufixed64; // for Unsigned Fixed with 64 bits typedef Fixed<1, TC, SAT> sfixed1; // for Saturated Fixed with 1 bit ... typedef Fixed<64, TC, SAT> sfixed64; // for Saturated Fixed with 64 bits typedef Fixed<1, US, SAT> sufixed1; // for Saturated Unsigned Fixed with 1 bit ... typedef Fixed<64, US, SAT> sufixed64; // for Saturated Unsigned Fixed with 64 bits
fixed20 b(3.14, 10);
complex<double>
when a design is refined from floating- to fixed-point implementation. The data is stored in the least significant bits of two 64-bit integer variables: one for the real part and one for the imaginary part. The two parts have a common shift factor (the one inherited from Fix_Base), so it is not possible to shift only one of them.The following example shows two ways to declare a two's complement (i.e. a signed) 20-bit variable with wrap-around as overflow handling with the initial value 1.11 + 2.22i shifted up 10 bits:
CFix a(1.11, 2.22, 10, 20, TC, WRAP); CFixed<20, TC, WRAP> b(1.11, 2.22, 10); CFix c(complex<double>(1.11, 2.22), 0.0, 10, 20, TC, WRAP); CFixed<20, TC, WRAP> d(complex<double>(1.11, 2.22), 0.0, 10);
typedef CFixed<1, TC, WRAP> cfixed1; // for CFixed with 1 bit ... typedef CFixed<64, TC, WRAP> cfixed64; // for CFixed with 64 bits typedef CFixed<1, TC, SAT> scfixed1; // for Saturated CFixed with 1 bit ... typedef CFixed<64, TC, SAT> scfixed64; // for Saturated CFixed with 64 bits
The following example shows how to declare a vector of length 7 with Fix elements that are two's complement 20-bit variables with wrap-around as overflow handling:
Vec<Fix> a(7, FIX20);
FIX20 is one of many predefined Fix_Factory; see the Detailed Description for itpp::Fix_Factory.
Fix a(FIX20);
// Initialize a with the floating-point value double(3.14*pow2(10)) // and word length 20, two's complement, wrap-around and rounding Fix a(3.14, 10, 20, TC, WRAP, RND); // Initialize b with the fixed-point value a // and word length 7, two's complement, wrap-around and rounding Fix b(a, 7, TC, WRAP, RND);
In this example, b
was initialized with the same value as a
but with smaller word length resulting in overflow, since round(3.14*pow2(10)) does not fit in the 7-bit variable b
.
If assignment to a scaled double
is desired (when initialization has already taken place), the itpp::Fix::set method can be used.
// Initialize c with the floating-point value double(3.14*pow2(10)) // The shift factor is set to 10 Fix c(3.14, 10); // Set c equal to 123. The shift factor is set to 0 // Note that the old shift factor 10 is discarded c = 123; // Set c equal to the integer portion of double(3.14*pow2(10)) // The shift factor is set to 10 (again) c.set(3.14, 10); // Achieve the same result using a temporary variable // Note that the assignment operator copies the shift factor c = Fix(3.14, 10);
When the floating-point value is quantized, the quantization mode of the fixed-point variable (TRN in the example above, since c
has this quantization mode) will be used, unless some other quantization mode (e.g. RND) is specified as a third argument to set:
c.set(3.14, 10, RND);
// Declare a fixed-point vector with 7 elements // (using the predefined Fix_Factory FIX20) Vec<Fix> d(7, FIX20); // Set all 7 elements equal to 77 with shift factor 0 d = Fix(77); // Declare an integer vector with 7 elements ivec e = "1 2 3 4 5 6 7"; // Add fixed-point vector d and integer vector e. Both have shift factor 0 Vec<Fix> f(d + e, FIX20);
d
had been assigned with a different shift factor than 0 in the above example (and ASSERT_LEVEL > 0), the addition d + e
would have failed, resulting in termination with the error message "assert_shifts: Different shifts not allowed!".Fix g(0, 0, 8, TC, SAT); Fix h(100, 0, 8, TC, SAT); Fix i(100, 0, 8, TC, SAT); Fix j(-100, 0, 8, TC, SAT); // The result of h + i is unrestricted (64 bits) but when it is assigned to g, // it is restricted according to the fixed-point restrictions of g (8 bits). // We get overflow, since 100+100=200 doesn't fit in an 8-bit signed variable. // The saturated result will be 127 g = h + i; // But now we don't get overflow since 100+100-100=100 does fit! g = h + i + j; // If we do want the temporary result to be restricted, we have to make // an explicit temporary variable (with appropriate restrictions) for it Fix tmp(0, 0, 8, TC, SAT); // The first sum will be saturated to 127 tmp = h + i; // The final sum will be 127-100=27, i.e. we got a different // result when we introduced a restricted temporary variable g = tmp + j;
As stated earlier, the fixed-point restrictions are applied during initialization, assignment and bit-shifting operations only. This means that the result of a multiplication or division is unrestricted (64 bits) in the same way as for an addition or subtraction; see section Addition and subtraction.
The resulting shift factor after a multiplication is the sum of the two shift factors, while the resulting shift factor after a division is the difference between the numerator shift factor and the denominator shift factor. The result of a division is always quantized using truncation, i.e. the quantization modes of the involved fixed-point variables do not matter. Note that sometimes divisions can be replaced with multiplications and/or bit-shifting operations; see section Bit-shifting.
// Declare a fixed-point variable with the default quantization mode (TRN) Fix a(3.14, 10); // Right shift 5 bits using the quantization mode of a (i.e. TRN) a.rshift(5); // Right shift 5 bits using the specified quantization mode (i.e. RND) a.rshift(5, RND);
The itpp::Fix::unfix and itpp::CFix::unfix methods can always be used:
Fix a(3.14, 5); cout << a.unfix() << endl;
Fix a(3.14, 5); cout << double(a) << endl;
Finally, Fix/Fixed can be converted to CFix/CFixed using the appropriate CFix/CFixed constructors.
Fix a; int64 the_bit_representation = a.get_re(); int the_shift_factor = a.get_shift(); int the_word_length = a.get_wordlen(); e_mode the_sign_encoding_mode = a.get_e_mode(); o_mode the_overflow_mode = a.get_o_mode(); q_mode the_quantization_mode = a.get_q_mode(); int64 max_bit_representation = a.get_max(); int64 min_bit_representation = a.get_min();
Fix a; a.print();
This code example shows how to input and output fixed-point numbers:
CFix a(FIX8); a.set(0.0, 0.0, 4); cout << "Old a: " << a << endl; cout << "New a? "; cin >> a; cout << "New a: " << a << endl;
Complex numbers can be input on both the C++ form and the IT++ form:
Old a: 0+0i<4> New a? 1+2i New a: 1+2i<4>
Old a: 0+0i<4> New a? (1,2) New a: 1+2i<4>
Old a: 0+0i<4> New a? 1+2i<5> New a: 1+2i<5>
It is also possible to enter a floating-point value and a (positive or negative) shift, rather than the data representation and a shift, if a slightly different format is used:
Old a: 0+0i<4> New a? 1+2i<<5 New a: 32+64i<5>
The resulting data representation is the entered floating-point value 1+2i multiplied by 2^5.
Array<Array<Vec<Fix> > > aavf(FIX20); bool will_be_true = is_fix(aavf);
y = x * pow2(n)
if the first argument is of type Fix or CFix or an Array/Vec/Mat of Fix or CFix. If the first argument is of type double or complex<double> or an Array/Vec/Mat of double or complex<double>, the function just sets y = x
. Fix fix_var(FIX20); set_fix(fix_var, 3.14, 10); // fix_var will equal the integer portion of 3.14 * pow2(10) double double_var(FIX20); set_fix(double_var, 3.14, 10); // double_var will just equal 3.14
When the floating-point value is quantized, the quantization mode of the first argument (TRN in the example above, since fix_var has this quantization mode) will be used, unless some other quantization mode (e.g. RND) is specified as a fourth argument to set_fix:
// This will right-shift fix_var 10 bits rshift_fix(fix_var, 10); // This will not affect double_var rshift_fix(double_var, 10);
When a fixed-point value is right-shifted using rshift_fix, the quantization mode of the first argument (TRN in the example above, since fix_var has this quantization mode) will be used, unless some other quantization mode (e.g. RND) is specified as a third argument to rshift_fix:
rshift_fix(fix_var, 10, RND);
When a fixed-point value is left-shifted using lshift_fix, on the other hand, the overflow mode of the first argument is always used.
Fix a(3.14, 5); // We will pass this check since 5 = 5 assert_fixshift(a, 5); // The program will terminate (if ASSERT_LEVEL > 0) since 5 != 6 assert_fixshift(a, 6);
If the first argument is of type double or complex<double> instead, no test will be performed (since they have no shift factors).
Fix a(3.14, 5); double b = unfix(a); Array<Mat<CFix> > c(FIX40); cin >> c; Array<cmat> d = unfix(c);
If the argument is a floating-point variable (or an Array/Vec/Mat of floating-point variables) instead, the function just returns the argument.
// Convert a Vec<double> to a Vec<Fix> and assign it to f Vec<double> e = "1.0 2.0 3.0"; Vec<Fix> f; f = to<Fix>(e); // convert e "to Fix" // Convert an Array<Array<Mat<Fix> > > called g to // an Array<Array<Mat<CFix> > > and assign it to h Array<Array<Mat<CFix> > > h; h = to<CFix>(g); // convert g "to CFix"
|
Typedef for complex fixed-point vector type.
|
|
Typedef for complex fixed-point matrix type.
|
|
Typedef for fixed-point vector type.
|
|
Typedef for fixed-point matrix type.
|
|
Typedef for signed 64-bit integer.
Definition at line 890 of file fix_base.h. |
|
Typedef for unsigned 64-bit integer.
Definition at line 892 of file fix_base.h. |
|
Representation for fixed-point data types.
Definition at line 896 of file fix_base.h. |
|
Sign encoding modes (aligned with SystemC).
Definition at line 954 of file fix_base.h. |
|
Overflow modes (aligned with SystemC).
Definition at line 960 of file fix_base.h. |
|
Quantization modes (aligned with SystemC).
Definition at line 969 of file fix_base.h. |
|
Output modes.
Definition at line 981 of file fix_base.h. |
|
Input bit representation and, optionally, the shift.
Definition at line 290 of file cfix.cpp. References itpp::imag(), itpp::real(), itpp::CFix::set(), itpp::CFix::set_im(), itpp::CFix::set_re(), and itpp::Fix_Base::set_shift(). |
|
Output bit representation and, optionally, the shift.
Definition at line 316 of file cfix.cpp. References itpp::CFix::get_im(), itpp::Fix_Base::get_output_mode(), itpp::CFix::get_re(), itpp::Fix_Base::get_shift(), it_error, itpp::OUTPUT_FIX, itpp::OUTPUT_FIX_SHIFT, itpp::OUTPUT_FLOAT, and itpp::OUTPUT_FLOAT_SHIFT. |
|
Input bit representation and, optionally, the shift.
Definition at line 194 of file fix.cpp. References itpp::Fix::set(), itpp::Fix::set_re(), and itpp::Fix_Base::set_shift(). |
|
Output bit representation and, optionally, the shift.
Definition at line 218 of file fix.cpp. References itpp::Fix_Base::get_output_mode(), itpp::Fix::get_re(), itpp::Fix_Base::get_shift(), it_error, itpp::OUTPUT_FIX, itpp::OUTPUT_FIX_SHIFT, itpp::OUTPUT_FLOAT, and itpp::OUTPUT_FLOAT_SHIFT. |
|
Set output mode.
Definition at line 1069 of file fix_base.h. References itpp::Fix_Base::set_output_mode(). |
|
Create an n-length array of Fix using Fix_Factory
|
|
Create an n-length array of CFix using Fix_Factory
|
|
Return true only if argument is of type Fix or CFix (or an Array/Vec/Mat of Fix or CFix).
Definition at line 51 of file fix_functions.h. Referenced by itpp::is_fix(). |
|
Return true only if argument is of type Fix or CFix (or an Array/Vec/Mat of Fix or CFix).
Definition at line 53 of file fix_functions.h. |
|
Return true only if argument is of type Fix or CFix (or an Array/Vec/Mat of Fix or CFix).
Definition at line 55 of file fix_functions.h. |
|
Return true only if argument is of type Fix or CFix (or an Array/Vec/Mat of Fix or CFix).
Definition at line 57 of file fix_functions.h. |
|
Return true only if argument is of type Fix or CFix (or an Array/Vec/Mat of Fix or CFix).
Definition at line 59 of file fix_functions.h. |
|
Return true only if argument is of type Fix or CFix (or an Array/Vec/Mat of Fix or CFix).
Definition at line 61 of file fix_functions.h. |
|
Return true only if argument is of type Fix or CFix (or an Array/Vec/Mat of Fix or CFix).
Definition at line 63 of file fix_functions.h. |
|
Return true only if argument is of type Fix or CFix (or an Array/Vec/Mat of Fix or CFix).
Definition at line 65 of file fix_functions.h. References itpp::is_fix(). |
|
Set
Definition at line 68 of file fix_functions.h. References itpp::Fix::set(). Referenced by itpp::set_fix(). |
|
Set
Definition at line 70 of file fix_functions.h. References itpp::Fix::set(). |
|
Set
Definition at line 72 of file fix_functions.h. References itpp::Vec< Num_T >::set(), itpp::Vec< Num_T >::set_size(), and itpp::Vec< Num_T >::size(). |
|
Set
Definition at line 78 of file fix_functions.h. References itpp::Vec< Num_T >::set(), itpp::Vec< Num_T >::set_size(), and itpp::Vec< Num_T >::size(). |
|
Set
Definition at line 84 of file fix_functions.h. References itpp::Mat< Num_T >::set(), itpp::Mat< Num_T >::set_size(), and itpp::Mat< Num_T >::size(). |
|
Set
Definition at line 90 of file fix_functions.h. References itpp::Mat< Num_T >::set(), itpp::Mat< Num_T >::set_size(), and itpp::Mat< Num_T >::size(). |
|
Set
Definition at line 96 of file fix_functions.h. |
|
Set
Definition at line 98 of file fix_functions.h. |
|
Set
Definition at line 100 of file fix_functions.h. |
|
Set
Definition at line 102 of file fix_functions.h. |
|
Set
Definition at line 104 of file fix_functions.h. |
|
Set
Definition at line 106 of file fix_functions.h. |
|
Set
Definition at line 109 of file fix_functions.h. References itpp::CFix::set(). |
|
Set
Definition at line 111 of file fix_functions.h. References itpp::CFix::set(). |
|
Set
Definition at line 113 of file fix_functions.h. References itpp::CFix::set(). |
|
Set
Definition at line 115 of file fix_functions.h. References itpp::CFix::set(). |
|
Set
Definition at line 117 of file fix_functions.h. References itpp::Vec< Num_T >::set(), itpp::Vec< Num_T >::set_size(), and itpp::Vec< Num_T >::size(). |
|
Set
Definition at line 123 of file fix_functions.h. References itpp::imag(), it_assert1, itpp::real(), itpp::Vec< Num_T >::set(), itpp::Vec< Num_T >::set_size(), and itpp::Vec< Num_T >::size(). |
|
Set
Definition at line 130 of file fix_functions.h. References itpp::Vec< Num_T >::set(), itpp::Vec< Num_T >::set_size(), and itpp::Vec< Num_T >::size(). |
|
Set
Definition at line 136 of file fix_functions.h. References itpp::imag(), it_assert1, itpp::real(), itpp::Vec< Num_T >::set(), itpp::Vec< Num_T >::set_size(), and itpp::Vec< Num_T >::size(). |
|
Set
Definition at line 143 of file fix_functions.h. References itpp::Mat< Num_T >::set(), itpp::Mat< Num_T >::set_size(), and itpp::Mat< Num_T >::size(). |
|
Set
Definition at line 149 of file fix_functions.h. References itpp::imag(), it_assert1, itpp::real(), itpp::Mat< Num_T >::set(), itpp::Mat< Num_T >::set_size(), and itpp::Mat< Num_T >::size(). |
|
Set
Definition at line 156 of file fix_functions.h. References itpp::Mat< Num_T >::set(), itpp::Mat< Num_T >::set_size(), and itpp::Mat< Num_T >::size(). |
|
Set
Definition at line 162 of file fix_functions.h. References itpp::imag(), it_assert1, itpp::real(), itpp::Mat< Num_T >::set(), itpp::Mat< Num_T >::set_size(), and itpp::Mat< Num_T >::size(). |
|
Set
Definition at line 169 of file fix_functions.h. |
|
Set
Definition at line 171 of file fix_functions.h. |
|
Set
Definition at line 173 of file fix_functions.h. |
|
Set
Definition at line 175 of file fix_functions.h. |
|
Set
Definition at line 177 of file fix_functions.h. |
|
Set
Definition at line 179 of file fix_functions.h. References itpp::to_cvec(). |
|
Set
Definition at line 181 of file fix_functions.h. |
|
Set
Definition at line 183 of file fix_functions.h. References itpp::to_cvec(). |
|
Set
Definition at line 185 of file fix_functions.h. |
|
Set
Definition at line 187 of file fix_functions.h. References itpp::to_cmat(). |
|
Set
Definition at line 189 of file fix_functions.h. |
|
Set
Definition at line 191 of file fix_functions.h. References itpp::to_cmat(). |
|
Call set_fix for each Array element.
Definition at line 194 of file fix_functions.h. References itpp::set_fix(), itpp::Array< T >::set_size(), and itpp::Array< T >::size(). |
|
Call set_fix for each Array element.
Definition at line 200 of file fix_functions.h. References itpp::imag(), it_assert1, itpp::real(), itpp::set_fix(), itpp::Array< T >::set_size(), and itpp::Array< T >::size(). |
|
Call set_fix for each Array element.
Definition at line 207 of file fix_functions.h. References itpp::set_fix(), itpp::Array< T >::set_size(), and itpp::Array< T >::size(). |
|
Call set_fix for each Array element.
Definition at line 213 of file fix_functions.h. References itpp::imag(), it_assert1, itpp::real(), itpp::set_fix(), itpp::Array< T >::set_size(), and itpp::Array< T >::size(). |
|
Left shift
Definition at line 221 of file fix_functions.h. References itpp::Fix::lshift(). Referenced by itpp::lshift_fix(). |
|
Right shift
Definition at line 223 of file fix_functions.h. References itpp::Fix::rshift(). Referenced by itpp::rshift_fix(). |
|
Right shift
Definition at line 225 of file fix_functions.h. References itpp::Fix::rshift(). |
|
Left shift
Definition at line 227 of file fix_functions.h. References itpp::Vec< Num_T >::size(). |
|
Right shift
Definition at line 230 of file fix_functions.h. References itpp::Vec< Num_T >::size(). |
|
Right shift
Definition at line 233 of file fix_functions.h. References itpp::Vec< Num_T >::size(). |
|
Left shift
Definition at line 236 of file fix_functions.h. References itpp::Mat< Num_T >::size(). |
|
Right shift
Definition at line 239 of file fix_functions.h. References itpp::Mat< Num_T >::size(). |
|
Right shift
Definition at line 242 of file fix_functions.h. References itpp::Mat< Num_T >::size(). |
|
Dummy function useful in templated code.
Definition at line 245 of file fix_functions.h. |
|
Dummy function useful in templated code.
Definition at line 247 of file fix_functions.h. |
|
Dummy function useful in templated code.
Definition at line 249 of file fix_functions.h. |
|
Dummy function useful in templated code.
Definition at line 251 of file fix_functions.h. |
|
Dummy function useful in templated code.
Definition at line 253 of file fix_functions.h. |
|
Dummy function useful in templated code.
Definition at line 255 of file fix_functions.h. |
|
Dummy function useful in templated code.
Definition at line 257 of file fix_functions.h. |
|
Dummy function useful in templated code.
Definition at line 259 of file fix_functions.h. |
|
Dummy function useful in templated code.
Definition at line 261 of file fix_functions.h. |
|
Left shift
Definition at line 263 of file fix_functions.h. References itpp::CFix::lshift(). |
|
Right shift
Definition at line 265 of file fix_functions.h. References itpp::CFix::rshift(). |
|
Right shift
Definition at line 267 of file fix_functions.h. References itpp::CFix::rshift(). |
|
Left shift
Definition at line 269 of file fix_functions.h. References itpp::Vec< Num_T >::size(). |
|
Right shift
Definition at line 272 of file fix_functions.h. References itpp::Vec< Num_T >::size(). |
|
Right shift
Definition at line 275 of file fix_functions.h. References itpp::Vec< Num_T >::size(). |
|
Left shift
Definition at line 278 of file fix_functions.h. References itpp::Mat< Num_T >::size(). |
|
Right shift
Definition at line 281 of file fix_functions.h. References itpp::Mat< Num_T >::size(). |
|
Right shift
Definition at line 284 of file fix_functions.h. References itpp::Mat< Num_T >::size(). |
|
Dummy function useful in templated code.
Definition at line 287 of file fix_functions.h. |
|
Dummy function useful in templated code.
Definition at line 289 of file fix_functions.h. |
|
Dummy function useful in templated code.
Definition at line 291 of file fix_functions.h. |
|
Dummy function useful in templated code.
Definition at line 293 of file fix_functions.h. |
|
Dummy function useful in templated code.
Definition at line 295 of file fix_functions.h. |
|
Dummy function useful in templated code.
Definition at line 297 of file fix_functions.h. |
|
Dummy function useful in templated code.
Definition at line 299 of file fix_functions.h. |
|
Dummy function useful in templated code.
Definition at line 301 of file fix_functions.h. |
|
Dummy function useful in templated code.
Definition at line 303 of file fix_functions.h. |
|
Call lshift_fix for each Array element.
Definition at line 305 of file fix_functions.h. References itpp::lshift_fix(), and itpp::Array< T >::size(). |
|
Call rshift_fix for each Array element.
Definition at line 308 of file fix_functions.h. References itpp::rshift_fix(), and itpp::Array< T >::size(). |
|
Call rshift_fix for each Array element.
Definition at line 311 of file fix_functions.h. References itpp::rshift_fix(), and itpp::Array< T >::size(). |
|
If x is a fixed-point variable, assert that x has the specified shift value, otherwise do nothing.
Definition at line 315 of file fix_functions.h. |
|
If x is a fixed-point variable, assert that x has the specified shift value, otherwise do nothing.
Definition at line 317 of file fix_functions.h. |
|
If x is a fixed-point variable, assert that x has the specified shift value, otherwise do nothing.
Definition at line 319 of file fix_functions.h. References itpp::Fix_Base::get_shift(), it_assert1, and itpp::to_str(). |
|
If x is a fixed-point variable, assert that x has the specified shift value, otherwise do nothing.
Definition at line 322 of file fix_functions.h. References itpp::Fix_Base::get_shift(), it_assert1, and itpp::to_str(). |
|
Converts a fixvec to vec.
Definition at line 39 of file fix_functions.cpp. References itpp::Vec< Num_T >::length(). |
|
Converts a cfixvec to cvec.
Definition at line 48 of file fix_functions.cpp. References itpp::Vec< Num_T >::length(). |
|
Converts a fixmat to mat.
Definition at line 57 of file fix_functions.cpp. References itpp::Mat< Num_T >::cols(), and itpp::Mat< Num_T >::rows(). |
|
Converts a cfixmat to cmat.
Definition at line 68 of file fix_functions.cpp. References itpp::Mat< Num_T >::cols(), and itpp::Mat< Num_T >::rows(). |
|
Convert double to T.
Definition at line 364 of file fix_functions.h. |
|
Convert Fix to T.
Definition at line 366 of file fix_functions.h. |
|
Convert complex<double> to T.
Definition at line 368 of file fix_functions.h. |
|
Convert CFix to T.
Definition at line 370 of file fix_functions.h. |
|
Convert double (real and imaginary parts) to T.
Definition at line 372 of file fix_functions.h. |
|
Convert Fix (real and imaginary parts) to T.
Definition at line 374 of file fix_functions.h. References itpp::imag(), and itpp::real(). |
|
Convert Vec<U> to Vec<T>.
Definition at line 377 of file fix_functions.h. References itpp::Vec< Num_T >::length(). |
|
Convert vec to vec.
|
|
Convert cvec to cvec.
|
|
Convert fixvec to fixvec.
|
|
Convert cfixvec to cfixvec.
Referenced by itpp::operator *(), itpp::operator+(), itpp::operator-(), and itpp::operator/(). |
|
Convert Vec<U> (real and imaginary parts) to Vec<T>.
Definition at line 395 of file fix_functions.h. References itpp::imag(), it_assert1, and itpp::real(). |
|
Convert Mat<U> to Mat<T>.
Definition at line 406 of file fix_functions.h. References itpp::Mat< Num_T >::cols(), and itpp::Mat< Num_T >::rows(). |
|
Convert mat to mat.
|
|
Convert cmat to cmat.
|
|
Convert fixmat to fixmat.
|
|
Convert cfixmat to cfixmat.
|
|
Convert Mat<U> (real and imaginary parts) to Mat<T>.
Definition at line 426 of file fix_functions.h. References itpp::imag(), it_assert1, and itpp::real(). |
|
Convert Array<U>, where U can be an Array/Vec/Mat, to a corresponding Array with T elements.
Definition at line 440 of file fix_functions.h. References itpp::Array< T >::size(). |
|
Convert Array<U> (real and imaginary parts), where U can be an Array/Vec/Mat, to a corresponding Array with T elements.
Definition at line 451 of file fix_functions.h. References itpp::imag(), it_assert1, and itpp::real(). |
|
Convert Fix to double by multiplying the bit representation with pow2(-shift).
Definition at line 462 of file fix_functions.h. References itpp::Fix::unfix(). Referenced by itpp::unfix(). |
|
Convert CFix to complex<double> by multiplying the bit representation with pow2(-shift).
Definition at line 464 of file fix_functions.h. References itpp::CFix::unfix(). |
|
Convert fixvec to vec by multiplying the bit representations with pow2(-shift).
Definition at line 466 of file fix_functions.h. References itpp::to_vec(). |
|
Convert cfixvec to cvec by multiplying the bit representations with pow2(-shift).
Definition at line 468 of file fix_functions.h. References itpp::to_cvec(). |
|
Convert fixmat to mat by multiplying the bit representations with pow2(-shift).
Definition at line 470 of file fix_functions.h. References itpp::to_mat(). |
|
Convert cfixmat to cmat by multiplying the bit representations with pow2(-shift).
Definition at line 472 of file fix_functions.h. References itpp::to_cmat(). |
|
Convert double to double i.e. do nothing.
Definition at line 475 of file fix_functions.h. |
|
Convert complex<double> to complex<double> i.e. do nothing.
Definition at line 477 of file fix_functions.h. |
|
Convert vec to vec i.e. do nothing.
Definition at line 479 of file fix_functions.h. |
|
Convert cvec to cvec i.e. do nothing.
Definition at line 481 of file fix_functions.h. |
|
Convert mat to mat i.e. do nothing.
Definition at line 483 of file fix_functions.h. |
|
Convert cmat to cmat i.e. do nothing.
Definition at line 485 of file fix_functions.h. |
|
Convert floating- or fixed-point Array to floating-point Array.
Definition at line 530 of file fix_functions.h. References itpp::Array< T >::size(), and itpp::unfix(). |
|
Absolute value.
Definition at line 79 of file fix_functions.cpp. References itpp::Fix::get_re(), and itpp::Fix_Base::get_shift(). |
|
Real part of complex value.
Definition at line 87 of file fix_functions.cpp. References itpp::CFix::get_re(), and itpp::Fix_Base::get_shift(). |
|
Imaginary part of complex value.
Definition at line 94 of file fix_functions.cpp. References itpp::CFix::get_im(), and itpp::Fix_Base::get_shift(). |
|
Conjugate of complex value.
Definition at line 101 of file fix_functions.cpp. References itpp::CFix::get_im(), itpp::CFix::get_re(), and itpp::Fix_Base::get_shift(). |
|
Definition at line 43 of file fix_operators.cpp. References itpp::assert_shifts(), and itpp::Fix::get_re(). |
|
Definition at line 50 of file fix_operators.cpp. References itpp::assert_shifts(), and itpp::Fix::get_re(). |
|
Definition at line 57 of file fix_operators.cpp. References itpp::Fix::get_re(), and itpp::Fix_Base::get_shift(). |
|
Fix / Fix using quantization mode
Definition at line 64 of file fix_operators.cpp. References itpp::Fix::get_re(), and itpp::Fix_Base::get_shift(). |
|
Fix + int.
Definition at line 71 of file fix_operators.cpp. References itpp::assert_shifts(), and itpp::Fix::get_re(). |
|
Fix - int.
Definition at line 78 of file fix_operators.cpp. References itpp::assert_shifts(), and itpp::Fix::get_re(). |
|
Fix * int.
Definition at line 85 of file fix_operators.cpp. References itpp::Fix::get_re(), and itpp::Fix_Base::get_shift(). |
|
Fix / int using quantization mode
Definition at line 92 of file fix_operators.cpp. References itpp::Fix::get_re(), and itpp::Fix_Base::get_shift(). |
|
int + Fix
Definition at line 99 of file fix_operators.cpp. References itpp::assert_shifts(), and itpp::Fix::get_re(). |
|
int - Fix
Definition at line 106 of file fix_operators.cpp. References itpp::assert_shifts(), and itpp::Fix::get_re(). |
|
int * Fix
Definition at line 113 of file fix_operators.cpp. References itpp::Fix::get_re(), and itpp::Fix_Base::get_shift(). |
|
int / Fix using quantization mode
Definition at line 120 of file fix_operators.cpp. References itpp::Fix::get_re(), and itpp::Fix_Base::get_shift(). |
|
fixvec + int
Definition at line 77 of file fix_operators.h. |
|
int + fixvec
Definition at line 79 of file fix_operators.h. |
|
fixvec - int
Definition at line 81 of file fix_operators.h. |
|
int - fixvec
Definition at line 83 of file fix_operators.h. |
|
fixvec * int
Definition at line 85 of file fix_operators.h. |
|
int * fixvec
Definition at line 87 of file fix_operators.h. |
|
fixvec / int using quantization mode
Definition at line 89 of file fix_operators.h. |
|
fixmat + int
Definition at line 92 of file fix_operators.h. |
|
int + fixmat
Definition at line 94 of file fix_operators.h. |
|
fixmat - int
Definition at line 96 of file fix_operators.h. |
|
int - fixmat
Definition at line 98 of file fix_operators.h. |
|
fixmat * int
Definition at line 100 of file fix_operators.h. |
|
int * fixmat
Definition at line 102 of file fix_operators.h. |
|
fixmat / int using quantization mode
Definition at line 104 of file fix_operators.h. |
|
fixvec + ivec
Definition at line 128 of file fix_operators.cpp. References it_assert1, and itpp::Vec< Num_T >::size(). |
|
ivec + fixvec
Definition at line 114 of file fix_operators.h. |
|
fixvec - ivec
Definition at line 116 of file fix_operators.h. |
|
ivec - fixvec
Definition at line 118 of file fix_operators.h. |
|
fixvec * ivec
Definition at line 138 of file fix_operators.cpp. References it_assert1, and itpp::Vec< Num_T >::size(). |
|
ivec * fixvec
Definition at line 122 of file fix_operators.h. |
|
fixmat + imat
Definition at line 148 of file fix_operators.cpp. References itpp::Mat< Num_T >::cols(), it_assert1, and itpp::Mat< Num_T >::rows(). |
|
imat + fixmat
Definition at line 127 of file fix_operators.h. |
|
fixmat - imat
Definition at line 129 of file fix_operators.h. |
|
imat - fixmat
Definition at line 131 of file fix_operators.h. |
|
fixmat * imat
Definition at line 161 of file fix_operators.cpp. References itpp::Mat< Num_T >::_data(), itpp::Mat< Num_T >::cols(), it_assert1, and itpp::Mat< Num_T >::rows(). |
|
imat * fixmat
Definition at line 135 of file fix_operators.h. |
|
Definition at line 190 of file fix_operators.cpp. References itpp::assert_shifts(), itpp::CFix::get_im(), and itpp::CFix::get_re(). |
|
Definition at line 198 of file fix_operators.cpp. References itpp::assert_shifts(), itpp::CFix::get_im(), and itpp::CFix::get_re(). |
|
Definition at line 206 of file fix_operators.cpp. References itpp::CFix::get_im(), itpp::CFix::get_re(), and itpp::Fix_Base::get_shift(). |
|
CFix / CFix using quantization mode
Definition at line 214 of file fix_operators.cpp. References itpp::CFix::get_im(), itpp::CFix::get_re(), and itpp::Fix_Base::get_shift(). |
|
Definition at line 223 of file fix_operators.cpp. References itpp::assert_shifts(), itpp::CFix::get_im(), itpp::Fix::get_re(), and itpp::CFix::get_re(). |
|
Definition at line 231 of file fix_operators.cpp. References itpp::assert_shifts(), itpp::CFix::get_im(), itpp::Fix::get_re(), and itpp::CFix::get_re(). |
|
Definition at line 239 of file fix_operators.cpp. References itpp::CFix::get_im(), itpp::Fix::get_re(), itpp::CFix::get_re(), and itpp::Fix_Base::get_shift(). |
|
CFix / Fix using quantization mode
Definition at line 247 of file fix_operators.cpp. References itpp::CFix::get_im(), itpp::Fix::get_re(), itpp::CFix::get_re(), and itpp::Fix_Base::get_shift(). |
|
Definition at line 255 of file fix_operators.cpp. References itpp::assert_shifts(), itpp::CFix::get_im(), itpp::CFix::get_re(), and itpp::Fix::get_re(). |
|
Definition at line 263 of file fix_operators.cpp. References itpp::assert_shifts(), itpp::CFix::get_im(), itpp::CFix::get_re(), and itpp::Fix::get_re(). |
|
Definition at line 271 of file fix_operators.cpp. References itpp::CFix::get_im(), itpp::CFix::get_re(), itpp::Fix::get_re(), and itpp::Fix_Base::get_shift(). |
|
Fix / CFix using quantization mode
Definition at line 279 of file fix_operators.cpp. References itpp::CFix::get_im(), itpp::Fix::get_re(), itpp::CFix::get_re(), and itpp::Fix_Base::get_shift(). |
|
CFix + int.
Definition at line 288 of file fix_operators.cpp. References itpp::assert_shifts(), itpp::CFix::get_im(), and itpp::CFix::get_re(). |
|
CFix - int.
Definition at line 296 of file fix_operators.cpp. References itpp::assert_shifts(), itpp::CFix::get_im(), and itpp::CFix::get_re(). |
|
CFix * int.
Definition at line 304 of file fix_operators.cpp. References itpp::CFix::get_im(), itpp::CFix::get_re(), and itpp::Fix_Base::get_shift(). |
|
CFix / int using quantization mode
Definition at line 312 of file fix_operators.cpp. References itpp::CFix::get_im(), itpp::CFix::get_re(), and itpp::Fix_Base::get_shift(). |
|
int + CFix
Definition at line 320 of file fix_operators.cpp. References itpp::assert_shifts(), itpp::CFix::get_im(), and itpp::CFix::get_re(). |
|
int - CFix
Definition at line 328 of file fix_operators.cpp. References itpp::assert_shifts(), itpp::CFix::get_im(), and itpp::CFix::get_re(). |
|
int * CFix
Definition at line 336 of file fix_operators.cpp. References itpp::CFix::get_im(), itpp::CFix::get_re(), and itpp::Fix_Base::get_shift(). |
|
int / CFix using quantization mode
Definition at line 344 of file fix_operators.cpp. References itpp::CFix::get_im(), itpp::CFix::get_re(), and itpp::Fix_Base::get_shift(). |
|
fixvec + CFix
Definition at line 187 of file fix_operators.h. References itpp::to< CFix >(). |
|
CFix + fixvec.
Definition at line 189 of file fix_operators.h. References itpp::to< CFix >(). |
|
fixvec - CFix
Definition at line 191 of file fix_operators.h. References itpp::to< CFix >(). |
|
CFix - fixvec.
Definition at line 193 of file fix_operators.h. References itpp::to< CFix >(). |
|
fixvec * CFix
Definition at line 195 of file fix_operators.h. References itpp::to< CFix >(). |
|
CFix * fixvec.
Definition at line 197 of file fix_operators.h. References itpp::to< CFix >(). |
|
fixvec / CFix using quantization mode
Definition at line 199 of file fix_operators.h. References itpp::to< CFix >(). |
|
fixmat + CFix
Definition at line 202 of file fix_operators.h. References itpp::to< CFix >(). |
|
CFix + fixmat.
Definition at line 204 of file fix_operators.h. References itpp::to< CFix >(). |
|
fixmat - CFix
Definition at line 206 of file fix_operators.h. References itpp::to< CFix >(). |
|
CFix - fixmat.
Definition at line 208 of file fix_operators.h. References itpp::to< CFix >(). |
|
fixmat * CFix
Definition at line 210 of file fix_operators.h. References itpp::to< CFix >(). |
|
CFix * fixmat.
Definition at line 212 of file fix_operators.h. References itpp::to< CFix >(). |
|
fixmat / CFix using quantization mode
Definition at line 214 of file fix_operators.h. References itpp::to< CFix >(). |
|
ivec + CFix
Definition at line 217 of file fix_operators.h. References itpp::to< CFix >(), and itpp::to_vec(). |
|
CFix + ivec.
Definition at line 219 of file fix_operators.h. References itpp::to< CFix >(), and itpp::to_vec(). |
|
ivec - CFix
Definition at line 221 of file fix_operators.h. References itpp::to< CFix >(), and itpp::to_vec(). |
|
CFix - ivec.
Definition at line 223 of file fix_operators.h. References itpp::to< CFix >(), and itpp::to_vec(). |
|
ivec * CFix
Definition at line 225 of file fix_operators.h. References itpp::to< CFix >(), and itpp::to_vec(). |
|
CFix * ivec.
Definition at line 227 of file fix_operators.h. References itpp::to< CFix >(), and itpp::to_vec(). |
|
ivec / CFix using quantization mode
Definition at line 229 of file fix_operators.h. References itpp::to< CFix >(), and itpp::to_vec(). |
|
imat + CFix
Definition at line 232 of file fix_operators.h. References itpp::to< CFix >(), and itpp::to_mat(). |
|
CFix + imat.
Definition at line 234 of file fix_operators.h. References itpp::to< CFix >(), and itpp::to_mat(). |
|
imat - CFix
Definition at line 236 of file fix_operators.h. References itpp::to< CFix >(), and itpp::to_mat(). |
|
CFix - imat.
Definition at line 238 of file fix_operators.h. References itpp::to< CFix >(), and itpp::to_mat(). |
|
imat * CFix
Definition at line 240 of file fix_operators.h. References itpp::to< CFix >(), and itpp::to_mat(). |
|
CFix * imat.
Definition at line 242 of file fix_operators.h. References itpp::to< CFix >(), and itpp::to_mat(). |
|
imat / CFix using quantization mode
Definition at line 244 of file fix_operators.h. References itpp::to< CFix >(), and itpp::to_mat(). |
|
cfixvec + Fix
Definition at line 247 of file fix_operators.h. |
|
Fix + cfixvec.
Definition at line 249 of file fix_operators.h. |
|
cfixvec - Fix
Definition at line 251 of file fix_operators.h. |
|
Fix - cfixvec.
Definition at line 253 of file fix_operators.h. |
|
cfixvec * Fix
Definition at line 255 of file fix_operators.h. |
|
Fix * cfixvec.
Definition at line 257 of file fix_operators.h. |
|
cfixvec / Fix using quantization mode
Definition at line 259 of file fix_operators.h. |
|
cfixmat + Fix
Definition at line 262 of file fix_operators.h. |
|
Fix + cfixmat.
Definition at line 264 of file fix_operators.h. |
|
cfixmat - Fix
Definition at line 266 of file fix_operators.h. |
|
Fix - cfixmat.
Definition at line 268 of file fix_operators.h. |
|
cfixmat * Fix
Definition at line 270 of file fix_operators.h. |
|
Fix * cfixmat.
Definition at line 272 of file fix_operators.h. |
|
cfixmat / Fix using quantization mode
Definition at line 274 of file fix_operators.h. |
|
cfixvec + int
Definition at line 277 of file fix_operators.h. |
|
int + cfixvec
Definition at line 279 of file fix_operators.h. |
|
cfixvec - int
Definition at line 281 of file fix_operators.h. |
|
int - cfixvec
Definition at line 283 of file fix_operators.h. |
|
cfixvec * int
Definition at line 285 of file fix_operators.h. |
|
int * cfixvec
Definition at line 287 of file fix_operators.h. |
|
cfixvec / int using quantization mode
Definition at line 289 of file fix_operators.h. |
|
cfixmat + int
Definition at line 292 of file fix_operators.h. |
|
int + cfixmat
Definition at line 294 of file fix_operators.h. |
|
cfixmat - int
Definition at line 296 of file fix_operators.h. |
|
int - cfixmat
Definition at line 298 of file fix_operators.h. |
|
cfixmat * int
Definition at line 300 of file fix_operators.h. |
|
int * cfixmat
Definition at line 302 of file fix_operators.h. |
|
cfixmat / int using quantization mode
Definition at line 304 of file fix_operators.h. |
|
cfixvec + fixvec
Definition at line 353 of file fix_operators.cpp. References it_assert1, and itpp::Vec< Num_T >::size(). |
|
fixvec + cfixvec
Definition at line 314 of file fix_operators.h. |
|
cfixvec - fixvec
Definition at line 316 of file fix_operators.h. |
|
fixvec - cfixvec
Definition at line 318 of file fix_operators.h. |
|
cfixvec * fixvec
Definition at line 363 of file fix_operators.cpp. References it_assert1, and itpp::Vec< Num_T >::size(). |
|
fixvec * cfixvec
Definition at line 322 of file fix_operators.h. |
|
cfixmat + fixmat
Definition at line 373 of file fix_operators.cpp. References itpp::Mat< Num_T >::cols(), it_assert1, and itpp::Mat< Num_T >::rows(). |
|
fixmat + cfixmat
Definition at line 327 of file fix_operators.h. |
|
cfixmat - fixmat
Definition at line 329 of file fix_operators.h. |
|
fixmat - cfixmat
Definition at line 331 of file fix_operators.h. |
|
cfixmat * fixmat
Definition at line 386 of file fix_operators.cpp. References itpp::Mat< Num_T >::_data(), itpp::Mat< Num_T >::cols(), it_assert1, and itpp::Mat< Num_T >::rows(). |
|
fixmat * cfixmat
Definition at line 335 of file fix_operators.h. |
|
cfixvec + ivec
Definition at line 411 of file fix_operators.cpp. References it_assert1, and itpp::Vec< Num_T >::size(). |
|
ivec + cfixvec
Definition at line 340 of file fix_operators.h. |
|
cfixvec - ivec
Definition at line 342 of file fix_operators.h. |
|
ivec - cfixvec
Definition at line 344 of file fix_operators.h. |
|
cfixvec * ivec
Definition at line 421 of file fix_operators.cpp. References it_assert1, and itpp::Vec< Num_T >::size(). |
|
ivec * cfixvec
Definition at line 348 of file fix_operators.h. |
|
cfixmat + imat
Definition at line 431 of file fix_operators.cpp. References itpp::Mat< Num_T >::cols(), it_assert1, and itpp::Mat< Num_T >::rows(). |
|
imat + cfixmat
Definition at line 353 of file fix_operators.h. |
|
cfixmat - imat
Definition at line 355 of file fix_operators.h. |
|
imat - cfixmat
Definition at line 357 of file fix_operators.h. |
|
cfixmat * imat
Definition at line 444 of file fix_operators.cpp. References itpp::Mat< Num_T >::_data(), itpp::Mat< Num_T >::cols(), it_assert1, and itpp::Mat< Num_T >::rows(). |
|
imat * cfixmat
Definition at line 361 of file fix_operators.h. |
|
Set the vector equal to the values in the
Definition at line 528 of file vec.h. References itpp::Vec< Num_T >::alloc(). Referenced by itpp::Vec< Num_T >::operator=(), itpp::Vec< Num_T >::set(), itpp::set_fix(), and itpp::Vec< bmat >::Vec(). |
|
Set matrix equal to values in
Definition at line 590 of file mat.h. References itpp::Mat< Num_T >::alloc(), itpp::Mat< Num_T >::cols(), itpp::Mat< Num_T >::operator()(), itpp::Mat< Num_T >::rows(), and itpp::Mat< Num_T >::set_size(). Referenced by itpp::Mat< unsigned short int >::Mat(), itpp::Mat< Num_T >::operator=(), itpp::Mat< Num_T >::set(), itpp::set_fix(), and itpp::LLR_calc_unit::to_double(). |
|
Max word length.
Definition at line 898 of file fix_base.h. Referenced by itpp::Fix_Base::init(). |
|
Initial value: { uint64(1), uint64(1)<<1, uint64(1)<<2, uint64(1)<<3, uint64(1)<<4, uint64(1)<<5, uint64(1)<<6, uint64(1)<<7, uint64(1)<<8, uint64(1)<<9, uint64(1)<<10, uint64(1)<<11, uint64(1)<<12, uint64(1)<<13, uint64(1)<<14, uint64(1)<<15, uint64(1)<<16, uint64(1)<<17, uint64(1)<<18, uint64(1)<<19, uint64(1)<<20, uint64(1)<<21, uint64(1)<<22, uint64(1)<<23, uint64(1)<<24, uint64(1)<<25, uint64(1)<<26, uint64(1)<<27, uint64(1)<<28, uint64(1)<<29, uint64(1)<<30, uint64(1)<<31, uint64(1)<<32, uint64(1)<<33, uint64(1)<<34, uint64(1)<<35, uint64(1)<<36, uint64(1)<<37, uint64(1)<<38, uint64(1)<<39, uint64(1)<<40, uint64(1)<<41, uint64(1)<<42, uint64(1)<<43, uint64(1)<<44, uint64(1)<<45, uint64(1)<<46, uint64(1)<<47, uint64(1)<<48, uint64(1)<<49, uint64(1)<<50, uint64(1)<<51, uint64(1)<<52, uint64(1)<<53, uint64(1)<<54, uint64(1)<<55, uint64(1)<<56, uint64(1)<<57, uint64(1)<<58, uint64(1)<<59, uint64(1)<<60, uint64(1)<<61, uint64(1)<<62, uint64(1)<<63 }
Definition at line 901 of file fix_base.h. Referenced by itpp::Fix_Base::init(). |
|
Table for fast multiplication by 2^(n-64).
Definition at line 918 of file fix_base.h. Referenced by itpp::Fix::operator double(), itpp::CFix::operator std::complex(), itpp::Fix_Base::scale_and_apply_modes(), itpp::Fix::unfix(), and itpp::CFix::unfix(). |
Generated on Thu Apr 19 14:20:40 2007 for IT++ by Doxygen 1.4.6