<?xml-stylesheet type="text/xsl" href="../styles/pmathml.xsl"?>
<!-- saved from url=(0014)about:internet -->
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dsi="http://www.w3.org/1999/xlink" xmlns:m="http://www.w3.org/1998/Math/MathML" xml:space="preserve"><head><meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"/><title>F08KHF (DGEJSV) : NAG Library, Mark 23</title><link rel="stylesheet" href="../styles/libdoc.css" type="text/css"/><script type="text/javascript">
   function showLevel(_levelId){
    var thisLevel = document.getElementById(_levelId);
    var thisplus = document.getElementById( _levelId.concat('plus'));
    var thisminus = document.getElementById( _levelId.concat('minus'));
    if(thisLevel.style.display != "block"){
     thisLevel.style.display = "block";
     thisplus.style.display = "none";
     thisminus.style.display = "inline";
     }
    else{
     thisLevel.style.display = "none";
     thisminus.style.display = "none";
     thisplus.style.display = "inline";
     }
    }
  </script></head><body><hr/><div><a class="rout" href="../../pdf/F08/f08khf.pdf">F08KHF (DGEJSV) (PDF version)</a></div><div><a class="chap" href="f08conts.xml">F08 Chapter Contents</a></div><div><a class="chapint" href="f08intro.xml">F08 Chapter Introduction</a></div>
<div><a class="htmltoc" href="../FRONTMATTER/manconts.xml">NAG Library Manual</a></div><hr/><h1 class="libdoc">NAG Library Routine Document<br/><br/>F08KHF (DGEJSV)</h1><div class="paramtext"><div class="header"><b>Note:</b>&#160; before using this routine, please read the Users' Note for your implementation to check the interpretation of <span class="bitalic">bold italicised</span> terms and other implementation-dependent details.</div></div> 
<div class="htmltoc">
<h2 class="htmltoc"><span class="htmltochead" onclick="showLevel('htmltoc');"><span class="htmltocplus" id="htmltocplus">+</span><span class="htmltocminus" id="htmltocminus">&#8722;</span></span>&#160;Contents</h2>
<div class="htmltocitem" id="htmltoc">
<div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#purpose">1&#160;&#160;<b>Purpose</b></a>
</div><div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#specification">2&#160;&#160;<b>Specification</b></a>
</div><div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#description">3&#160;&#160;<b>Description</b></a>
</div><div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#references">4&#160;&#160;<b>References</b></a>
</div><div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#parameters">5&#160;&#160;<b>Parameters</b></a>
</div><div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#errors">6&#160;&#160;<b>Error Indicators and Warnings</b></a>
</div><div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#accuracy">7&#160;&#160;<b>Accuracy</b></a>
</div><div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#fcomments">8&#160;&#160;<b>Further Comments</b></a>
</div><div class="htmltoc">
<span class="htmltoc" onclick="showLevel('tocexample');"><span class="htmltocplus" id="tocexampleplus">+</span><span class="htmltocminus" id="tocexampleminus">&#8722;</span></span>
<a class="htmltoc" href="#example">9&#160;&#160;<b>Example</b></a>
<div class="htmltocitem" id="tocexample">
<div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#examtext">9.1&#160;&#160;<b>Program Text</b></a>
</div><div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#examdata">9.2&#160;&#160;<b>Program Data</b></a>
</div><div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#examresults">9.3&#160;&#160;<b>Program Results</b></a>
</div>
</div>
</div>
</div>
</div><h2 class="standard"><a class="sec" name="purpose" id="purpose"/>1&#160;&#160;Purpose</h2>
<div class="paramtext">F08KHF (DGEJSV) computes the singular value decomposition (SVD) of a real <m:math><m:mi>m</m:mi></m:math>&#160;by <m:math><m:mi>n</m:mi></m:math>&#160;matrix <m:math><m:mi>A</m:mi></m:math>&#160;where <m:math><m:mi>m</m:mi><m:mo>&#8805;</m:mo><m:mi>n</m:mi></m:math>, and optionally computes the left and/or right singular vectors.  F08KHF (DGEJSV) implements the preconditioned Jacobi SVD of Drmac and Veselic.  This is the expert driver routine that calls <a class="rout" href="../F08/f08kjf.xml">F08KJF (DGESVJ)</a> after certain preconditioning.  In most cases <a class="rout" href="../F08/f08kbf.xml">F08KBF (DGESVD)</a> or <a class="rout" href="../F08/f08kdf.xml">F08KDF (DGESDD)</a> is sufficient to obtain the SVD of a real matrix and is much simpler to use, it also handles the case <m:math><m:mi>m</m:mi><m:mo>&lt;</m:mo><m:mi>n</m:mi></m:math>.</div><h2 class="standard"><a class="sec" name="specification" id="specification"/>2&#160;&#160;Specification</h2><table class="fspec"><tr><td class="tdfspec1">
<div class="left-tablediv"><table class="fspec1"><tbody>
<tr>
<td class="tdfspec1" valign="top" align="left">SUBROUTINE&#160;F08KHF&#160;(</td>
<td class="tdfspec2" valign="top" align="left"><a class="arg" href="#JOBA">JOBA</a>, <a class="arg" href="#JOBU">JOBU</a>, <a class="arg" href="#JOBV">JOBV</a>, <a class="arg" href="#JOBR">JOBR</a>, <a class="arg" href="#JOBT">JOBT</a>, <a class="arg" href="#JOBP">JOBP</a>, <a class="arg" href="#M">M</a>, <a class="arg" href="#N">N</a>, <a class="arg" href="#A">A</a>, <a class="arg" href="#LDA">LDA</a>, <a class="arg" href="#SVA">SVA</a>, <a class="arg" href="#U">U</a>, <a class="arg" href="#LDU">LDU</a>, <a class="arg" href="#V">V</a>, <a class="arg" href="#LDV">LDV</a>, <a class="arg" href="#WORK">WORK</a>, <a class="arg" href="#LWORK">LWORK</a>, <a class="arg" href="#IWORK">IWORK</a>, <a class="arg" href="#INFO">INFO</a>)</td>
</tr>
</tbody>
</table></div>
<div class="left-tablediv"><table class="fspec3"><tbody>
<tr>
<td class="tdfspec1" valign="top" align="left">INTEGER&#160;</td>
<td class="tdfspec2" valign="top" align="left">M, N, LDA, LDU, LDV, LWORK, IWORK(M+3*N), INFO</td>
</tr>
<tr>
<td class="tdfspec1" valign="top" align="left">REAL&#160;(KIND=nag_wp)&#160;</td>
<td class="tdfspec2" valign="top" align="left">A(LDA,*), SVA(N), U(LDU,*), V(LDV,*), WORK(LWORK)</td>
</tr><tr>
<td class="tdfspec1" valign="top" align="left">CHARACTER(1)&#160;</td>
<td class="tdfspec2" valign="top" align="left">JOBA, JOBU, JOBV, JOBR, JOBT, JOBP</td></tr></tbody>
</table></div>
</td></tr></table>
<div class="paramtext">The routine may be called by its 
    LAPACK
    name <span class="bitalic">dgejsv</span>.</div><h2 class="standard"><a class="sec" name="description" id="description"/>3&#160;&#160;Description</h2>
<div class="paramtext">The SVD is written as

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
 <m:mi>A</m:mi>
 <m:mo>=</m:mo>
 <m:mi>U</m:mi><m:mi>&#931;</m:mi><m:msup><m:mi>V</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup>
 <m:mtext>,</m:mtext>
</m:math></td><td class="formula2"/></tr></table></div>

