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

◆ rawLinAlgInverse()

MutableMatrix * rawLinAlgInverse ( MutableMatrix * A)

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

849{
850 try
851 {
852 MutableMatrix *B = A->invert();
853 if (B==nullptr) ERROR("matrix not invertible");
854 return internMutableMatrix(B);
855 } catch (const exc::engine_error& e)
856 {
857 ERROR(e.what());
858 return nullptr;
859 }
860}
virtual MutableMatrix * invert() const =0
Abstract base class for mutable matrices over an arbitrary engine Ring, the in-place counterpart of t...
Definition mat.hpp:79
MutableMatrix * internMutableMatrix(MutableMatrix *G)
Definition finalize.cpp:200
const int ERROR
Definition m2-mem.cpp:55

References ERROR, internMutableMatrix(), and MutableMatrix::invert().