What is the algorithm for LU factorization in MATLAB, i.e.
[L,U] = lu(a)?
After searching for many examples and trying to compare the result with MATLAB, they are all different.
However, I would like to do the result as it is in MATLAB. Which books contain the algorithm; or, what is exact algorithm used?
a = [1,2,3;4,5,6;7,8,9] [L,U] = lu(a)
I Googled this, and it is different from MATLAB: