| It seems we are talking past each other. Please take a look at this example (mycode)
 LU Decomposition A = L U.
 A:
 2,000000    -1,000000     0,000000
 1,000000     0,000000    -1,000000
 3,000000     7,000000    -1,000000
 
 The Decomposition of A is
 L:
 0,666667     1,000000     0,000000
 0,333333     0,411765     1,000000
 1,000000     0,000000     0,000000
 U:
 3,000000     7,000000    -1,000000
 0,000000    -5,666667     0,666667
 0,000000     0,000000    -0,941176
 
 Now please consider the output of alglib routine rmatrixlux
 
 ---> LUA:
 3,0000	7,0000	-1,0000
 0,6667	-5,6667	0,6667
 0,3333	0,4118	-0,9412
 ---> PIVOTS:
 2	2	2
 
 Matrix U can easily be extracted. But the construction of L is what is making me a headache when using alglib's rmatrixlu.
 
 
 |