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);
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 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.
Definitions of a complex fixed-point data type CFix.