where <m:math><m:mi>&#931;</m:mi></m:math>&#160;is an <m:math><m:mi>m</m:mi></m:math>&#160;by <m:math><m:mi>n</m:mi></m:math>&#160;matrix which is zero except for its <m:math><m:mi>n</m:mi></m:math>&#160;diagonal elements, <m:math><m:mi>U</m:mi></m:math>&#160;is an <m:math><m:mi>m</m:mi></m:math>&#160;by <m:math><m:mi>m</m:mi></m:math>&#160;orthogonal matrix, and <m:math><m:mi>V</m:mi></m:math>&#160;is an <m:math><m:mi>n</m:mi></m:math>&#160;by <m:math><m:mi>n</m:mi></m:math>&#160;orthogonal matrix.  The diagonal elements of <m:math><m:mi>&#931;</m:mi></m:math>&#160;are the singular values of <m:math><m:mi>A</m:mi></m:math>&#160;in descending order of magnitude.  The columns of <m:math><m:mi>U</m:mi></m:math>&#160;and <m:math><m:mi>V</m:mi></m:math>&#160;are the left and the right singular vectors of <m:math><m:mi>A</m:mi></m:math>. The diagonal of <m:math><m:mi>&#931;</m:mi></m:math>&#160;is computed and stored in the array <a class="arg" href="#SVA">SVA</a>.</div><h2 class="standard"><a class="sec" name="references" id="references"/>4&#160;&#160;References</h2><div class="paramtext"><a name="ref252" id="ref252"/>Anderson E, Bai Z, Bischof C, Blackford S, Demmel J, Dongarra J J, Du Croz J J, Greenbaum A, Hammarling S, McKenney A and Sorensen D (1999)  <i>LAPACK Users' Guide</i> (3rd Edition) SIAM, Philadelphia <a class="url" href="http://www.netlib.org/lapack/lug">http://www.netlib.org/lapack/lug</a></div>
<div class="paramtext"><a name="ref884" id="ref884"/>Drmac Z and Veselic K (2008a)  New fast and accurate Jacobi SVD algorithm I <i>SIAM J. Matrix Anal. Appl.</i> <b>29 4</b>  </div>
<div class="paramtext"><a name="ref885" id="ref885"/>Drmac Z and Veselic K (2008b)  New fast and accurate Jacobi SVD algorithm II <i>SIAM J. Matrix Anal. Appl.</i> <b>29 4</b>  </div>
<div class="paramtext"><a name="ref105" id="ref105"/>Golub G H and Van Loan C F (1996)  <i>Matrix Computations</i> (3rd Edition) Johns Hopkins University Press, Baltimore </div><h2 class="standard"><a class="sec" name="parameters" id="parameters"/>5&#160;&#160;Parameters</h2>
<dl><dt class="paramhead"><a name="JOBA" id="JOBA"/>1: &#160;&#160;&#8194; JOBA &#8211; CHARACTER(1)<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: specifies the form of pivoting for the <m:math><m:mi>Q</m:mi><m:mi>R</m:mi></m:math>&#160;factorization stage; whether an estimate of the condition number of the scaled matrix is required; and the form of rank reduction that is performed.

<dl>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBA"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBA</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'C'</m:mtext></m:math></dt>
<dd>The initial <m:math><m:mi>Q</m:mi><m:mi>R</m:mi></m:math>&#160;factorization of the input matrix is performed with column pivoting; no estimate of condition number is computed; and, the rank is reduced by only the underflowed part of the triangular factor <m:math><m:mi>R</m:mi></m:math>. This option works well (high relative accuracy) if <m:math><m:mi>A</m:mi><m:mo>=</m:mo><m:mi>B</m:mi><m:mi>D</m:mi></m:math>, with well-conditioned <m:math><m:mi>B</m:mi></m:math>&#160;and arbitrary diagonal matrix <m:math><m:mi>D</m:mi></m:math>. The accuracy cannot be spoiled by column scaling. The accuracy of the computed output depends on the condition of <m:math><m:mi>B</m:mi></m:math>, and the procedure aims at the best theoretical accuracy.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBA"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBA</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'E'</m:mtext></m:math></dt>
<dd>Computation as with <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBA"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBA</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'C'</m:mtext></m:math>&#160;with an additional estimate of the condition number of <m:math><m:mi>B</m:mi></m:math>.  It provides a realistic error bound.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBA"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBA</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'F'</m:mtext></m:math></dt>
<dd>The initial <m:math><m:mi>Q</m:mi><m:mi>R</m:mi></m:math>&#160;factorization of the input matrix is performed with full row and column pivoting; no estimate of condition number is computed; and, the rank is reduced by only the underflowed part of the triangular factor <m:math><m:mi>R</m:mi></m:math>. If <m:math><m:mi>A</m:mi><m:mo>=</m:mo><m:msub><m:mi>D</m:mi><m:mn>1</m:mn></m:msub><m:mo>&#215;</m:mo><m:mi>C</m:mi><m:mo>&#215;</m:mo><m:msub><m:mi>D</m:mi><m:mn>2</m:mn></m:msub></m:math>&#160;with ill-conditioned diagonal scalings <m:math><m:msub><m:mi>D</m:mi><m:mn>1</m:mn></m:msub></m:math>, <m:math><m:msub><m:mi>D</m:mi><m:mn>2</m:mn></m:msub></m:math>, and well-conditioned matrix <m:math><m:mi>C</m:mi></m:math>, this option gives higher accuracy than the <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBA"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBA</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'C'</m:mtext></m:math>&#160;option. If the structure of the input matrix is not known, and relative accuracy is desirable, then this option is advisable.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBA"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBA</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'G'</m:mtext></m:math></dt>
<dd>Computation as with <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBA"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBA</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'F'</m:mtext></m:math>&#160;with an additional estimate of the condition number of <m:math><m:mi>B</m:mi></m:math>, where <m:math><m:mi>A</m:mi><m:mo>=</m:mo><m:mi>D</m:mi><m:mi>B</m:mi></m:math>&#160;(i.e., <m:math><m:mi>B</m:mi><m:mo>=</m:mo><m:mi>C</m:mi><m:mo>&#215;</m:mo><m:msub><m:mi>D</m:mi><m:mn>2</m:mn></m:msub></m:math>). If <m:math><m:mi>A</m:mi></m:math>&#160;has heavily weighted rows, then using this condition number gives too pessimistic an error bound.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBA"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBA</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'A'</m:mtext></m:math></dt>
<dd>Computation as with <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBA"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBA</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'C'</m:mtext></m:math>&#160;except in the treatment of rank reduction. In this case, small singular values are to be considered as noise and, if found, the matrix is treated as numerically rank deficient. The computed SVD <m:math><m:mi>A</m:mi><m:mo>=</m:mo><m:mi>U</m:mi><m:mi>&#931;</m:mi><m:msup><m:mi>V</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup></m:math>&#160;restores <m:math><m:mi>A</m:mi></m:math>&#160;up to <m:math><m:mi>f</m:mi><m:mfenced separators=""><m:mi>m</m:mi><m:mo>,</m:mo><m:mi>n</m:mi></m:mfenced><m:mo>&#215;</m:mo><m:mi>&#949;</m:mi><m:mo>&#215;</m:mo><m:mfenced open="&#8214;" close="&#8214;" separators=""><m:mi>A</m:mi></m:mfenced></m:math>, where <m:math><m:mi>&#949;</m:mi></m:math>&#160;is <span class="bitalic">machine precision</span>. This gives the procedure licence to discard (set to zero) all singular values below <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>&#215;</m:mo><m:mi>&#949;</m:mi><m:mo>&#215;</m:mo><m:mfenced open="&#8214;" close="&#8214;" separators=""><m:mi>A</m:mi></m:mfenced></m:math>.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBA"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBA</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'R'</m:mtext></m:math></dt>
<dd>Similar to <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBA"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBA</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'A'</m:mtext></m:math>. The rank revealing property of the initial <m:math><m:mi>Q</m:mi><m:mi>R</m:mi></m:math>&#160;factorization is used to reveal (using the upper triangular factor) a gap <m:math><m:msub><m:mi>&#963;</m:mi><m:mrow><m:mi>r</m:mi><m:mo>+</m:mo><m:mn>1</m:mn></m:mrow></m:msub><m:mo>&lt;</m:mo><m:mi>&#949;</m:mi><m:msub><m:mi>&#963;</m:mi><m:mi>r</m:mi></m:msub></m:math>&#160;in which case the numerical rank is declared to be <m:math><m:mi>r</m:mi></m:math>. The SVD is computed with absolute error bounds, but more accurately than with <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBA"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBA</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'A'</m:mtext></m:math>.</dd></dl>
</div><div class="paramtext"><i>Constraint</i>:
  <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBA"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBA</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'C'</m:mtext></m:math>, <m:math><m:mtext>'E'</m:mtext></m:math>, <m:math><m:mtext>'F'</m:mtext></m:math>, <m:math><m:mtext>'G'</m:mtext></m:math>, <m:math><m:mtext>'A'</m:mtext></m:math>&#160;or <m:math><m:mtext>'R'</m:mtext></m:math>.
