4 cout <<
"Here is the matrix m:" << endl <<
m << endl;
6 cout <<
"Here is, up to permutations, its LU decomposition matrix:"
7 << endl <<
lu.matrixLU() << endl;
8 cout <<
"Here is the L part:" << endl;
10 l.block<5,3>(0,0).triangularView<StrictlyLower>() =
lu.matrixLU();
12 cout <<
"Here is the U part:" << endl;
15 cout <<
"Let us now reconstruct the original matrix m:" << endl;
16 cout <<
lu.permutationP().inverse() *
l * u *
lu.permutationQ().inverse() << endl;