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

◆ LU() [1/3]

template<typename RT>
M2_arrayintOrNull MatrixOps::LU ( const DMat< RT > & A,
DMat< RT > & L,
DMat< RT > & U )
inline

Definition at line 495 of file mat-linalg.hpp.

496{
497 std::vector<size_t> perm;
498 DMatLinAlg<RT> LUdecomp(A);
499 LUdecomp.matrixPLU(perm, L, U);
500 return stdvector_to_M2_arrayint(perm);
501}
M2_arrayint stdvector_to_M2_arrayint(const std::vector< T > &v)
Definition util.hpp:79

References DMatLinAlg< RingType >::matrixPLU(), and stdvector_to_M2_arrayint().