<HTML>
<HEAD>
<title>Linear Least Squares (LLS) Problems</title>
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#660099">
<script language="JavaScript">
<!--
if (
    parent.document.location==document.location
    && (""+document.location).toLowerCase().indexOf(".chm")==-1
    && (""+document.location).toLowerCase().indexOf("~hh")==-1
   )
 document.writeln ('<h3><a href="index.htm">Table of Contents</a></h3>');
//-->
</script>

<a name="top"></a>
<p>
<font face="arial,helvetica,headtxt">
<h3>
Linear Least Squares (LLS) Problems
</h3>
</font>
<p>

<font face="times new roman,times,bodytxt">

<p><A NAME="gels"></A>

<B>?gels</B>
uses <I>QR</I> or <I>LQ</I> factorization to solve an overdetermined or underdetermined linear system with a full rank matrix.<BR>
<code><font face="Courier New,Courier,codetxt" color="#7f0000">
call sgels (<i>trans, m, n, nrhs, a, lda, b, ldb, work, lwork, info</i>)<br>
call dgels (<i>trans, m, n, nrhs, a, lda, b, ldb, work, lwork, info</i>)<br>
call cgels (<i>trans, m, n, nrhs, a, lda, b, ldb, work, lwork, info</i>)<br>
call zgels (<i>trans, m, n, nrhs, a, lda, b, ldb, work, lwork, info</i>)
</font></code>

<p><A NAME="gelsy"></A>

<B>?gelsy</B>
computes the minimum-norm solution to a linear least squares problem using a complete orthogonal factorization of <I>A</I>.
<BR>
<code><font face="Courier New,Courier,codetxt" color="#7f0000">
call sgelsy (<i>m, n, nrhs, a, lda, b, ldb, jpvt, rcond, rank, work,
               lwork, info</i>)<br>
call dgelsy (<i>m, n, nrhs, a, lda, b, ldb, jpvt, rcond, rank, work,
               lwork, info</i>)<br>
call cgelsy (<i>m, n, nrhs, a, lda, b, ldb, jpvt, rcond, rank, work,
               lwork, rwork, info</i>)<br>
call zgelsy (<i>m, n, nrhs, a, lda, b, ldb, jpvt, rcond, rank, work,
               lwork, rwork, info</i>)
</font></code>

<p><A NAME="gelss"></A>

<B>?gelss</B>
computes the minimum-norm solution to a linear least squares problem using the singular value decomposition of <I>A</I>.<BR>
<code><font face="Courier New,Courier,codetxt" color="#7f0000">
call sgelss (<i>m, n, nrhs, a, lda, b, ldb, s, rcond, rank, work,
               lwork, info</i>)<br>
call dgelss (<i>m, n, nrhs, a, lda, b, ldb, s, rcond, rank, work,
               lwork, info</i>)<br>
call cgelss (<i>m, n, nrhs, a, lda, b, ldb, s, rcond, rank, work,
               lwork, rwork, info</i>)<br>
call zgelss (<i>m, n, nrhs, a, lda, b, ldb, s, rcond, rank, work,
               lwork, rwork, info</i>)
</font></code>

<p><A NAME="gelsd"></A>

<B>?gelsd</B>
computes the minimum-norm solution to a linear least squares problem using the singular value decomposition of  <I>A</I> and a divide and conquer method.
<BR>
<code><font face="Courier New,Courier,codetxt" color="#7f0000">
call sgelsd (<i>m, n, nrhs, a, lda, b, ldb, s, rcond, rank, work,
               lwork, iwork, info</i>)<br>
call dgelsd (<i>m, n, nrhs, a, lda, b, ldb, s, rcond, rank, work,
               lwork, iwork, info</i>)<br>
call cgelsd (<i>m, n, nrhs, a, lda, b, ldb, s, rcond, rank, work,
               lwork, rwork, iwork, info</i>)<br>
call zgelsd (<i>m, n, nrhs, a, lda, b, ldb, s, rcond, rank, work,
               lwork, rwork, iwork, info</i>)
</font></code>

<!--Page content ends here; don't delete this comment.-->
</font>

<p>
<font size=2>
<font face="arial,helvetica,runtxt">
* <A HREF="legal_new.htm"><i>Legal Information</i></A>
&#169; 1999, 2002-2003, Intel Corporation
</font>
</font>

</BODY>
</HTML>