Definition at line 186 of file mutable-matrix.cpp.
187{
188 if (r < 0 || r >= M->
n_rows())
189 {
190 ERROR(
"matrix row index %d out of range 0 .. %d", r, M->
n_rows() - 1);
191 return nullptr;
192 }
193 if (c < 0 || c >= M->
n_cols())
194 {
195 ERROR(
"matrix column index %d out of range 0 .. %d", c, M->
n_cols() - 1);
196 return nullptr;
197 }
201}
virtual size_t n_rows() const =0
virtual size_t n_cols() const =0
virtual bool get_entry(size_t r, size_t c, ring_elem &result) const =0
virtual const Ring * get_ring() const =0
static RingElement * make_raw(const Ring *R, ring_elem f)
VALGRIND_MAKE_MEM_DEFINED & result(result)
References ERROR, MutableMatrix::get_entry(), MutableMatrix::get_ring(), RingElement::make_raw(), MutableMatrix::n_cols(), MutableMatrix::n_rows(), and result().