Hi everybody, I have the following problem, given a matrix lk
kl = {{1, 0, 0, 0, 0, 0}, {-1, -6, -2, 0, 0, 0}, {0, -2, -8, -2, 0, 0}, {0, 0, -2, 8, 6, 0}, {0, 0, 0, 6, -4, -8}, {0, 0, 0, 0, 0, 1}}
and do this
{lu, p, c} = LUDecomposition[kl]
L is obtained
l = lu SparseArray[{i_, j_} /; j < i -> 1, {6, 6}] + IdentityMatrix[6]
U is obtained
u = lu SparseArray[{i_, j_} /; j >= i -> 1, {6, 6}]
The problem arises when multiplying l.u
l.u
the result is not the matrix lk of above,Any idea why this happens?, thanks in advance

