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
}
Matrix::is_equal
bool is_equal(const Matrix &m) const
Definition
matrix.cpp:312
ERROR
const int ERROR
Definition
m2-mem.cpp:55
exc::engine_error
Definition
exceptions.hpp:42
References
ERROR
,
Matrix::is_equal()
, and
Matrix
.
Macaulay2
e
interface
matrix.cpp
Generated on
for Macaulay2 Engine by
1.15.0