99 temp(
i) = s + std::complex<double>(
v(
i));
110 temp(
i) = s - std::complex<double>(
v(
i));
121 temp(
i) = s * std::complex<double>(
v(
i));
132 temp(
i) = s / std::complex<double>(
v(
i));
143 temp(
i) = std::complex<double>(
v(
i)) / s;
213 temp._data()[
i] += s;
224 temp._data()[
i] = std::complex<double>((
double)s - m(
i).
real(), -m(
i).
imag());
271 temp(
i) = s * std::complex<double>(
v(
i), 0.0);
280 temp(
i) = s * std::complex<double>(
v(
i), 0.0);
367 std::complex<double>
temp = 0;
375 std::complex<double>
temp = 0;
383 std::complex<double>
temp = 0;
392 it_assert_debug(
a.cols() == b.cols() &&
a.rows() == b.rows(),
"operator+(): sizes does not match");
395 for (
int i = 0;
i <
a.rows();
i++) {
396 for (
int j = 0;
j <
a.cols();
j++) {
408 for (
int i = 0;
i <
a.rows();
i++) {
409 for (
int j = 0;
j <
a.cols();
j++) {
418 it_assert_debug(
a.cols() == b.cols() &&
a.rows() == b.rows(),
"operator+(): sizes does not match");
421 for (
int i = 0;
i <
a.rows();
i++) {
422 for (
int j = 0;
j <
a.cols();
j++) {
433 it_assert_debug(
a.cols() == b.cols() &&
a.rows() == b.rows(),
"operator+(): sizes does not match");
436 for (
int i = 0;
i <
a.rows();
i++) {
437 for (
int j = 0;
j <
a.cols();
j++) {
438 temp(
i,
j) += std::complex<double>(
static_cast<double>(
a(
i,
j)), 0.0);
449 for (
int i = 0;
i <
a.rows();
i++) {
450 for (
int j = 0;
j <
a.cols();
j++) {
462 for (
int i = 0;
i <
a.rows();
i++) {
463 for (
int j = 0;
j <
a.cols();
j++) {
464 temp(
i,
j) += std::complex<double>(
static_cast<double>(
a(
i,
j)), 0.0);
475 for (
int i = 0;
i <
a.rows();
i++) {
476 for (
int j = 0;
j <
a.cols();
j++) {
477 temp(
i,
j) += std::complex<double>(
static_cast<double>(
a(
i,
j)), 0.0);
int size() const
Returns the number of data elements in the array object.
int length() const
Returns the number of data elements in the array object.
int rows() const
The number of rows.
int cols() const
The number of columns.
int _datasize() const
Access to the internal data structure (not recommended to use)
Num_T * _data()
Access of the internal data structure (not recommended to use)
int size() const
The size of the vector.
#define it_assert_debug(t, s)
Abort if t is not true and NDEBUG is not defined.
vec imag(const cvec &data)
Imaginary part of complex values.
vec real(const cvec &data)
Real part of complex values.
Mat< bin > bmat
bin matrix
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.
Definitions of operators for vectors and matricies of different types.