Matrix division \ for sparse and singular matrices

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.

1 Like