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

◆ LU()

template<typename T>
M2_arrayintOrNull MutableMat< T >::LU ( MutableMatrix * L,
MutableMatrix * U ) const
virtual

Implements MutableMatrix.

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

223{
224 // std::cout << "MutableMat<T>::LU\n";
225 T* L1 = L->coerce<T>();
226 T* U1 = U->coerce<T>();
227 if (L1 == 0 or U1 == 0)
228 throw exc::engine_error("expected matrices of the same ring/type");
229 return MatrixOps::LU(mat, *L1, *U1);
230}
MatT * coerce()
Definition mat.hpp:151
M2_arrayintOrNull LU(const Mat &A, Mat &L, Mat &U)

References MutableMatrix::coerce(), MatrixOps::LU(), mat, MutableMatrix::MutableMatrix(), and T.