129 for (
int i = 0; i < a.
size(); i++) {
139 for (
int i = 0; i < a.
size(); i++) {
150 for (
int i = 0; i < a.
rows(); i++) {
151 for (
int j = 0; j < a.
cols(); j++) {
152 temp(i, j) += b(i, j);
167 const int *t2 = b._data();
169 for (i = 0; i < r.cols(); i++) {
170 for (j = 0; j < r.rows(); j++) {
173 for (k = a.
cols(); k > 0; k--) {
174 tmp += *(t1) * *(t2++);
347 -x * y.
get_im() / denominator,
356 for (
int i = 0; i < a.
size(); i++) {
366 for (
int i = 0; i < a.
size(); i++) {
377 for (
int i = 0; i < a.
rows(); i++) {
378 for (
int j = 0; j < a.
cols(); j++) {
379 temp(i, j) += b(i, j);
392 CFix *tr = r._data();
396 for (i = 0; i < r.cols(); i++) {
397 for (j = 0; j < r.rows(); j++) {
400 for (k = a.
cols(); k > 0; k--) {
401 tmp += *(t1) * *(t2++);
416 for (
int i = 0; i < a.
size(); i++) {
426 for (
int i = 0; i < a.
size(); i++) {
437 for (
int i = 0; i < a.
rows(); i++) {
438 for (
int j = 0; j < a.
cols(); j++) {
439 temp(i, j) += b(i, j);
452 CFix *tr = r._data();
454 const int *t2 = b._data();
456 for (i = 0; i < r.cols(); i++) {
457 for (j = 0; j < r.rows(); j++) {
460 for (k = a.
cols(); k > 0; k--) {
461 tmp += *(t1) * *(t2++);
int size() const
The size of the vector.
Mat< Num_T > operator/(const Mat< Num_T > &m, Num_T t)
Element-wise division by a scalar.
#define it_assert_debug(t, s)
Abort if t is not true and NDEBUG is not defined.
fixrep get_re() const
Get data representation (mainly for internal use since it reveals the representation type) ...
int cols() const
The number of columns.
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.
GF2mat operator*(const GF2mat &X, const GF2mat &Y)
GF(2) matrix multiplication.
Num_T * _data()
Access of the internal data structure (not recommended to use)
fixrep get_im() const
Get data representation for imaginary part (mainly for internal use since it reveals the representati...
int assert_shifts(const CFix &x, const CFix &y)
Check that x.shift==y.shift OR x==0 OR y==0 and return the shift (for the non-zero argument) ...
int rows() const
The number of rows.
fixrep get_re() const
Get data representation for real part (mainly for internal use since it reveals the representation ty...
Definitions of a set of operators for Fix, Fixed, CFix and CFixed classes.
int64_t fixrep
Representation for fixed-point data types.
int get_shift() const
Get shift.