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

◆ row2by2()

template<typename Mat>
virtual bool MutableMat< Mat >::row2by2 ( size_t r1,
size_t r2,
ring_elem a1,
ring_elem a2,
ring_elem b1,
ring_elem b2 )
inlinevirtual

Implements MutableMatrix.

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

498 {
499 size_t nrows = n_rows();
500 if (error_row_bound(r1, nrows) || error_row_bound(r2, nrows)) return false;
501 if (r1 == r2) return true;
502 const ElementType& aa1 = mat.ring().from_ring_elem_const(a1);
503 const ElementType& aa2 = mat.ring().from_ring_elem_const(a2);
504 const ElementType& bb1 = mat.ring().from_ring_elem_const(b1);
505 const ElementType& bb2 = mat.ring().from_ring_elem_const(b2);
507 return true;
508 }
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().