lugetU(A)
Returns matrix U of the LU factorization of matrix A. U is an upper triangular matrix such that A = P*L*U. Matrix P is a permutation matrix in case row exchanges were performed.
See also lugetL lugetP cholesky
Example
A = ( 1, 0, 4 ; 3, 2, 1 ; 3, -2, 1 )
1 0 4
3 2 1
3 -2 1
U = lugetU(A)
1 0 4
0 2 -11
0 0 -22