for example, there is a matrix:
import numpy as np
A = np.array([[ 8. , -6. , 2. ],
[-0.5, 8. , -6. ],
[ 0.5, -0.5, 2. ]])
It's a LU Decomposition (Doolittle’s decomposition) result.(A = [L\U])
I want to get L and U from A.
U should be:
U = np.array([[ 8., -6., 2.],
[ 0., 8., -6.],
[ 0., 0., 2.]])
L should be:
L = np.array([[ 1. , 0. , 0. ],
[-0.5, 1. , 0. ],
[ 0.5, -0.5, 1.]])
then, want I want to know is how to get the L and U from A?