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

◆ set_entry()

template<typename Mat>
virtual bool MutableMat< Mat >::set_entry ( size_t r,
size_t c,
const ring_elem a )
inlinevirtual

Implements MutableMatrix.

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

371 {
372 if (error_row_bound(r, n_rows())) return false;
373 if (error_column_bound(c, n_cols())) return false;
374 const ElementType& b = mat.ring().from_ring_elem_const(a);
376 return true;
377 }
CoeffRing::ElementType ElementType
virtual size_t n_rows() const
virtual size_t n_cols() const
bool error_column_bound(size_t c, size_t ncols)
bool error_row_bound(size_t r, size_t nrows)

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