[SciPy-Dev] least squares solvers

Sturla Molden sturla@molden...
Fri Jan 27 03:47:15 CST 2012

Why is the non-linear LS solver in sp.optimize called leastsq, whereas 
the linear solver in sp.linalg is called lstsq? Wouldn't a consistent 
name be better?

sp.linalg.lstsq uses SVD, by lapack driver *gelss. If we don't need 
singular values, solving by QR is faster (lapack driver *gels).

(I actually use Fortran just to get DGELS instead of DGELSS.)


More information about the SciPy-Dev mailing list