image thumbnail

LSMR: An iterative algorithm for least-squares problems

version (7.34 KB) by David
Official successor to the LSQR algorithm, developed by David Fong and Michael Saunders.


Updated 10 Mar 2011

View License

An iterative method is presented for solving linear systems and linear least-square systems. The method is based on the Golub-Kahan bidiagonalization process. It is analytically equivalent to the standard method of MINRES applied to the normal equation. Compared to LSQR, it is safer to terminate LSMR early.

Details about LSMR can be found on

Cite As

David (2021). LSMR: An iterative algorithm for least-squares problems (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!