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

◆ IM2_Matrix_is_equal()

int IM2_Matrix_is_equal ( const Matrix * M,
const Matrix * N )

Definition at line 311 of file matrix.cpp.

312{
313 try
314 {
315 /* This checks that the entries of M,N are the same, as well as
316 that the source and target are the same (as graded free modules).
317 Therefore, it can happen that M-N == 0, but M != N.
318 */
319 return M->is_equal(*N);
320 } catch (const exc::engine_error& e)
321 {
322 ERROR(e.what());
323 return -1;
324 }
325}
bool is_equal(const Matrix &m) const
Definition matrix.cpp:312
const int ERROR
Definition m2-mem.cpp:55

References ERROR, Matrix::is_equal(), and Matrix.