Macaulay2 Engine
Loading...
Searching...
No Matches

◆ operator=() [2/2]

template<typename MatType>
void SubMatrix< MatType >::operator= ( SubMatrix< MatType > src)
inline

Definition at line 123 of file mat-arith.hpp.

124 {
126 long rA = begin_row;
127 long rB = src.begin_row;
128 for (; rA < end_row; ++rA, ++rB)
129 {
130 long cA = begin_column;
131 long cB = src.begin_column;
132 for (; cA < end_column; ++cA, ++cB)
133 matrix.ring().set(matrix.entry(rA, cA), src.matrix.entry(rB, cB));
134 }
135 }
const long begin_row
Definition mat-arith.hpp:84
const long begin_column
Definition mat-arith.hpp:86
const long end_column
Definition mat-arith.hpp:87
bool sameSize(const SubMatrix &b) const
const long end_row
Definition mat-arith.hpp:85
MatType & matrix
Definition mat-arith.hpp:83

References begin_column, begin_row, end_column, end_row, matrix, sameSize(), and SubMatrix().