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

◆ setZero() [2/2]

template<typename MatType>
void MatrixOps::setZero ( SubMatrix< MatType > A)

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

300{
301 auto& M = A.matrix;
302 for (long rA = A.begin_row; rA < A.end_row; ++rA)
303 for (size_t cA = A.begin_column; cA < A.end_column; ++cA)
304 M.ring().set_zero(M.entry(rA, cA));
305}
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
const long end_row
Definition mat-arith.hpp:85
MatType & matrix
Definition mat-arith.hpp:83

References SubMatrix< MatType >::begin_column, SubMatrix< MatType >::begin_row, SubMatrix< MatType >::end_column, SubMatrix< MatType >::end_row, and SubMatrix< MatType >::matrix.