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

◆ LUincremental()

template<typename T>
M2_arrayintOrNull MutableMat< T >::LUincremental ( std::vector< size_t > & P,
const MutableMatrix * v,
int i )
virtual

Implements MutableMatrix.

Definition at line 233 of file mutablemat-imp.hpp.

236{
237 T* LU1 = this->coerce<T>();
238 const T* v1 = const_cast<MutableMatrix*>(v)->coerce<T>();
239 if (LU1 == nullptr or v1 == nullptr)
240 throw exc::engine_error("expected matrices of the same ring/type");
241 return MatrixOps::LUincremental(P, *LU1, *v1, m);
242}
MatT * coerce()
Definition mat.hpp:151
MutableMatrix()
Definition mat.hpp:81
M2_arrayintOrNull LUincremental(std::vector< size_t > &P, Mat &LU, const Mat &v, int i)

References MutableMatrix::coerce(), MatrixOps::LUincremental(), MutableMatrix::MutableMatrix(), and T.