QR is a much cheaper way to get least-square solutions of singular/nonsquare systems: qr(A) \ b
Also, QR works for sparse matrices too.
QR is a much cheaper way to get least-square solutions of singular/nonsquare systems: qr(A) \ b
Also, QR works for sparse matrices too.