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

◆ rawLinAlgRank()

long rawLinAlgRank ( MutableMatrix * M)

returns the rank of the matrix M. If 'rank' is not defined on this type of matrix, then returns -1 (and an error message is given).

Definition at line 824 of file mutable-matrix.cpp.

825{
826 try
827 {
828 return M->rank();
829 } catch (const exc::engine_error& e)
830 {
831 ERROR(e.what());
832 return -1;
833 }
834}
virtual size_t rank() const =0
Fast linear algebra routines (well, fast for some rings).
const int ERROR
Definition m2-mem.cpp:55

References ERROR, and MutableMatrix::rank().