Re:Don’t invert that matrix (2010)
by donuteaters on Thursday May 12, 2016 @05:09PM
(#11686816)
You calculate the factorization (QR, LU, or similar), but you never calculate the inverse of the factorization:
Q was the transpose of it's inverse, and so you don't get any rounding error when you transpose it. R didn't need to be inverted because it was in a form where back substitution lets you apply the inverse of R to be without needing the inverse of R.
[ Parent
| on HN ]
Re:Don’t invert that matrix (2010)
by pramodliv1 on Thursday May 12, 2016 @07:52PM
(#11687648)
MATLAB's linsolve uses your strategy! (http://in.mathworks.com/help/matlab/ref/linsolve.html)
Re:Don’t invert that matrix (2010)
by ryanmonroe on Thursday May 12, 2016 @10:18PM
(#11688204)
Linear models in R are also solved by QR factorization.