Definition at line 55 of file matrix.cpp.
58{
59 try
60 {
61 if (r < 0 || r >= M->
n_rows())
62 {
63 ERROR(
"matrix row index %d out of range 0 .. %d", r, M->
n_rows() - 1);
64 return nullptr;
65 }
66 if (c < 0 || c >= M->
n_cols())
67 {
68 ERROR(
"matrix column index %d out of range 0 .. %d",
69 c,
71 return nullptr;
72 }
77 {
79 return nullptr;
80 }
81}
const Ring * get_ring() const
ring_elem elem(int i, int j) const
static RingElement * make_raw(const Ring *R, ring_elem f)
VALGRIND_MAKE_MEM_DEFINED & result(result)
References Matrix::elem(), ERROR, Matrix::get_ring(), RingElement::make_raw(), Matrix, Matrix::n_cols(), Matrix::n_rows(), and result().