lugetL(A)

Returns matrix L of the LU factorization of matrix A. L is a lower triangular matrix such that A = P*L*U. Matrix P is a permutation matrix in case row exchanges were performed.


See also lugetU lugetP cholesky 


Example


A = ( 1, 0, 4 ; 3, 2, 1 ; 3, -2, 1 )

1  0  4

3  2  1

3 -2  1

L = lugetL(A)

1  0  0

3  1  0

3 -1  1