void addInPlace(SMat<RT>&A, const SMat<RT>& B) { M2_ASSERT(&B.ring() == &A.ring()); M2_ASSERT(B.numRows() == A.numRows()); M2_ASSERT(B.numColumns() == A.numColumns()); A.addInPlace(B); }
void addInPlace(SMat<RT>& A, const SMat<RT>& B) { assert(&B.ring() == &A.ring()); assert(B.numRows() == A.numRows()); assert(B.numColumns() == A.numColumns()); A.addInPlace(B); }