MINRES is really solving one of the least-squares problems
Similarly if (A - sI) is singular.
If A is symmetric (and A - sI is nonsingular), SYMMLQ may be slightly more reliable.
If A is unsymmetric, use LSQR.
S.-C. Choi (2006). Iterative Methods for Singular Linear Equations and Least-Squares Problems, PhD thesis, Stanford University.
17 Oct 2003: MATLAB files derived from f77 version. Singular systems allowed.
11 Oct 2007: f90 files derived from f77 version.
04 Dec 2007: f90 version allows singular systems.