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

◆ matrixPLU()

template<class RingType>
bool DMatLinAlg< RingType >::matrixPLU ( std::vector< size_t > & P,
Mat & L,
Mat & U )

Output: P = mPerm, L,U; the corresponding parts mLU returns false iff there is an error

Definition at line 297 of file dmat-lu.hpp.

298{
299 const Mat& LU = mLUObject.LUinPlace();
300
301 // std::cout << "calling matrixPLU generic\n";
302 setUpperLower(LU, L, U);
303 P = mLUObject.permutation();
304 return mLUObject.signOfPermutation();
305}
DMatLUinPlace< RingType > mLUObject
Definition dmat-lu.hpp:64
DMat< RingType > Mat
Definition dmat-lu.hpp:61
void setUpperLower(const Mat &LU, Mat &lower, Mat &upper)
Definition dmat-lu.hpp:271

References mLUObject, and setUpperLower().

Referenced by MatrixOps::LU().