Registered Member
|
Hi,
I am trying to perform a LU decomposition of a square matrix using Eigen::FullPivLU so the original matrix m = L*U. However, when I do that, the matrices L and U calculated, when multiplied, do not result in the original matrix m. The code is below and matrix m (just an example) is m = [88, -57, -63, 0; -57, 39, 0, -36; -63, 0, 45, -46; 0, -36, -46, 1]
When I multiply L*U, it does not result in m. Anyone knows why does it happen? |
Moderator
|
As explained there: https://eigen.tuxfamily.org/dox/classEi ... PivLU.html, it compute M = P * L * U where P is a row-interchange permutation matrix.
|
Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]