TEST_LS
Linear Least Squares Test Problems


TEST_LS is a MATLAB library which defines a number of linear least squares problems of the form A*x=b, where A is an M by N matrix.

Some linear least squares problems include constraints on the data, such as requiring that every entry of X be positive. This library only contains unconstrained problems. For such problems, the task is typically to find a vector X which minimizes the Euclidean norm of the residual r=Ax-b, or, in cases where multiple minimizers exist, to find the minimizer of minimal Euclidean norm.

TEST_LS requires access to a compiled copy of the R8LIB library.

Licensing:

The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

Languages:

TEST_LS is available in a C version and a C++ version and a FORTRAN77 version and a FORTRAN90 version and a MATLAB version.

Related Data and Programs:

LLSQ, a MATLAB library which solves the simple linear least squares problem of finding the formula of a straight line y=a*x+b which minimizes the root-mean-square error to a set of N data points.

R8LIB, a MATLAB library which contains many utility routines using double precision real (R8) arithmetic.

Reference:

  1. Cleve Moler,
    Numerical Computing with MATLAB,
    SIAM, 2004,
    ISBN13: 978-0-898716-60-3,
    LC: QA297.M625,
    ebook: http://www.mathworks.com/moler/chapters.html

Source Code:

Examples and Tests:

You can go up one level to the MATLAB source codes.


Last revised on 18 April 2012.