129 for (
int i = 0;
i <
a.
size();
i++) {
139 for (
int i = 0;
i <
a.
size();
i++) {
147 it_assert_debug(
a.cols() == b.cols() &&
a.rows() == b.rows(),
"operator+(): sizes do not match");
150 for (
int i = 0;
i <
a.rows();
i++) {
151 for (
int j = 0;
j <
a.cols();
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--) {
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++) {
396 for (
i = 0;
i < r.
cols();
i++) {
397 for (
j = 0;
j < r.
rows();
j++) {
400 for (k =
a.cols(); k > 0; k--) {
416 for (
int i = 0;
i <
a.
size();
i++) {
426 for (
int i = 0;
i <
a.
size();
i++) {
434 it_assert_debug(
a.cols() == b.cols() &&
a.rows() == b.rows(),
"operator+(): sizes do not match");
437 for (
int i = 0;
i <
a.rows();
i++) {
438 for (
int j = 0;
j <
a.cols();
j++) {
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--) {
int size() const
Returns the number of data elements in the array object.
Complex fixed-point data type.
fixrep get_im() const
Get data representation for imaginary part (mainly for internal use since it reveals the representati...
fixrep get_re() const
Get data representation for real part (mainly for internal use since it reveals the representation ty...
int get_shift() const
Get shift.
fixrep get_re() const
Get data representation (mainly for internal use since it reveals the representation type)
int rows() const
The number of rows.
int cols() const
The number of columns.
Num_T * _data()
Access of the internal data structure (not recommended to use)
int size() const
The size of the vector.
Definitions of a set of operators for Fix, Fixed, CFix and CFixed classes.
#define it_assert_debug(t, s)
Abort if t is not true and NDEBUG is not defined.
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)
int64_t fixrep
Representation for fixed-point data types.
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.
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.