30 #ifndef FIX_OPERATORS_H 31 #define FIX_OPERATORS_H 35 #include <itpp/itexports.h> 49 ITPP_EXPORT Fix
operator+(
const Fix &x,
const Fix &y);
51 ITPP_EXPORT Fix
operator-(
const Fix &x,
const Fix &y);
53 ITPP_EXPORT Fix
operator*(
const Fix &x,
const Fix &y);
55 ITPP_EXPORT Fix
operator/(
const Fix &x,
const Fix &y);
58 ITPP_EXPORT Fix
operator+(
const Fix &x,
const int y);
60 ITPP_EXPORT Fix
operator-(
const Fix &x,
const int y);
62 ITPP_EXPORT Fix
operator*(
const Fix &x,
const int y);
64 ITPP_EXPORT Fix
operator/(
const Fix &x,
const int y);
66 ITPP_EXPORT Fix
operator+(
const int x,
const Fix &y);
68 ITPP_EXPORT Fix
operator-(
const int x,
const Fix &y);
70 ITPP_EXPORT Fix
operator*(
const int x,
const Fix &y);
72 ITPP_EXPORT Fix
operator/(
const int x,
const Fix &y);
135 ITPP_EXPORT CFix
operator+(
const CFix &x,
const CFix &y);
137 ITPP_EXPORT CFix
operator-(
const CFix &x,
const CFix &y);
139 ITPP_EXPORT CFix
operator*(
const CFix &x,
const CFix &y);
141 ITPP_EXPORT CFix
operator/(
const CFix &x,
const CFix &y);
144 ITPP_EXPORT CFix
operator+(
const CFix &x,
const Fix &y);
146 ITPP_EXPORT CFix
operator-(
const CFix &x,
const Fix &y);
148 ITPP_EXPORT CFix
operator*(
const CFix &x,
const Fix &y);
150 ITPP_EXPORT CFix
operator/(
const CFix &x,
const Fix &y);
152 ITPP_EXPORT CFix
operator+(
const Fix &x,
const CFix &y);
154 ITPP_EXPORT CFix
operator-(
const Fix &x,
const CFix &y);
156 ITPP_EXPORT CFix
operator*(
const Fix &x,
const CFix &y);
158 ITPP_EXPORT CFix
operator/(
const Fix &x,
const CFix &y);
161 ITPP_EXPORT CFix
operator+(
const CFix &x,
const int y);
163 ITPP_EXPORT CFix
operator-(
const CFix &x,
const int y);
165 ITPP_EXPORT CFix
operator*(
const CFix &x,
const int y);
167 ITPP_EXPORT CFix
operator/(
const CFix &x,
const int y);
169 ITPP_EXPORT CFix
operator+(
const int x,
const CFix &y);
171 ITPP_EXPORT CFix
operator-(
const int x,
const CFix &y);
173 ITPP_EXPORT CFix
operator*(
const int x,
const CFix &y);
175 ITPP_EXPORT CFix
operator/(
const int x,
const CFix &y);
353 #endif // #ifndef FIX_OPERATORS_H cfixvec to< CFix >(const cfixvec &x)
Convert cfixvec to cfixvec.
Mat< Num_T > operator/(const Mat< Num_T > &m, Num_T t)
Element-wise division by a scalar.
Definitions of a set of functions for Fix, Fixed, CFix and CFixed classes.
Mat< CFix > cfixmat
Typedef for complex fixed-point matrix type.
mat to_mat(const Mat< T > &m)
Converts a Mat<T> to mat.
Complex fixed-point data type.
Mat< Num_T > operator-(const Mat< Num_T > &m1, const Mat< Num_T > &m2)
Subtraction of two matrices.
GF2mat operator+(const GF2mat &X, const GF2mat &Y)
GF(2) matrix addition.
vec to_vec(const Vec< T > &v)
Converts a Vec<T> to vec.
GF2mat operator*(const GF2mat &X, const GF2mat &Y)
GF(2) matrix multiplication.
Vec< CFix > cfixvec
Typedef for complex fixed-point vector type.
Mat< Fix > fixmat
Typedef for fixed-point matrix type.
Vec< Fix > fixvec
Typedef for fixed-point vector type.
Definitions of a complex fixed-point data type CFix.