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

◆ insert_rows()

template<typename Mat>
virtual bool MutableMat< Mat >::insert_rows ( size_t i,
size_t n_to_add )
inlinevirtual

Implements MutableMatrix.

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

546 {
547 if (i > n_rows())
548 {
549 ERROR("cannot insert %l rows before row %ln", n_to_add, i);
550 return false;
551 }
553 return true;
554 }
virtual size_t n_rows() const
const int ERROR
Definition m2-mem.cpp:55

References ERROR, mat, and n_rows().