</div>
</dd><dt class="paramhead"><a name="JOBU" id="JOBU"/>2: &#160;&#160;&#8194; JOBU &#8211; CHARACTER(1)<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: specifies options for computing the left singular vectors <m:math><m:mi>U</m:mi></m:math>.

<dl>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBU"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBU</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'U'</m:mtext></m:math></dt>
<dd>The first <m:math><m:mi>n</m:mi></m:math>&#160;left singular vectors (columns of <m:math><m:mi>U</m:mi></m:math>) are computed and returned in the array <a class="arg" href="#U">U</a>.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBU"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBU</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'F'</m:mtext></m:math></dt>
<dd>All <m:math><m:mi>m</m:mi></m:math>&#160;left singular vectors are computed and returned in the array <a class="arg" href="#U">U</a>.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBU"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBU</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'W'</m:mtext></m:math></dt>
<dd>No left singular vectors are computed, but the array <a class="arg" href="#U">U</a> (with <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LDU"><m:mi mathcolor="#EE0000" mathvariant="bold">LDU</m:mi></m:maction><m:mo>&#8805;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction></m:math>&#160;and second dimension at least <a class="arg" href="#N">N</a>) is available as workspace for computing right singular values. See the description of <a class="arg" href="#U">U</a>.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBU"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBU</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'N'</m:mtext></m:math></dt>
<dd>No left singular vectors are computed. <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#V"><m:mi mathcolor="#EE0000" mathvariant="bold">V</m:mi></m:maction></m:math>&#160;is not referenced.</dd></dl>
</div><div class="paramtext"><i>Constraint</i>:
  <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBU"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBU</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'U'</m:mtext></m:math>, <m:math><m:mtext>'F'</m:mtext></m:math>, <m:math><m:mtext>'W'</m:mtext></m:math>&#160;or <m:math><m:mtext>'N'</m:mtext></m:math>.
</div>
</dd><dt class="paramhead"><a name="JOBV" id="JOBV"/>3: &#160;&#160;&#8194; JOBV &#8211; CHARACTER(1)<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: specifies options for computing the right singular vectors <m:math><m:mi>V</m:mi></m:math>.

<dl>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBV"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBV</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'V'</m:mtext></m:math></dt>
<dd>the <m:math><m:mi>n</m:mi></m:math>&#160;right singular vectors (columns of <m:math><m:mi>V</m:mi></m:math>) are computed and returned in the array <a class="arg" href="#V">V</a>; Jacobi rotations are not explicitly accumulated.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBV"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBV</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'J'</m:mtext></m:math></dt>
<dd>the <m:math><m:mi>n</m:mi></m:math>&#160;right singular vectors (columns of <m:math><m:mi>V</m:mi></m:math>) are computed and returned in the array <a class="arg" href="#V">V</a>, but they are computed as the product of Jacobi rotations. This option is allowed only if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBU"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBU</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'U'</m:mtext></m:math>&#160;or <m:math><m:mtext>'F'</m:mtext></m:math>, i.e., in computing the full SVD.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBV"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBV</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'W'</m:mtext></m:math></dt>
<dd>No right singular values are computed, but the array <a class="arg" href="#V">V</a> (with <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LDV"><m:mi mathcolor="#EE0000" mathvariant="bold">LDV</m:mi></m:maction><m:mo>&#8805;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction></m:math>&#160;and second dimension at least <a class="arg" href="#N">N</a>) is available as workspace for computing left singular values. See the description of <a class="arg" href="#V">V</a>.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBV"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBV</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'N'</m:mtext></m:math></dt>
<dd>No right singular vectors are computed. <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#U"><m:mi mathcolor="#EE0000" mathvariant="bold">U</m:mi></m:maction></m:math>&#160;is not referenced.</dd></dl>
</div><div class="paramtext"><i>Constraints</i>:
   <div class="paramtext"/><ul class="listcons">
<li class="listcons"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBV"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBV</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'V'</m:mtext></m:math>, <m:math><m:mtext>'J'</m:mtext></m:math>, <m:math><m:mtext>'W'</m:mtext></m:math>&#160;or <m:math><m:mtext>'N'</m:mtext></m:math>;</li>
<li class="listcons">if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBU"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBU</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'W'</m:mtext></m:math>&#160;or <m:math><m:mtext>'N'</m:mtext></m:math>, <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBV"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBV</m:mi></m:maction><m:mo>&#8800;</m:mo><m:mtext>'J'</m:mtext></m:math>.</li>
</ul></div>
</dd><dt class="paramhead"><a name="JOBR" id="JOBR"/>4: &#160;&#160;&#8194; JOBR &#8211; CHARACTER(1)<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: specifies the conditions under which columns of <m:math><m:mi>A</m:mi></m:math>&#160;are to be set to zero. This effectively specifies a lower limit on the range of singular values; any singular values below this limit are (through column zeroing) set to zero. If <m:math><m:mi>A</m:mi><m:mo>&#8800;</m:mo><m:mn>0</m:mn></m:math>&#160;is scaled so that the largest column (in the Euclidean norm) of <m:math><m:mi>c</m:mi><m:mi>A</m:mi></m:math>&#160;is equal to the square root of the overflow threshold, then <a class="arg" href="#JOBR">JOBR</a> allows the routine to kill columns of <m:math><m:mi>A</m:mi></m:math>&#160;whose norm in <m:math><m:mi>c</m:mi><m:mi>A</m:mi></m:math>&#160;is less than <m:math><m:msqrt><m:mi mathvariant="italic">sfmin</m:mi></m:msqrt></m:math>&#160;(for <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBR"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBR</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'R'</m:mtext></m:math>), or less than <m:math><m:mi mathvariant="italic">sfmin</m:mi><m:mo>/</m:mo><m:mi>&#949;</m:mi></m:math>&#160;(otherwise).  <m:math><m:mi mathvariant="italic">sfmin</m:mi></m:math>&#160;is the safe range parameter as returned by routine <a class="rout" href="../X02/x02amf.xml">X02AMF</a>.

<dl>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBR"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBR</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'N'</m:mtext></m:math></dt>
<dd>Only set to zero those columns of <m:math><m:mi>A</m:mi></m:math>&#160;for which the norm of corresponding column of <m:math><m:mi>c</m:mi><m:mi>A</m:mi><m:mo>&lt;</m:mo><m:mi mathvariant="italic">sfmin</m:mi><m:mo>/</m:mo><m:mi>&#949;</m:mi></m:math>, that is, those columns that are effectively zero (to machine precision) anyway. If the condition number of <m:math><m:mi>A</m:mi></m:math>&#160;is greater than the overflow threshold <m:math><m:mi>&#955;</m:mi></m:math>, where <m:math><m:mi>&#955;</m:mi></m:math>&#160;is the value returned by <a class="rout" href="../X02/x02alf.xml">X02ALF</a>, you are recommended to use routine <a class="rout" href="../F08/f08kjf.xml">F08KJF (DGESVJ)</a>.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBR"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBR</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'R'</m:mtext></m:math></dt>
<dd>Set to zero those columns of <m:math><m:mi>A</m:mi></m:math>&#160;for which the norm of the corresponding column of <m:math><m:mi>c</m:mi><m:mi>A</m:mi><m:mo>&lt;</m:mo><m:msqrt><m:mi mathvariant="italic">sfmin</m:mi></m:msqrt></m:math>. This approximately represents a restricted range for <m:math><m:mi>&#963;</m:mi><m:mfenced separators=""><m:mi>c</m:mi><m:mi>A</m:mi></m:mfenced></m:math>&#160;of <m:math><m:mfenced separators="" open="[" close="]"><m:msqrt><m:mi mathvariant="italic">sfmin</m:mi></m:msqrt><m:mo>,</m:mo><m:msqrt><m:mi>&#955;</m:mi></m:msqrt></m:mfenced></m:math>.</dd></dl>
For computing the singular values in the full range from the safe minimum up to the overflow threshold use <a class="rout" href="../F08/f08kjf.xml">F08KJF (DGESVJ)</a>.</div><div class="paramtext"><i>Constraint</i>:
  <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBR"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBR</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'N'</m:mtext></m:math>&#160;or <m:math><m:mtext>'R'</m:mtext></m:math>.
</div>
<div class="paramtext"><i>Suggested value</i>:
  
<m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBR"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBR</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'R'</m:mtext></m:math>&#160;</div>
</dd><dt class="paramhead"><a name="JOBT" id="JOBT"/>5: &#160;&#160;&#8194; JOBT &#8211; CHARACTER(1)<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: specifies, in the case <m:math><m:mi>n</m:mi><m:mo>=</m:mo><m:mi>m</m:mi></m:math>, whether the routine is permitted to use the transpose of <m:math><m:mi>A</m:mi></m:math>&#160;for improved efficiency. If the matrix is square then the procedure may use transposed <m:math><m:mi>A</m:mi></m:math>&#160;if <m:math><m:msup><m:mi>A</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup></m:math>&#160;seems to be better with respect to convergence.  If the matrix is not square, <a class="arg" href="#JOBT">JOBT</a> is ignored. The decision is based on two values of entropy over the adjoint orbit of <m:math><m:msup><m:mi>A</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>A</m:mi></m:math>.  See the descriptions of <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#WORK"><m:mi mathcolor="#EE0000" mathvariant="bold">WORK</m:mi></m:maction><m:mfenced separators=""><m:mn>6</m:mn></m:mfenced></m:math>&#160;and <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#WORK"><m:mi mathcolor="#EE0000" mathvariant="bold">WORK</m:mi></m:maction><m:mfenced separators=""><m:mn>7</m:mn></m:mfenced></m:math>.

<dl>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBT"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBT</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'T'</m:mtext></m:math></dt>
<dd>If <m:math><m:mi>n</m:mi><m:mo>=</m:mo><m:mi>m</m:mi></m:math>, perform an entropy test and then transpose if the test indicates possibly faster convergence of the Jacobi process if <m:math><m:msup><m:mi>A</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup></m:math>&#160;is taken as input. If <m:math><m:mi>A</m:mi></m:math>&#160;is replaced with <m:math><m:msup><m:mi>A</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup></m:math>, then the row pivoting is included automatically.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBT"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBT</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'N'</m:mtext></m:math></dt>
<dd>No entropy test and no transposition is performed.</dd></dl>
The option <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBT"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBT</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'T'</m:mtext></m:math>&#160;can be used to compute only the singular values, or the full SVD (<m:math><m:mi>U</m:mi></m:math>, <m:math><m:mi>&#931;</m:mi></m:math>&#160;and <m:math><m:mi>V</m:mi></m:math>). In the case where only one set of singular vectors (<m:math><m:mi>U</m:mi></m:math>&#160;or <m:math><m:mi>V</m:mi></m:math>) is required, the caller must still provide both <a class="arg" href="#U">U</a> and <a class="arg" href="#V">V</a>, as one of the matrices is used as workspace if the matrix <m:math><m:mi>A</m:mi></m:math>&#160;is transposed.  See the descriptions of <a class="arg" href="#U">U</a> and <a class="arg" href="#V">V</a>.</div><div class="paramtext"><i>Constraint</i>:
  <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBT"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBT</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'T'</m:mtext></m:math>&#160;or <m:math><m:mtext>'N'</m:mtext></m:math>.
</div>
</dd><dt class="paramhead"><a name="JOBP" id="JOBP"/>6: &#160;&#160;&#8194; JOBP &#8211; CHARACTER(1)<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: specifies whether the routine should be allowed to introduce structured perturbations to drown denormalized numbers. For details see <a class="ref" href="#ref884">Drmac and Veselic (2008a)</a> and <a class="ref" href="#ref885">Drmac and Veselic (2008b)</a>.  For the sake of simplicity, these perturbations are included only when the full SVD or only the singular values are requested.

<dl>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBP"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBP</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'P'</m:mtext></m:math></dt>
<dd>Introduce perturbation if <m:math><m:mi>A</m:mi></m:math>&#160;is found to be very badly scaled (introducing denormalized numbers).</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBP"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBP</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'N'</m:mtext></m:math></dt>
<dd>Do not perturb.</dd></dl>
</div><div class="paramtext"><i>Constraint</i>:
  <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBP"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBP</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'P'</m:mtext></m:math>&#160;or <m:math><m:mtext>'N'</m:mtext></m:math>.
</div>
</dd><dt class="paramhead"><a name="M" id="M"/>7: &#160;&#160;&#8194; M &#8211; INTEGER<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: 

<m:math><m:mi>m</m:mi></m:math>, the number of rows of the matrix <m:math><m:mi>A</m:mi></m:math>.</div><div class="paramtext"><i>Constraint</i>:
  <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>0</m:mn></m:math>.
</div>
</dd><dt class="paramhead"><a name="N" id="N"/>8: &#160;&#160;&#8194; N &#8211; INTEGER<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: 

<m:math><m:mi>n</m:mi></m:math>, the number of columns of the matrix <m:math><m:mi>A</m:mi></m:math>.</div><div class="paramtext"><i>Constraint</i>:
  <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction><m:mo>&#8805;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>0</m:mn></m:math>.
</div>
</dd><dt class="paramhead"><a name="A" id="A"/>9: &#160;&#160;&#8194; A(<a class="arg" href="#LDA">LDA</a>,<m:math><m:mo>*</m:mo></m:math>) &#8211; REAL&#160;(KIND=nag_wp)&#160;array<span class="pclass">Input/Output</span></dt><dd>
<div class="paramtext"><b>Note:</b> the second dimension of the array <a class="arg" href="#A">A</a>
must be at least
<m:math><m:mrow><m:mi>max</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mn>1</m:mn><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction></m:mfenced></m:mrow></m:math>.</div>
<div class="paramtext"><i>On entry</i>: the <m:math><m:mi>m</m:mi></m:math>&#160;by <m:math><m:mi>n</m:mi></m:math>&#160;matrix <m:math><m:mi>A</m:mi></m:math>.</div>
<div class="paramtext"><i>On exit</i>:  the contents of <a class="arg" href="#A">A</a> are overwritten.</div>
</dd><dt class="paramhead"><a name="LDA" id="LDA"/>10: &#8194; LDA &#8211; INTEGER<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: the first dimension of the array <a class="arg" href="#A">A</a> as declared in the (sub)program from which F08KHF (DGEJSV) is called.</div><div class="paramtext"><i>Constraint</i>:
  <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LDA"><m:mi mathcolor="#EE0000" mathvariant="bold">LDA</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mrow><m:mi>max</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mn>1</m:mn><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction></m:mfenced></m:mrow></m:math>.
</div>
</dd><dt class="paramhead"><a name="SVA" id="SVA"/>11: &#8194; SVA(<a class="arg" href="#N">N</a>) &#8211; REAL&#160;(KIND=nag_wp)&#160;array<span class="pclass">Output</span></dt><dd>
<div class="paramtext"><i>On exit</i>: the, possibly scaled, singular values of <m:math><m:mi>A</m:mi></m:math>.
<div class="paramtext">The singular values of <m:math><m:mi>A</m:mi></m:math>&#160;are <m:math><m:msub><m:mi>&#963;</m:mi><m:mi mathvariant="italic">i</m:mi></m:msub><m:mo>=</m:mo><m:mi>&#945;</m:mi><m:maction actiontype="link" dsi:type="simple" dsi:href="#SVA"><m:mi mathcolor="#EE0000" mathvariant="bold">SVA</m:mi></m:maction><m:mfenced separators=""><m:mi mathvariant="italic">i</m:mi></m:mfenced></m:math>, for <m:math><m:mi mathvariant="italic">i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:mi>n</m:mi></m:math>, where <m:math><m:mi>&#945;</m:mi><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#WORK"><m:mi mathcolor="#EE0000" mathvariant="bold">WORK</m:mi></m:maction><m:mfenced separators=""><m:mn>1</m:mn></m:mfenced><m:mo>/</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#WORK"><m:mi mathcolor="#EE0000" mathvariant="bold">WORK</m:mi></m:maction><m:mfenced separators=""><m:mn>2</m:mn></m:mfenced></m:math>.  Normally <m:math><m:mi>&#945;</m:mi><m:mo>=</m:mo><m:mn>1</m:mn></m:math>&#160;and no scaling is required to obtain the singular values.  However, if the largest singular value of <m:math><m:mi>A</m:mi></m:math>&#160;overflows or if small singular values have been saved from underflow by scaling the input matrix <m:math><m:mi>A</m:mi></m:math>, then <m:math><m:mi>&#945;</m:mi><m:mo>&#8800;</m:mo><m:mn>1</m:mn></m:math>.</div>
<div class="paramtext">If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBR"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBR</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'R'</m:mtext></m:math>&#160;then some of the singular values may be returned as exact zeros because they are below the numerical rank threshold or are denormalized numbers.</div>
</div>
</dd><dt class="paramhead"><a name="U" id="U"/>12: &#8194; U(<a class="arg" href="#LDU">LDU</a>,<m:math><m:mo>*</m:mo></m:math>) &#8211; REAL&#160;(KIND=nag_wp)&#160;array<span class="pclass">Output</span></dt><dd>
<div class="paramtext"><b>Note:</b> the second dimension of the array <a class="arg" href="#U">U</a>
must be at least
<m:math><m:mrow><m:mi>max</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mn>1</m:mn><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction></m:mfenced></m:mrow></m:math>&#160;if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBU"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBU</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'F'</m:mtext></m:math>, <m:math><m:mrow><m:mi>max</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mn>1</m:mn><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction></m:mfenced></m:mrow></m:math>&#160;if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBU"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBU</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'U'</m:mtext></m:math>&#160;or <m:math><m:mtext>'W'</m:mtext></m:math>, and at least <m:math><m:mn>1</m:mn></m:math>&#160;otherwise.</div>
<div class="paramtext"><i>On exit</i>: if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBU"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBU</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'U'</m:mtext></m:math>, <a class="arg" href="#U">U</a> contains the <m:math><m:mi>m</m:mi></m:math>&#160;by <m:math><m:mi>n</m:mi></m:math>&#160;matrix of the left singular vectors.
<div class="paramtext">If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBU"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBU</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'F'</m:mtext></m:math>, <a class="arg" href="#U">U</a> contains the <m:math><m:mi>m</m:mi></m:math>&#160;by <m:math><m:mi>m</m:mi></m:math>&#160;matrix of the left singular vectors, including an orthonormal basis of the orthogonal complement of Range(<m:math><m:mi>A</m:mi></m:math>).</div>
<div class="paramtext">If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBU"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBU</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'W'</m:mtext></m:math>&#160;and (<m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBV"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBV</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'V'</m:mtext></m:math>&#160;and <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBT"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBT</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'T'</m:mtext></m:math>&#160;and <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction></m:math>), then <a class="arg" href="#U">U</a> is used as workspace if the procedure replaces <m:math><m:mi>A</m:mi></m:math>&#160;with <m:math><m:msup><m:mi>A</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup></m:math>. In that case, <m:math><m:mi>V</m:mi></m:math>&#160;is computed in <a class="arg" href="#U">U</a> as left singular vectors of <m:math><m:msup><m:mi>A</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup></m:math>&#160;and then copied back to the array <a class="arg" href="#V">V</a>.</div>
<div class="paramtext">If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBU"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBU</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'N'</m:mtext></m:math>, <a class="arg" href="#U">U</a> is not referenced.</div>
</div>
</dd><dt class="paramhead"><a name="LDU" id="LDU"/>13: &#8194; LDU &#8211; INTEGER<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: the first dimension of the array <a class="arg" href="#U">U</a> as declared in the (sub)program from which F08KHF (DGEJSV) is called.</div><div class="paramtext"><i>Constraints</i>:
   <div class="paramtext"/><ul class="listcons">
<li class="listcons">if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBU"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBU</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'U'</m:mtext></m:math>, <m:math><m:mtext>'F'</m:mtext></m:math>&#160;or <m:math><m:mtext>'W'</m:mtext></m:math>, <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LDU"><m:mi mathcolor="#EE0000" mathvariant="bold">LDU</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mrow><m:mi>max</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mn>1</m:mn><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction></m:mfenced></m:mrow></m:math>;</li>
<li class="listcons">otherwise <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LDU"><m:mi mathcolor="#EE0000" mathvariant="bold">LDU</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>1</m:mn></m:math>.</li>
</ul></div>
</dd><dt class="paramhead"><a name="V" id="V"/>14: &#8194; V(<a class="arg" href="#LDV">LDV</a>,<m:math><m:mo>*</m:mo></m:math>) &#8211; REAL&#160;(KIND=nag_wp)&#160;array<span class="pclass">Output</span></dt><dd>
<div class="paramtext"><b>Note:</b> the second dimension of the array <a class="arg" href="#V">V</a>
must be at least
<m:math><m:mrow><m:mi>max</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mn>1</m:mn><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction></m:mfenced></m:mrow></m:math>&#160;if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBV"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBV</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'V'</m:mtext></m:math>, <m:math><m:mtext>'J'</m:mtext></m:math>&#160;or <m:math><m:mtext>'W'</m:mtext></m:math>, and at least <m:math><m:mn>1</m:mn></m:math>&#160;otherwise.</div>
<div class="paramtext"><i>On exit</i>: if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBV"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBV</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'V'</m:mtext></m:math>&#160;or <m:math><m:mtext>'J'</m:mtext></m:math>, <a class="arg" href="#V">V</a> contains the <m:math><m:mi>n</m:mi></m:math>&#160;by <m:math><m:mi>n</m:mi></m:math>&#160;matrix of the right singular vectors.
<div class="paramtext">If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBV"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBV</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'W'</m:mtext></m:math>&#160;and (<m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBU"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBU</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'U'</m:mtext></m:math>&#160;and <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBT"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBT</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'T'</m:mtext></m:math>&#160;and <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction></m:math>), then <a class="arg" href="#V">V</a> is used as workspace if the procedure replaces <m:math><m:mi>A</m:mi></m:math>&#160;with <m:math><m:msup><m:mi>A</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup></m:math>. In that case, <m:math><m:mi>U</m:mi></m:math>&#160;is computed in <a class="arg" href="#V">V</a> as right singular vectors of <m:math><m:msup><m:mi>A</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup></m:math>&#160;and then copied back to the array <a class="arg" href="#U">U</a>.</div>
<div class="paramtext">If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBV"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBV</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'N'</m:mtext></m:math>, <a class="arg" href="#V">V</a> is not referenced.</div>
</div>
</dd><dt class="paramhead"><a name="LDV" id="LDV"/>15: &#8194; LDV &#8211; INTEGER<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: the first dimension of the array <a class="arg" href="#V">V</a> as declared in the (sub)program from which F08KHF (DGEJSV) is called.</div><div class="paramtext"><i>Constraints</i>:
   <div class="paramtext"/><ul class="listcons">
<li class="listcons">if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBV"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBV</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'V'</m:mtext></m:math>, <m:math><m:mtext>'J'</m:mtext></m:math>&#160;or <m:math><m:mtext>'W'</m:mtext></m:math>, <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LDV"><m:mi mathcolor="#EE0000" mathvariant="bold">LDV</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mrow><m:mi>max</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mn>1</m:mn><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction></m:mfenced></m:mrow></m:math>;</li>
<li class="listcons">otherwise <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LDV"><m:mi mathcolor="#EE0000" mathvariant="bold">LDV</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>1</m:mn></m:math>.</li>
</ul></div>
</dd><dt class="paramhead"><a name="WORK" id="WORK"/>16: &#8194; WORK(<a class="arg" href="#LWORK">LWORK</a>) &#8211; REAL&#160;(KIND=nag_wp)&#160;array<span class="pclass">Output</span></dt><dd>
<div class="paramtext"><i>On exit</i>: contains information about the completed job.

<dl>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#WORK"><m:mi mathcolor="#EE0000" mathvariant="bold">WORK</m:mi></m:maction><m:mfenced separators=""><m:mn>1</m:mn></m:mfenced></m:math></dt>
<dd><m:math><m:mi>&#945;</m:mi><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#WORK"><m:mi mathcolor="#EE0000" mathvariant="bold">WORK</m:mi></m:maction><m:mfenced separators=""><m:mn>1</m:mn></m:mfenced><m:mo>/</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#WORK"><m:mi mathcolor="#EE0000" mathvariant="bold">WORK</m:mi></m:maction><m:mfenced separators=""><m:mn>2</m:mn></m:mfenced></m:math>&#160;is the scaling factor such that <m:math><m:mi>&#945;</m:mi><m:mo>&#215;</m:mo><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#SVA"><m:mi mathcolor="#EE0000" mathvariant="bold">SVA</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mrow><m:mn>1</m:mn><m:mo>:</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction></m:mrow></m:mfenced></m:mrow></m:math>&#160;are the computed singular values of <m:math><m:mi>A</m:mi></m:math>. (See the description of <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#SVA"><m:mi mathcolor="#EE0000" mathvariant="bold">SVA</m:mi></m:maction></m:math>.)</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#WORK"><m:mi mathcolor="#EE0000" mathvariant="bold">WORK</m:mi></m:maction><m:mfenced separators=""><m:mn>2</m:mn></m:mfenced></m:math></dt>
<dd>See the description of <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#WORK"><m:mi mathcolor="#EE0000" mathvariant="bold">WORK</m:mi></m:maction><m:mfenced separators=""><m:mn>1</m:mn></m:mfenced></m:math>.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#WORK"><m:mi mathcolor="#EE0000" mathvariant="bold">WORK</m:mi></m:maction><m:mfenced separators=""><m:mn>3</m:mn></m:mfenced></m:math></dt>
<dd><span class="italic">sconda</span>, an estimate for the condition number of column equilibrated <m:math><m:mi>A</m:mi></m:math>&#160;(if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBA"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBA</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'E'</m:mtext></m:math>&#160;or <m:math><m:mtext>'G'</m:mtext></m:math>). <span class="italic">sconda</span> is an estimate of <m:math><m:msqrt><m:mfenced separators=""><m:msub><m:mfenced open="&#8214;" close="&#8214;" separators=""><m:msup><m:mfenced separators=""><m:msup><m:mi>R</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>R</m:mi></m:mfenced><m:mn>-1</m:mn></m:msup></m:mfenced><m:mn>1</m:mn></m:msub></m:mfenced></m:msqrt></m:math>.  It is computed using <a class="rout" href="../F07/f07fgf.xml">F07FGF (DPOCON)</a>. It satisfies <m:math><m:msup><m:mi>n</m:mi><m:mrow><m:mo>-</m:mo><m:mfrac><m:mn>1</m:mn><m:mn>4</m:mn></m:mfrac></m:mrow></m:msup><m:mo>&#215;</m:mo><m:mi mathvariant="italic">sconda</m:mi><m:mo>&#8804;</m:mo><m:msub><m:mfenced open="&#8214;" close="&#8214;" separators=""><m:msup><m:mi>R</m:mi><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow></m:msup></m:mfenced><m:mn>2</m:mn></m:msub><m:mo>&#8804;</m:mo><m:msup><m:mi>n</m:mi><m:mfrac><m:mn>1</m:mn><m:mn>4</m:mn></m:mfrac></m:msup><m:mo>&#215;</m:mo><m:mi mathvariant="italic">sconda</m:mi></m:math>&#160;where <m:math><m:mi>R</m:mi></m:math>&#160;is the triangular factor from the <m:math><m:mi>Q</m:mi><m:mi>R</m:mi></m:math>&#160;factorization of <m:math><m:mi>A</m:mi></m:math>.  However, if <m:math><m:mi>R</m:mi></m:math>&#160;is truncated and the numerical rank is determined to be strictly smaller than <m:math><m:mi>n</m:mi></m:math>, <span class="italic">sconda</span> is returned as <m:math><m:mo>-</m:mo><m:mn>1</m:mn></m:math>, thus indicating that the smallest singular values might be lost.</dd></dl>
If full SVD is needed, and you are familiar with the details of the method, the following two condition numbers are useful for the analysis of the algorithm.

<dl>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#WORK"><m:mi mathcolor="#EE0000" mathvariant="bold">WORK</m:mi></m:maction><m:mfenced separators=""><m:mn>4</m:mn></m:mfenced></m:math></dt>
<dd>An estimate of the scaled condition number of the triangular factor in the first <m:math><m:mi>Q</m:mi><m:mi>R</m:mi></m:math>&#160;factorization.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#WORK"><m:mi mathcolor="#EE0000" mathvariant="bold">WORK</m:mi></m:maction><m:mfenced separators=""><m:mn>5</m:mn></m:mfenced></m:math></dt>
<dd>An estimate of the scaled condition number of the triangular factor in the second <m:math><m:mi>Q</m:mi><m:mi>R</m:mi></m:math>&#160;factorization.</dd></dl>
The following two parameters are computed if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBT"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBT</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'T'</m:mtext></m:math>.

<dl>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#WORK"><m:mi mathcolor="#EE0000" mathvariant="bold">WORK</m:mi></m:maction><m:mfenced separators=""><m:mn>6</m:mn></m:mfenced></m:math></dt>
<dd>The entropy of <m:math><m:msup><m:mi>A</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>A</m:mi></m:math>: this is the Shannon entropy of <m:math><m:mrow><m:mi>diag</m:mi><m:mo>&#8289;</m:mo><m:mrow><m:msup><m:mi>A</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>A</m:mi></m:mrow></m:mrow><m:mo>/</m:mo><m:mrow><m:mi>trace</m:mi><m:mo>&#8289;</m:mo><m:mrow><m:msup><m:mi>A</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>A</m:mi></m:mrow></m:mrow></m:math>&#160;taken as point in the probability simplex.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#WORK"><m:mi mathcolor="#EE0000" mathvariant="bold">WORK</m:mi></m:maction><m:mfenced separators=""><m:mn>7</m:mn></m:mfenced></m:math></dt>
<dd>The entropy of <m:math><m:mi>A</m:mi><m:msup><m:mi>A</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup></m:math>.</dd></dl>
</div>
</dd><dt class="paramhead"><a name="LWORK" id="LWORK"/>17: &#8194; LWORK &#8211; INTEGER<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: 
the dimension of the array <a class="arg" href="#WORK">WORK</a> as declared in the (sub)program from which F08KHF (DGEJSV) is called.

<dl>
<dt class="paramval">If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBU"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBU</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'N'</m:mtext></m:math>&#160;and <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBV"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBV</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'N'</m:mtext></m:math></dt>
<dd>
  
  
<dl>
<dt class="paramval">if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBA"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBA</m:mi></m:maction><m:mo>&#8800;</m:mo><m:mtext>'E'</m:mtext></m:math>&#160;or <m:math><m:mtext>'G'</m:mtext></m:math></dt>
<dd>
    
    The minimal requirement is <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LWORK"><m:mi mathcolor="#EE0000" mathvariant="bold">LWORK</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mrow><m:mi>max</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mrow><m:mn>2</m:mn><m:maction actiontype="link" dsi:type="simple" dsi:href="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction><m:mo>+</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction></m:mrow><m:mo>,</m:mo><m:mrow><m:mn>4</m:mn><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>+</m:mo><m:mn>1</m:mn></m:mrow><m:mo>,</m:mo><m:mn>7</m:mn></m:mfenced></m:mrow></m:math>.
    <div class="paramtext">For optimal performance the requirement is <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LWORK"><m:mi mathcolor="#EE0000" mathvariant="bold">LWORK</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mrow><m:mi>max</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mrow><m:mn>2</m:mn><m:maction actiontype="link" dsi:type="simple" dsi:href="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction><m:mo>+</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction></m:mrow><m:mo>,</m:mo><m:mrow><m:mn>3</m:mn><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>+</m:mo><m:mfenced separators=""><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>+</m:mo><m:mn>1</m:mn></m:mfenced><m:mi mathvariant="italic">nb</m:mi></m:mrow><m:mo>,</m:mo><m:mn>7</m:mn></m:mfenced></m:mrow></m:math>, where <m:math><m:mi mathvariant="italic">nb</m:mi></m:math>&#160;is the block size used by <a class="rout" href="../F08/f08aef.xml">F08AEF (DGEQRF)</a> and <a class="rout" href="../F08/f08bff.xml">F08BFF (DGEQP3)</a>. Assuming a value of <m:math><m:mi mathvariant="italic">nb</m:mi><m:mo>=</m:mo><m:mn>128</m:mn></m:math>&#160;is wise, but choosing a smaller value (e.g., <m:math><m:mi mathvariant="italic">nb</m:mi><m:mo>=</m:mo><m:mn>64</m:mn></m:math>) should still lead to acceptable performance.</div></dd>
<dt class="paramval">if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBA"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBA</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'E'</m:mtext></m:math>&#160;or <m:math><m:mtext>'G'</m:mtext></m:math></dt>
<dd>
    
    In this case, <a class="arg" href="#LWORK">LWORK</a> is the maximum of the above and <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>+</m:mo><m:mn>4</m:mn><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction></m:math>, i.e., <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LWORK"><m:mi mathcolor="#EE0000" mathvariant="bold">LWORK</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mrow><m:mi>max</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mrow><m:mn>2</m:mn><m:maction actiontype="link" dsi:type="simple" dsi:href="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction><m:mo>+</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction></m:mrow><m:mo>,</m:mo><m:mrow><m:mn>3</m:mn><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>+</m:mo><m:mfenced separators=""><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>+</m:mo><m:mn>1</m:mn></m:mfenced><m:mi mathvariant="italic">nb</m:mi></m:mrow><m:mo>,</m:mo><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>+</m:mo><m:mn>4</m:mn><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction></m:mrow><m:mo>,</m:mo><m:mn>7</m:mn></m:mfenced></m:mrow></m:math>.
   </dd></dl></dd>
<dt class="paramval">If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBU"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBU</m:mi></m:maction><m:mo>&#8800;</m:mo><m:mtext>'U'</m:mtext></m:math>&#160;or <m:math><m:mtext>'F'</m:mtext></m:math>&#160;and <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBV"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBV</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'V'</m:mtext></m:math>&#160;or <m:math><m:mtext>'J'</m:mtext></m:math></dt>
<dd>
  
  The minimal requirement is <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LWORK"><m:mi mathcolor="#EE0000" mathvariant="bold">LWORK</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mrow><m:mi>max</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mrow><m:mn>2</m:mn><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>+</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction></m:mrow><m:mo>,</m:mo><m:mn>7</m:mn></m:mfenced></m:mrow></m:math>.
  <div class="paramtext">For optimal performance, <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LWORK"><m:mi mathcolor="#EE0000" mathvariant="bold">LWORK</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mrow><m:mi>max</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mrow><m:mn>2</m:mn><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>+</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction></m:mrow><m:mo>,</m:mo><m:mrow><m:mn>2</m:mn><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>+</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>&#215;</m:mo><m:mi mathvariant="italic">nb</m:mi></m:mrow><m:mo>,</m:mo><m:mn>7</m:mn></m:mfenced></m:mrow></m:math>, where <m:math><m:mi mathvariant="italic">nb</m:mi></m:math>&#160;is described above.</div></dd>
<dt class="paramval">If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBU"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBU</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'U'</m:mtext></m:math>&#160;or <m:math><m:mtext>'F'</m:mtext></m:math>&#160;and <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBV"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBV</m:mi></m:maction><m:mo>&#8800;</m:mo><m:mtext>'V'</m:mtext></m:math>&#160;or <m:math><m:mtext>'J'</m:mtext></m:math></dt>
<dd>
  
  The minimal requirement is <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LWORK"><m:mi mathcolor="#EE0000" mathvariant="bold">LWORK</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mrow><m:mi>max</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mrow><m:mn>2</m:mn><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>+</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction></m:mrow><m:mo>,</m:mo><m:mn>7</m:mn></m:mfenced></m:mrow></m:math>.
  <div class="paramtext">For optimal performance, <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LWORK"><m:mi mathcolor="#EE0000" mathvariant="bold">LWORK</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mrow><m:mi>max</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mrow><m:mn>2</m:mn><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>+</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction></m:mrow><m:mo>,</m:mo><m:mrow><m:mn>2</m:mn><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>+</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>&#215;</m:mo><m:mi mathvariant="italic">nb</m:mi></m:mrow><m:mo>,</m:mo><m:mn>7</m:mn></m:mfenced></m:mrow></m:math>, where <m:math><m:mi mathvariant="italic">nb</m:mi></m:math>&#160;is described above.</div></dd>
<dt class="paramval">If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBU"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBU</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'U'</m:mtext></m:math>&#160;or <m:math><m:mtext>'F'</m:mtext></m:math>&#160;and <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBV"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBV</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'V'</m:mtext></m:math></dt>
<dd>
  
 <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LWORK"><m:mi mathcolor="#EE0000" mathvariant="bold">LWORK</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>6</m:mn><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>+</m:mo><m:mn>2</m:mn><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction></m:math>.</dd>
<dt class="paramval">If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBU"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBU</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'U'</m:mtext></m:math>&#160;or <m:math><m:mtext>'F'</m:mtext></m:math>&#160;and <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#JOBV"><m:mi mathcolor="#EE0000" mathvariant="bold">JOBV</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'J'</m:mtext></m:math></dt>
<dd>
  
  The minimal requirement is <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LWORK"><m:mi mathcolor="#EE0000" mathvariant="bold">LWORK</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mrow><m:mi>max</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction><m:mo>+</m:mo><m:mn>3</m:mn><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>+</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction></m:mrow><m:mo>,</m:mo><m:mn>7</m:mn></m:mfenced></m:mrow></m:math>.
  <div class="paramtext">For better performance <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LWORK"><m:mi mathcolor="#EE0000" mathvariant="bold">LWORK</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mrow><m:mi>max</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mrow><m:mn>3</m:mn><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>+</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>+</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction></m:mrow><m:mo>,</m:mo><m:mrow><m:mn>3</m:mn><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>+</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>+</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction><m:mo>&#215;</m:mo><m:mi mathvariant="italic">nb</m:mi></m:mrow><m:mo>,</m:mo><m:mn>7</m:mn></m:mfenced></m:mrow></m:math>, where <m:math><m:mi mathvariant="italic">nb</m:mi></m:math>&#160;is described above.</div></dd></dl>
</div></dd><dt class="paramhead"><a name="IWORK" id="IWORK"/>18: &#8194; IWORK(<m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction><m:mo>+</m:mo><m:mn>3</m:mn><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#N"><m:mi mathcolor="#EE0000" mathvariant="bold">N</m:mi></m:maction></m:math>) &#8211; INTEGER&#160;array<span class="pclass">Output</span></dt><dd>
<div class="paramtext"><i>On exit</i>: contains information about the completed job.

<dl>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IWORK"><m:mi mathcolor="#EE0000" mathvariant="bold">IWORK</m:mi></m:maction><m:mfenced separators=""><m:mn>1</m:mn></m:mfenced></m:math></dt>
<dd>The numerical rank of <m:math><m:mi>A</m:mi></m:math>&#160;determined after the initial <m:math><m:mi>Q</m:mi><m:mi>R</m:mi></m:math>&#160;factorization with pivoting. See the descriptions of <a class="arg" href="#JOBA">JOBA</a> and <a class="arg" href="#JOBR">JOBR</a>.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IWORK"><m:mi mathcolor="#EE0000" mathvariant="bold">IWORK</m:mi></m:maction><m:mfenced separators=""><m:mn>2</m:mn></m:mfenced></m:math></dt>
<dd>The number of computed nonzero singular values.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IWORK"><m:mi mathcolor="#EE0000" mathvariant="bold">IWORK</m:mi></m:maction><m:mfenced separators=""><m:mn>3</m:mn></m:mfenced></m:math></dt>
<dd>If nonzero, a warning message: If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IWORK"><m:mi mathcolor="#EE0000" mathvariant="bold">IWORK</m:mi></m:maction><m:mfenced separators=""><m:mn>3</m:mn></m:mfenced><m:mo>=</m:mo><m:mn>1</m:mn></m:math>&#160;then some of the column norms of <m:math><m:mi>A</m:mi></m:math>&#160;were denormalized (tiny) numbers. The requested high accuracy is not warranted by the data.</dd></dl>
</div>
</dd><dt class="paramhead"><a name="INFO" id="INFO"/>19: &#8194; INFO &#8211; INTEGER<span class="pclass">Output</span></dt><dd><div class="paramtext"><i>On exit</i>: <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#INFO"><m:mi mathcolor="#EE0000" mathvariant="bold">INFO</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn></m:math>&#160;unless the routine detects an error (see <a class="sec" href="#errors">Section 6</a>).</div></dd></dl><h2 class="standard"><a class="sec" name="errors" id="errors"/>6&#160;&#160;Error Indicators and Warnings</h2>
<div class="paramtext">Errors or warnings detected by the routine:</div>
<dl class="ifail">
<dt class="errorhead"><a name="INlt0" id="INlt0"/><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#INFO"><m:mi mathcolor="#EE0000" mathvariant="bold">INFO</m:mi></m:maction><m:mo>&lt;</m:mo><m:mn>0</m:mn></m:math></dt>
<dd><div class="paramtext">If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#INFO"><m:mi mathcolor="#EE0000" mathvariant="bold">INFO</m:mi></m:maction><m:mo>=</m:mo><m:mo>-</m:mo><m:mi>i</m:mi></m:math>, argument <m:math><m:mi>i</m:mi></m:math>&#160;had an illegal value. An explanatory message is output, and execution of the program is terminated.</div></dd>
</dl><dl class="ifail">
<dt class="errorhead"><a name="INgt0" id="INgt0"/><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#INFO"><m:mi mathcolor="#EE0000" mathvariant="bold">INFO</m:mi></m:maction><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math></dt>
<dd>
<div class="paramtext">F08KHF (DGEJSV) did not converge in the maximal number of sweeps.  The computed values might be inaccurate.</div>
</dd>
</dl><h2 class="standard"><a class="sec" name="accuracy" id="accuracy"/>7&#160;&#160;Accuracy</h2>
<div class="paramtext">The computed singular value decomposition is nearly the exact singular value decomposition for a nearby matrix <m:math>
 <m:mfenced separators=""><m:mi>A</m:mi><m:mo>+</m:mo><m:mi>E</m:mi></m:mfenced>
</m:math>, where

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
 <m:msub><m:mfenced open="&#8214;" close="&#8214;" separators=""><m:mi>E</m:mi></m:mfenced><m:mn>2</m:mn></m:msub>
 <m:mo>=</m:mo>
 <m:mrow><m:mi mathvariant="italic">O</m:mi><m:mfenced separators=""><m:mi>&#949;</m:mi></m:mfenced></m:mrow>
 <m:msub><m:mfenced open="&#8214;" close="&#8214;" separators=""><m:mi>A</m:mi></m:mfenced><m:mn>2</m:mn></m:msub>
 <m:mtext>,</m:mtext>
</m:math></td><td class="formula2"/></tr></table></div>

and <m:math>
 <m:mi>&#949;</m:mi>
</m:math>&#160;is the <span class="bitalic">machine precision</span>.  In addition, the computed singular vectors are nearly orthogonal to working precision.  See Section 4.9 of <a class="ref" href="#ref252">Anderson <span class="italic">et al.</span> (1999)</a> for further details.</div><h2 class="standard"><a class="sec" name="fcomments" id="fcomments"/>8&#160;&#160;Further Comments</h2>
<div class="paramtext">F08KHF (DGEJSV) implements a preconditioned Jacobi SVD algorithm. It uses <a class="rout" href="../F08/f08aef.xml">F08AEF (DGEQRF)</a>, <a class="rout" href="../F08/f08ahf.xml">F08AHF (DGELQF)</a> and <a class="rout" href="../F08/f08bff.xml">F08BFF (DGEQP3)</a> as preprocessors and preconditioners.  Optionally, an additional row pivoting can be used as a preprocessor, which in some cases results in much higher accuracy.  An example is matrix <m:math><m:mi>A</m:mi></m:math>&#160;with the structure <m:math><m:mi>A</m:mi><m:mo>=</m:mo><m:msub><m:mi>D</m:mi><m:mn>1</m:mn></m:msub><m:mi>C</m:mi><m:msub><m:mi>D</m:mi><m:mn>2</m:mn></m:msub></m:math>, where <m:math><m:msub><m:mi>D</m:mi><m:mn>1</m:mn></m:msub></m:math>, <m:math><m:msub><m:mi>D</m:mi><m:mn>2</m:mn></m:msub></m:math>&#160;are arbitrarily ill-conditioned diagonal matrices and <m:math><m:mi>C</m:mi></m:math>&#160;is a well-conditioned matrix.  In that case, complete pivoting in the first <m:math><m:mi>Q</m:mi><m:mi>R</m:mi></m:math>&#160;factorizations provides accuracy dependent on the condition number of <m:math><m:mi>C</m:mi></m:math>, and independent of <m:math><m:msub><m:mi>D</m:mi><m:mn>1</m:mn></m:msub></m:math>, <m:math><m:msub><m:mi>D</m:mi><m:mn>2</m:mn></m:msub></m:math>.  Such higher accuracy is not completely understood theoretically, but it works well in practice.  Further, if <m:math><m:mi>A</m:mi></m:math>&#160;can be written as <m:math><m:mi>A</m:mi><m:mo>=</m:mo><m:mi>B</m:mi><m:mi>D</m:mi></m:math>, with well-conditioned <m:math><m:mi>B</m:mi></m:math>&#160;and some diagonal <m:math><m:mi>D</m:mi></m:math>, then the high accuracy is guaranteed, both theoretically and in software, independent of <m:math><m:mi>D</m:mi></m:math>.</div><h2 class="standard"><a class="sec" name="example" id="example"/>9&#160;&#160;Example</h2>
<div class="paramtext">This example finds the singular values and left and right singular vectors of the <m:math><m:mn>6</m:mn></m:math>&#160;by <m:math><m:mn>4</m:mn></m:math>&#160;matrix

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
 <m:mi>A</m:mi>
 <m:mo>=</m:mo>
 <m:mfenced><m:mtable columnalign="right">
<m:mtr>
   <m:mtd><m:mn>2.27</m:mn></m:mtd>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>1.54</m:mn></m:mrow></m:mtd>
   <m:mtd><m:mn>1.15</m:mn></m:mtd>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>1.94</m:mn></m:mrow></m:mtd>
</m:mtr><m:mtr>
   <m:mtd><m:mn>0.28</m:mn></m:mtd>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>1.67</m:mn></m:mrow></m:mtd>
   <m:mtd><m:mn>0.94</m:mn></m:mtd>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>0.78</m:mn></m:mrow></m:mtd>
</m:mtr><m:mtr>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>0.48</m:mn></m:mrow></m:mtd>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>3.09</m:mn></m:mrow></m:mtd>
   <m:mtd><m:mn>0.99</m:mn></m:mtd>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>0.21</m:mn></m:mrow></m:mtd>
</m:mtr><m:mtr>
   <m:mtd><m:mn>1.07</m:mn></m:mtd>
   <m:mtd><m:mn>1.22</m:mn></m:mtd>
   <m:mtd><m:mn>0.79</m:mn></m:mtd>
   <m:mtd><m:mn>0.63</m:mn></m:mtd>
</m:mtr><m:mtr>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>2.35</m:mn></m:mrow></m:mtd>
   <m:mtd><m:mn>2.93</m:mn></m:mtd>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>1.45</m:mn></m:mrow></m:mtd>
   <m:mtd><m:mn>2.30</m:mn></m:mtd>
</m:mtr><m:mtr>
   <m:mtd><m:mn>0.62</m:mn></m:mtd>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>7.39</m:mn></m:mrow></m:mtd>
   <m:mtd><m:mn>1.03</m:mn></m:mtd>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>2.57</m:mn></m:mrow></m:mtd>
</m:mtr>
</m:mtable></m:mfenced>
 <m:mtext>,</m:mtext>
</m:math></td><td class="formula2"/></tr></table></div>

together with the condition number of <m:math><m:mi>A</m:mi></m:math>&#160;and approximate error bounds for the computed singular values and vectors.</div><h3 class="standard"><a class="sec" name="examtext" id="examtext"/>9.1&#160;&#160;Program Text</h3>
<p><a class="verbatimref" href="../../examples/source/f08khfe.f90">Program Text (f08khfe.f90)</a></p><h3 class="standard"><a class="sec" name="examdata" id="examdata"/>9.2&#160;&#160;Program Data</h3>
<p><a class="verbatimref" href="../../examples/data/f08khfe.d">Program&#160;Data (f08khfe.d)</a></p><h3 class="standard"><a class="sec" name="examresults" id="examresults"/>9.3&#160;&#160;Program Results</h3>
<p><a class="verbatimref" href="../../examples/baseresults/f08khfe.r">Program Results (f08khfe.r)</a></p>
<hr/><div><a class="rout" href="../../pdf/F08/f08khf.pdf">F08KHF (DGEJSV) (PDF version)</a></div><div><a class="chap" href="f08conts.xml">F08 Chapter Contents</a></div><div><a class="chapint" href="f08intro.xml">F08 Chapter Introduction</a></div>
<div><a class="htmltoc" href="../FRONTMATTER/manconts.xml">NAG Library Manual</a></div>
<div><hr/><a class="genint" href="../FRONTMATTER/copyright.xml">&#169; The Numerical Algorithms Group Ltd, Oxford, UK. 2011</a></div></body></html>