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