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

◆ row_op()

template<typename Mat>
virtual bool MutableMat< Mat >::row_op ( size_t i,
ring_elem r,
size_t j )
inlinevirtual

Implements MutableMatrix.

Definition at line 444 of file mutablemat-defs.hpp.

446 {
447 size_t nrows = n_rows();
448 if (error_row_bound(i, nrows) || error_row_bound(j, nrows)) return false;
449 if (i == j) return true;
450 const ElementType& b = mat.ring().from_ring_elem_const(r);
451 MatOps::row_op(mat, i, b, j);
452 return true;
453 }
CoeffRing::ElementType ElementType
virtual size_t n_rows() const
bool error_row_bound(size_t r, size_t nrows)

References error_row_bound(), mat, and n_rows().