<?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>F02FJF : NAG Library, Mark 22</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/F02/f02fjf.pdf">F02FJF (PDF version)</a></div><div><a class="chap" href="f02conts.xml">F02 Chapter Contents</a></div><div><a class="chapint" href="f02intro.xml">F02 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/>F02FJF</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">F02FJF finds eigenvalues and eigenvectors of a real sparse symmetric or generalized symmetric eigenvalue problem.</div><h2 class="standard"><a class="sec" name="specification" id="specification"/>2&#160;&#160;Specification</h2>
<table class="fspec"><tr><td class="tdfspec1">SUBROUTINE&#160;F02FJF&#160;(</td><td class="tdfspec2"><a class="arg" href="#N">N</a>, <a class="arg" href="#M">M</a>, <a class="arg" href="#K">K</a>, <a class="arg" href="#NOITS">NOITS</a>, <a class="arg" href="#TOL">TOL</a>, <a class="arg" href="#DOT">DOT</a>, <a class="arg" href="#IMAGE">IMAGE</a>, <a class="arg" href="#MONIT">MONIT</a>, <a class="arg" href="#NOVECS">NOVECS</a>, <a class="arg" href="#X">X</a>, <a class="arg" href="#LDX">LDX</a>, <a class="arg" href="#D">D</a>, <a class="arg" href="#WORK">WORK</a>, <a class="arg" href="#LWORK">LWORK</a>, <a class="arg" href="#RUSER">RUSER</a>, <a class="arg" href="#LRUSER">LRUSER</a>, <a class="arg" href="#IUSER">IUSER</a>, <a class="arg" href="#LIUSER">LIUSER</a>, <a class="arg" href="#IFAIL">IFAIL</a>)</td></tr><tr><td class="tdfspec1">INTEGER</td><td class="tdfspec2">N, M, K, NOITS, NOVECS, LDX, LWORK, LRUSER, IUSER(LIUSER), LIUSER, IFAIL</td></tr><tr><td class="tdfspec1"><b><i>double&#160;precision</i></b></td><td class="tdfspec2">TOL, DOT, X(LDX,K), D(K), WORK(LWORK), RUSER(LRUSER)</td></tr><tr><td class="tdfspec1">EXTERNAL</td><td class="tdfspec2">DOT, IMAGE, MONIT</td></tr></table><h2 class="standard"><a class="sec" name="description" id="description"/>3&#160;&#160;Description</h2>
<div class="paramtext">F02FJF finds the <m:math><m:mi>m</m:mi></m:math>&#160;eigenvalues of largest absolute value and the corresponding eigenvectors for the real eigenvalue problem

<div class="formula-eqn"><a name="eqn1" id="eqn1"/><table class="formula-eqn"><tr><td class="formula-eqn"><m:math display="block">
<m:mi>C</m:mi><m:mi>x</m:mi><m:mo>=</m:mo><m:mi>&#955;</m:mi>  <m:mi>x</m:mi>
</m:math></td><td class="formula-eqn2">
      (1)
     </td></tr></table></div>

where <m:math><m:mi>C</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;matrix such that

<div class="formula-eqn"><a name="eqn2" id="eqn2"/><table class="formula-eqn"><tr><td class="formula-eqn"><m:math display="block">
<m:mi>B</m:mi><m:mi>C</m:mi><m:mo>=</m:mo><m:msup><m:mi>C</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>B</m:mi>
</m:math></td><td class="formula-eqn2">
      (2)
     </td></tr></table></div>

for a given positive-definite matrix <m:math><m:mi>B</m:mi></m:math>.  <m:math><m:mi>C</m:mi></m:math>&#160;is said to be <m:math><m:mi>B</m:mi></m:math>-symmetric.  Different specifications of  <m:math><m:mi>C</m:mi></m:math>&#160;allow for the solution of a variety of eigenvalue problems.  For example, when

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:mi>C</m:mi><m:mo>=</m:mo><m:mi>A</m:mi><m:mtext>&#8195; and &#8195;</m:mtext><m:mi>B</m:mi><m:mo>=</m:mo><m:mi>I</m:mi><m:mtext>&#8195; where &#8195;</m:mtext><m:mi>A</m:mi><m:mo>=</m:mo><m:msup><m:mi>A</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup>
</m:math></td><td class="formula2"/></tr></table></div>

the routine finds the <m:math><m:mi>m</m:mi></m:math>&#160;eigenvalues of largest absolute magnitude for the standard symmetric eigenvalue problem

<div class="formula-eqn"><a name="eqn3" id="eqn3"/><table class="formula-eqn"><tr><td class="formula-eqn"><m:math display="block">
<m:mi>A</m:mi><m:mi>x</m:mi><m:mo>=</m:mo><m:mi>&#955;</m:mi><m:mi>x</m:mi><m:mtext>.</m:mtext>
</m:math></td><td class="formula-eqn2">
      (3)
     </td></tr></table></div>

The routine is intended for the case where <m:math><m:mi>A</m:mi></m:math>&#160;is sparse.</div><div class="paramtext">As a second example, when

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:mi>C</m:mi><m:mo>=</m:mo><m:msup><m:mi>B</m:mi><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow></m:msup><m:mi>A</m:mi>
</m:math></td><td class="formula2"/></tr></table></div>

where

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:mi>A</m:mi><m:mo>=</m:mo><m:msup><m:mi>A</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup>
</m:math></td><td class="formula2"/></tr></table></div>

the routine finds the <m:math><m:mi>m</m:mi></m:math>&#160;eigenvalues of largest absolute magnitude for the generalized symmetric eigenvalue problem

<div class="formula-eqn"><a name="eqn4" id="eqn4"/><table class="formula-eqn"><tr><td class="formula-eqn"><m:math display="block">
<m:mi>A</m:mi><m:mi>x</m:mi><m:mo>=</m:mo><m:mi>&#955;</m:mi><m:mi>B</m:mi><m:mi>x</m:mi><m:mtext>.</m:mtext>
</m:math></td><td class="formula-eqn2">
      (4)
     </td></tr></table></div>

The routine is intended for the case where <m:math><m:mi>A</m:mi></m:math>&#160;and <m:math><m:mi>B</m:mi></m:math>&#160;are sparse.</div><div class="paramtext">The routine does not require <m:math><m:mi>C</m:mi></m:math>&#160;explicitly, but <m:math><m:mi>C</m:mi></m:math>&#160;is specified via <a class="arg" href="#IMAGE">IMAGE</a> which, given an <m:math><m:mi>n</m:mi></m:math>&#160;element vector <m:math><m:mi>z</m:mi></m:math>, computes the image <m:math><m:mi>w</m:mi></m:math>&#160;given by

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:mi>w</m:mi><m:mo>=</m:mo><m:mi>C</m:mi><m:mi>z</m:mi><m:mtext>.</m:mtext>
</m:math></td><td class="formula2"/></tr></table></div>

For instance, in the above example, where <m:math><m:mi>C</m:mi><m:mo>=</m:mo><m:msup><m:mi>B</m:mi><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow></m:msup><m:mi>A</m:mi></m:math>, <a class="arg" href="#IMAGE">IMAGE</a> will need to solve the positive-definite system of equations <m:math><m:mi>B</m:mi><m:mi>w</m:mi><m:mo>=</m:mo><m:mi>A</m:mi><m:mi>z</m:mi></m:math>&#160;for <m:math><m:mi>w</m:mi></m:math>.</div><div class="paramtext">To find the <m:math><m:mi>m</m:mi></m:math>&#160;eigenvalues of smallest absolute magnitude of  <a class="eqn" href="#eqn3">(3)</a> we can choose <m:math><m:mi>C</m:mi><m:mo>=</m:mo><m:msup><m:mi>A</m:mi><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow></m:msup></m:math>&#160;and hence find the reciprocals of the required eigenvalues, so that <a class="arg" href="#IMAGE">IMAGE</a> will need to solve <m:math><m:mi>A</m:mi><m:mi>w</m:mi><m:mo>=</m:mo><m:mi>z</m:mi></m:math>&#160;for <m:math><m:mi>w</m:mi></m:math>, and correspondingly for  <a class="eqn" href="#eqn4">(4)</a> we can choose <m:math><m:mi>C</m:mi><m:mo>=</m:mo><m:msup><m:mi>A</m:mi><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow></m:msup><m:mi>B</m:mi></m:math>&#160;and solve <m:math><m:mi>A</m:mi><m:mi>w</m:mi><m:mo>=</m:mo><m:mi>B</m:mi><m:mi>z</m:mi></m:math>&#160;for <m:math><m:mi>w</m:mi></m:math>.</div><div class="paramtext">A table of examples of choice of <a class="arg" href="#IMAGE">IMAGE</a> is given in <a class="table" href="#table1">Table 1</a>.  It should be remembered that the routine also returns the corresponding eigenvectors and that <m:math><m:mi>B</m:mi></m:math>&#160;is positive-definite.  Throughout  <m:math><m:mi>A</m:mi></m:math>&#160;is assumed to be symmetric and, where necessary,  nonsingularity is also assumed.
<div class="tablediv"><a name="table1" id="table1"/><table class="standard" border="3" cellpadding="2">
  
  
  
  
  
  <tbody>
   <tr>
    <td class="libdoc" valign="top" align="center"><b>Eigenvalues<br/>Required</b></td>
    <td class="libdoc" valign="top" align="center" colspan="3"><b>Problem</b></td>
   </tr><tr>
    <td class="libdoc" valign="top" align="left">&#160;</td>
    <td class="libdoc" valign="top" align="left"><m:math><m:mi>A</m:mi><m:mi>x</m:mi><m:mo>=</m:mo><m:mi>&#955;</m:mi><m:mi>x</m:mi>  <m:mfenced separators=""><m:mi>B</m:mi><m:mo>=</m:mo><m:mi>I</m:mi></m:mfenced></m:math></td>
    <td class="libdoc" valign="top" align="left"><m:math><m:mi>A</m:mi><m:mi>x</m:mi><m:mo>=</m:mo><m:mi>&#955;</m:mi><m:mi>B</m:mi><m:mi>x</m:mi></m:math></td>
    <td class="libdoc" valign="top" align="left"><m:math><m:mi>A</m:mi><m:mi>B</m:mi><m:mi>x</m:mi><m:mo>=</m:mo><m:mi>&#955;</m:mi><m:mi>x</m:mi></m:math></td>
   </tr><tr>
    <td class="libdoc" valign="top" align="left">Largest</td>
    <td class="libdoc" valign="top" align="left">Compute <m:math><m:mi>w</m:mi><m:mo>=</m:mo><m:mi>A</m:mi><m:mi>z</m:mi></m:math></td>
    <td class="libdoc" valign="top" align="left">Solve <m:math><m:mi>B</m:mi><m:mi>w</m:mi><m:mo>=</m:mo><m:mi>A</m:mi><m:mi>z</m:mi></m:math></td>
    <td class="libdoc" valign="top" align="left">Compute <m:math><m:mi>w</m:mi><m:mo>=</m:mo><m:mrow><m:mi>A</m:mi><m:mi>B</m:mi><m:mi>z</m:mi></m:mrow></m:math></td>
   </tr><tr>
    <td class="libdoc" valign="top" align="left">Smallest (Find <m:math><m:mn>1</m:mn><m:mo>/</m:mo><m:mi>&#955;</m:mi></m:math>)</td>
    <td class="libdoc" valign="top" align="left">Solve <m:math><m:mi>A</m:mi><m:mi>w</m:mi><m:mo>=</m:mo><m:mi>z</m:mi></m:math></td>
    <td class="libdoc" valign="top" align="left">Solve <m:math><m:mi>A</m:mi><m:mi>w</m:mi><m:mo>=</m:mo><m:mi>B</m:mi><m:mi>z</m:mi></m:math></td>
    <td class="libdoc" valign="top" align="left">Solve <m:math><m:mi>A</m:mi><m:mi>v</m:mi><m:mo>=</m:mo><m:mi>z</m:mi></m:math>, <m:math><m:mi>B</m:mi><m:mi>w</m:mi><m:mo>=</m:mo><m:mi>v</m:mi></m:math></td>
   </tr><tr>
    <td class="libdoc" valign="top" align="left">Furthest from <m:math><m:mi>&#963;</m:mi></m:math>&#160;<br/>
(Find <m:math><m:mi>&#955;</m:mi><m:mo>-</m:mo><m:mi>&#963;</m:mi></m:math>)</td>
    <td class="libdoc" valign="top" align="left">Compute <br/>
<m:math><m:mi>w</m:mi><m:mo>=</m:mo><m:mfenced separators=""><m:mi>A</m:mi><m:mo>-</m:mo><m:mi>&#963;</m:mi><m:mi>I</m:mi></m:mfenced><m:mi>z</m:mi></m:math></td>
    <td class="libdoc" valign="top" align="left">Solve <m:math><m:mi>B</m:mi><m:mi>w</m:mi><m:mo>=</m:mo><m:mfenced separators=""><m:mi>A</m:mi><m:mo>-</m:mo><m:mi>&#963;</m:mi><m:mi>B</m:mi></m:mfenced><m:mi>z</m:mi></m:math></td>
    <td class="libdoc" valign="top" align="left">Compute <br/>
<m:math><m:mi>w</m:mi><m:mo>=</m:mo><m:mfenced separators=""><m:mi>A</m:mi><m:mi>B</m:mi><m:mo>-</m:mo><m:mi>&#963;</m:mi><m:mi>I</m:mi></m:mfenced><m:mi>z</m:mi></m:math></td>
   </tr><tr>
    <td class="libdoc" valign="top" align="left">Closest to <m:math><m:mi>&#963;</m:mi></m:math>&#160;<br/>
(Find <m:math><m:mn>1</m:mn><m:mo>/</m:mo><m:mfenced separators=""><m:mi>&#955;</m:mi><m:mo>-</m:mo><m:mi>&#963;</m:mi></m:mfenced></m:math>)</td>
    <td class="libdoc" valign="top" align="left">Solve <m:math><m:mfenced separators=""><m:mi>A</m:mi><m:mo>-</m:mo><m:mi>&#963;</m:mi><m:mi>I</m:mi></m:mfenced><m:mi>w</m:mi><m:mo>=</m:mo><m:mi>z</m:mi></m:math></td>
    <td class="libdoc" valign="top" align="left">Solve <m:math><m:mfenced separators=""><m:mi>A</m:mi><m:mo>-</m:mo><m:mi>&#963;</m:mi><m:mi>B</m:mi></m:mfenced><m:mi>w</m:mi><m:mo>=</m:mo><m:mi>B</m:mi><m:mi>z</m:mi></m:math></td>
    <td class="libdoc" valign="top" align="left">Solve <m:math><m:mfenced separators=""><m:mi>A</m:mi><m:mi>B</m:mi><m:mo>-</m:mo><m:mi>&#963;</m:mi><m:mi>I</m:mi></m:mfenced><m:mi>w</m:mi><m:mo>=</m:mo><m:mi>z</m:mi></m:math></td>
   </tr>
  </tbody>
 </table><div class="caption"><b>Table 1</b><br/>The Requirement of <a class="arg" href="#IMAGE">IMAGE</a> for Various Problems.</div></div>
</div><div class="paramtext">The matrix <m:math><m:mi>B</m:mi></m:math>&#160;also need not be supplied explicitly, but is specified via <a class="arg" href="#DOT">DOT</a> which, given <m:math><m:mi>n</m:mi></m:math>&#160;element vectors <m:math><m:mi>z</m:mi></m:math>&#160;and <m:math><m:mi>w</m:mi></m:math>, computes the generalized dot product <m:math><m:msup><m:mi>w</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>B</m:mi><m:mi>z</m:mi></m:math>.</div><div class="paramtext">F02FJF is based upon routine SIMITZ (see <a class="ref" href="#ref110">Nikolai (1979)</a>), which is itself a derivative of the Algol procedure ritzit (see <a class="ref" href="#ref113">Rutishauser (1970)</a>), and uses the method of simultaneous (subspace) iteration.  (See <a class="ref" href="#ref111">Parlett (1998)</a> for a description, analysis and advice on the use of the method.)</div><div class="paramtext">The routine performs simultaneous iteration on <m:math><m:mi>k</m:mi><m:mo>&gt;</m:mo><m:mi>m</m:mi></m:math>&#160;vectors.  Initial estimates to <m:math><m:mi>p</m:mi><m:mo>&#8804;</m:mo><m:mi>k</m:mi></m:math>&#160;eigenvectors, corresponding to the <m:math><m:mi>p</m:mi></m:math>&#160;eigenvalues of <m:math><m:mi>C</m:mi></m:math>&#160;of largest absolute value, may be supplied to F02FJF.  When possible  <m:math><m:mi>k</m:mi></m:math>&#160;should be chosen so that the <m:math><m:mi>k</m:mi></m:math>th eigenvalue is not too close to the <m:math><m:mi>m</m:mi></m:math>&#160;required eigenvalues, but if  <m:math><m:mi>k</m:mi></m:math>&#160;is initially chosen too small then F02FJF  may be re-entered, supplying approximations to the <m:math><m:mi>k</m:mi></m:math>&#160;eigenvectors found so far and with <m:math><m:mi>k</m:mi></m:math>&#160;then increased.</div><div class="paramtext">At each major iteration F02FJF solves an <m:math><m:mi>r</m:mi></m:math>&#160;by <m:math><m:mi>r</m:mi></m:math>&#160;(<m:math><m:mi>r</m:mi><m:mo>&#8804;</m:mo><m:mi>k</m:mi></m:math>) eigenvalue sub-problem in order to obtain an approximation to the eigenvalues for which convergence has not yet occurred.  This approximation is refined by Chebyshev acceleration.</div><h2 class="standard"><a class="sec" name="references" id="references"/>4&#160;&#160;References</h2><div class="paramtext"><a name="ref110" id="ref110"/>Nikolai P J (1979)  Algorithm 538: Eigenvectors and eigenvalues of real generalized symmetric matrices by simultaneous iteration <i>ACM Trans. Math. Software</i> <b>5</b> 118&#8211;125 </div>
<div class="paramtext"><a name="ref111" id="ref111"/>Parlett B N (1998)  <i>The Symmetric Eigenvalue Problem</i> SIAM, Philadelphia </div>
<div class="paramtext"><a name="ref112" id="ref112"/>Rutishauser H (1969)  Computational aspects of F L Bauer's simultaneous iteration method <i>Numer. Math.</i> <b>13</b> 4&#8211;13 </div>
<div class="paramtext"><a name="ref113" id="ref113"/>Rutishauser H (1970)  Simultaneous iteration method for symmetric matrices <i>Numer. Math.</i> <b>16</b> 205&#8211;223 </div><h2 class="standard"><a class="sec" name="parameters" id="parameters"/>5&#160;&#160;Parameters</h2>
<dl><dt class="paramhead"><a name="N" id="N"/>1: &#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 order of the matrix <m:math><m:mi>C</m:mi></m:math>.</div><div class="paramtext"><i>Constraint</i>:
  <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>&#8805;</m:mo><m:mn>1</m:mn></m:math>.
</div></dd><dt class="paramhead"><a name="M" id="M"/>2: &#160;&#160;&#8194; M &#8211; INTEGER<span class="pclass">Input/Output</span></dt><dd><div class="paramtext"><i>On entry</i>: <m:math><m:mi>m</m:mi></m:math>, the number of eigenvalues required.</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>1</m:mn></m:math>.
</div>
<div class="paramtext"><i>On exit</i>: <m:math><m:msup><m:mi>m</m:mi><m:mo>&#8242;</m:mo></m:msup></m:math>, the number of eigenvalues actually found. It is equal to <m:math><m:mi>m</m:mi></m:math>&#160;if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#errors"><m:mn mathcolor="#003399" mathvariant="bold">0</m:mn></m:maction></m:math>&#160;on exit, and is less than <m:math><m:mi>m</m:mi></m:math>&#160;if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFeq2"><m:mn mathcolor="#003399" mathvariant="bold">2</m:mn></m:maction></m:math>, <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFeq3"><m:mn mathcolor="#003399" mathvariant="bold">3</m:mn></m:maction></m:math>&#160;or <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFeq4"><m:mn mathcolor="#003399" mathvariant="bold">4</m:mn></m:maction></m:math>. See <a class="sec" href="#errors">Sections 6</a> and <a class="sec" href="#fcomments">8</a> for further information.</div></dd><dt class="paramhead"><a name="K" id="K"/>3: &#160;&#160;&#8194; K &#8211; INTEGER<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: 


the number of simultaneous iteration vectors to be used. Too small a value of <a class="arg" href="#K">K</a> may inhibit convergence, while a larger value of <a class="arg" href="#K">K</a> incurs additional storage and additional work per iteration.</div>
<div class="paramtext"><i>Suggested value</i>:
  <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#K"><m:mi mathcolor="#EE0000" mathvariant="bold">K</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:mo>+</m:mo><m:mn>4</m:mn></m:math>&#160;will often be a reasonable choice in the absence of better information.

</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>&lt;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#K"><m:mi mathcolor="#EE0000" mathvariant="bold">K</m:mi></m:maction><m:mo>&#8804;</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>.
</div></dd><dt class="paramhead"><a name="NOITS" id="NOITS"/>4: &#160;&#160;&#8194; NOITS &#8211; INTEGER<span class="pclass">Input/Output</span></dt><dd><div class="paramtext"><i>On entry</i>: the maximum number of major iterations (eigenvalue sub-problems) to be performed. If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NOITS"><m:mi mathcolor="#EE0000" mathvariant="bold">NOITS</m:mi></m:maction><m:mo>&#8804;</m:mo><m:mn>0</m:mn></m:math>, the value <m:math><m:mn>100</m:mn></m:math>&#160;is used in place of <a class="arg" href="#NOITS">NOITS</a>.</div>
<div class="paramtext"><i>On exit</i>: the number of iterations actually performed.</div></dd><dt class="paramhead"><a name="TOL" id="TOL"/>5: &#160;&#160;&#8194; TOL &#8211; <span class="bitalic">double precision</span><span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: a relative tolerance to be used in accepting eigenvalues and eigenvectors. If the eigenvalues are required to about <m:math><m:mi>t</m:mi></m:math>&#160;significant figures, <a class="arg" href="#TOL">TOL</a> should be set to about <m:math><m:msup><m:mn>10</m:mn><m:mrow><m:mo>-</m:mo><m:mi>t</m:mi></m:mrow></m:msup></m:math>. <m:math><m:msub><m:mi>d</m:mi><m:mi>i</m:mi></m:msub></m:math>&#160;is accepted as an eigenvalue as soon as two successive approximations to <m:math><m:msub><m:mi>d</m:mi><m:mi>i</m:mi></m:msub></m:math>&#160;differ by less than <m:math><m:mfenced separators=""><m:mfenced open="|" close="|" separators=""><m:msub><m:mover><m:mi>d</m:mi><m:mo>~</m:mo></m:mover><m:mi>i</m:mi></m:msub></m:mfenced><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#TOL"><m:mi mathcolor="#EE0000" mathvariant="bold">TOL</m:mi></m:maction></m:mfenced><m:mo>/</m:mo><m:mn>10</m:mn></m:math>, where <m:math><m:msub><m:mover><m:mi>d</m:mi><m:mo>~</m:mo></m:mover><m:mi>i</m:mi></m:msub></m:math>&#160;is the latest approximation to <m:math><m:msub><m:mi>d</m:mi><m:mi>i</m:mi></m:msub></m:math>. Once an eigenvalue has been accepted, an eigenvector is accepted as soon as <m:math><m:mfenced separators=""><m:msub><m:mi>d</m:mi><m:mi>i</m:mi></m:msub><m:msub><m:mi>f</m:mi><m:mi>i</m:mi></m:msub></m:mfenced><m:mo>/</m:mo><m:mfenced separators=""><m:msub><m:mi>d</m:mi><m:mi>i</m:mi></m:msub><m:mo>-</m:mo><m:msub><m:mi>d</m:mi><m:mi>k</m:mi></m:msub></m:mfenced><m:mo>&lt;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#TOL"><m:mi mathcolor="#EE0000" mathvariant="bold">TOL</m:mi></m:maction></m:math>, where <m:math><m:msub><m:mi>f</m:mi><m:mi>i</m:mi></m:msub></m:math>&#160;is the normalized residual of the current approximation to the eigenvector (see <a class="sec" href="#fcomments">Section 8</a> for further information). The values of the <m:math><m:msub><m:mi>f</m:mi><m:mi>i</m:mi></m:msub></m:math>&#160;and <m:math><m:msub><m:mi>d</m:mi><m:mi>i</m:mi></m:msub></m:math>&#160;can be printed from <a class="arg" href="#MONIT">MONIT</a>. If <a class="arg" href="#TOL">TOL</a> is supplied outside the range (<m:math><m:mi>&#949;</m:mi><m:mo>,</m:mo><m:mn>1.0</m:mn></m:math>), where <m:math><m:mi>&#949;</m:mi></m:math>&#160;is the <span class="bitalic">machine precision</span>, the value <m:math><m:mi>&#949;</m:mi></m:math>&#160;is used in place of <a class="arg" href="#TOL">TOL</a>.</div></dd><dt class="paramhead"><a name="DOT" id="DOT"/>6: &#160;&#160;&#8194; DOT &#8211; <span class="bitalic">double precision</span> FUNCTION, supplied by the user.<span class="pclass">External Procedure</span></dt><dd><div class="paramtext"><a class="arg" href="#DOT">DOT</a> must return the value <m:math><m:msup><m:mi>w</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>B</m:mi><m:mi>z</m:mi></m:math>&#160;for given vectors <m:math><m:mi>w</m:mi></m:math>&#160;and <m:math><m:mi>z</m:mi></m:math>. For the standard eigenvalue problem, where <m:math><m:mi>B</m:mi><m:mo>=</m:mo><m:mi>I</m:mi></m:math>, <a class="arg" href="#DOT">DOT</a> must return the dot product <m:math><m:msup><m:mi>w</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>z</m:mi></m:math>.</div><div class="paramtext"><a class="arg" href="#DOT">DOT</a> is called from F02FJF with the parameters <a class="arg" href="../F02/f02fjf.xml#DOT_RUSER">RUSER</a>, <a class="arg" href="../F02/f02fjf.xml#DOT_LRUSER">LRUSER</a>, <a class="arg" href="../F02/f02fjf.xml#DOT_IUSER">IUSER</a> and <a class="arg" href="../F02/f02fjf.xml#DOT_LIUSER">LIUSER</a> as supplied to F02FJF. You are free to use the arrays <a class="arg" href="../F02/f02fjf.xml#DOT_RUSER">RUSER</a> and <a class="arg" href="../F02/f02fjf.xml#DOT_IUSER">IUSER</a> to supply information to <a class="arg" href="#DOT">DOT</a> and to <a class="arg" href="#IMAGE">IMAGE</a> as an alternative to using COMMON global variables.</div><div class="subprog">
<div class="paramtext">The specification of <a class="arg" href="#DOT">DOT</a> is:</div><table class="fspec"><tr><td class="tdfspec1"><b><i>double&#160;precision</i></b>&#160;FUNCTION&#160;DOT&#160;(</td><td class="tdfspec2"><a class="arg" href="../F02/f02fjf.xml#DOT_IFLAG">IFLAG</a>, <a class="arg" href="../F02/f02fjf.xml#DOT_N">N</a>, <a class="arg" href="../F02/f02fjf.xml#DOT_Z">Z</a>, <a class="arg" href="../F02/f02fjf.xml#DOT_W">W</a>, <a class="arg" href="../F02/f02fjf.xml#DOT_RUSER">RUSER</a>, <a class="arg" href="../F02/f02fjf.xml#DOT_LRUSER">LRUSER</a>, <a class="arg" href="../F02/f02fjf.xml#DOT_IUSER">IUSER</a>, <a class="arg" href="../F02/f02fjf.xml#DOT_LIUSER">LIUSER</a>)</td></tr><tr><td class="tdfspec1">INTEGER</td><td class="tdfspec2">IFLAG, N, LRUSER, IUSER(LIUSER), LIUSER</td></tr><tr><td class="tdfspec1"><b><i>double&#160;precision</i></b></td><td class="tdfspec2">Z(N), W(N), RUSER(LRUSER)</td></tr></table>
<dl><dt class="paramhead"><a name="DOT_IFLAG" id="DOT_IFLAG"/>1: &#160;&#160;&#8194; IFLAG &#8211; INTEGER<span class="pclass">Input/Output</span></dt><dd><div class="paramtext"><i>On entry</i>: is always non-negative.</div>
<div class="paramtext"><i>On exit</i>: may be used as a flag to indicate a failure in the computation of <m:math><m:msup><m:mi>w</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>B</m:mi><m:mi>z</m:mi></m:math>. If <a class="arg" href="../F02/f02fjf.xml#DOT_IFLAG">IFLAG</a> is negative on exit from <a class="arg" href="#DOT">DOT</a>, F02FJF will exit immediately with <a class="arg" href="#IFAIL">IFAIL</a> set to <a class="arg" href="../F02/f02fjf.xml#DOT_IFLAG">IFLAG</a>. Note that in this case <a class="arg" href="#DOT">DOT</a> must still be assigned a value.</div></dd><dt class="paramhead"><a name="DOT_N" id="DOT_N"/>2: &#160;&#160;&#8194; N &#8211; INTEGER<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: the number of elements in the vectors <m:math><m:mi>z</m:mi></m:math>&#160;and <m:math><m:mi>w</m:mi></m:math>&#160;and the order of the matrix <m:math><m:mi>B</m:mi></m:math>.</div></dd><dt class="paramhead"><a name="DOT_Z" id="DOT_Z"/>3: &#160;&#160;&#8194; Z(<a class="arg" href="../F02/f02fjf.xml#DOT_N">N</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: the vector <m:math><m:mi>z</m:mi></m:math>&#160;for which <m:math><m:msup><m:mi>w</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>B</m:mi><m:mi>z</m:mi></m:math>&#160;is required.</div></dd><dt class="paramhead"><a name="DOT_W" id="DOT_W"/>4: &#160;&#160;&#8194; W(<a class="arg" href="../F02/f02fjf.xml#DOT_N">N</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: the vector <m:math><m:mi>w</m:mi></m:math>&#160;for which <m:math><m:msup><m:mi>w</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>B</m:mi><m:mi>z</m:mi></m:math>&#160;is required.</div></dd><dt class="paramhead"><a name="DOT_RUSER" id="DOT_RUSER"/>5: &#160;&#160;&#8194; RUSER(<a class="arg" href="../F02/f02fjf.xml#DOT_LRUSER">LRUSER</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">User Workspace</span></dt><dt class="paramhead"><a name="DOT_LRUSER" id="DOT_LRUSER"/>6: &#160;&#160;&#8194; LRUSER &#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="../F02/f02fjf.xml#DOT_RUSER">RUSER</a> as declared in the (sub)program from which F02FJF is called.</div>
</dd><dt class="paramhead"><a name="DOT_IUSER" id="DOT_IUSER"/>7: &#160;&#160;&#8194; IUSER(<a class="arg" href="../F02/f02fjf.xml#DOT_LIUSER">LIUSER</a>) &#8211; INTEGER array<span class="pclass">User Workspace</span></dt><dt class="paramhead"><a name="DOT_LIUSER" id="DOT_LIUSER"/>8: &#160;&#160;&#8194; LIUSER &#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="../F02/f02fjf.xml#DOT_IUSER">IUSER</a> as declared in the (sub)program from which F02FJF is called.</div>
</dd></dl>
</div>
<div class="paramtext"><a class="arg" href="#DOT">DOT</a> must be declared as EXTERNAL in the (sub)program from which F02FJF is called. Parameters denoted as <span class="italic">Input</span>  must <b>not</b>  be changed by this procedure.</div>
</dd><dt class="paramhead"><a name="IMAGE" id="IMAGE"/>7: &#160;&#160;&#8194; IMAGE &#8211; SUBROUTINE, supplied by the user.<span class="pclass">External Procedure</span></dt><dd><div class="paramtext"><a class="arg" href="#IMAGE">IMAGE</a> must return the vector <m:math><m:mi>w</m:mi><m:mo>=</m:mo><m:mi>C</m:mi><m:mi>z</m:mi></m:math>&#160;for a given vector <m:math><m:mi>z</m:mi></m:math>.</div><div class="paramtext"><a class="arg" href="#IMAGE">IMAGE</a> is called from F02FJF with the parameters <a class="arg" href="../F02/f02fjf.xml#IMAGE_RUSER">RUSER</a>, <a class="arg" href="../F02/f02fjf.xml#IMAGE_LRUSER">LRUSER</a>, <a class="arg" href="../F02/f02fjf.xml#IMAGE_IUSER">IUSER</a> and <a class="arg" href="../F02/f02fjf.xml#IMAGE_LIUSER">LIUSER</a> as supplied to F02FJF. You are free to use the arrays <a class="arg" href="../F02/f02fjf.xml#IMAGE_RUSER">RUSER</a> and <a class="arg" href="../F02/f02fjf.xml#IMAGE_IUSER">IUSER</a> to supply information to <a class="arg" href="#IMAGE">IMAGE</a> and <a class="arg" href="#DOT">DOT</a> as an alternative to using COMMON global variables.</div><div class="subprog">
<div class="paramtext">The specification of <a class="arg" href="#IMAGE">IMAGE</a> is:</div><table class="fspec"><tr><td class="tdfspec1">SUBROUTINE&#160;IMAGE&#160;(</td><td class="tdfspec2"><a class="arg" href="../F02/f02fjf.xml#IMAGE_IFLAG">IFLAG</a>, <a class="arg" href="../F02/f02fjf.xml#IMAGE_N">N</a>, <a class="arg" href="../F02/f02fjf.xml#IMAGE_Z">Z</a>, <a class="arg" href="../F02/f02fjf.xml#IMAGE_W">W</a>, <a class="arg" href="../F02/f02fjf.xml#IMAGE_RUSER">RUSER</a>, <a class="arg" href="../F02/f02fjf.xml#IMAGE_LRUSER">LRUSER</a>, <a class="arg" href="../F02/f02fjf.xml#IMAGE_IUSER">IUSER</a>, <a class="arg" href="../F02/f02fjf.xml#IMAGE_LIUSER">LIUSER</a>)</td></tr><tr><td class="tdfspec1">INTEGER</td><td class="tdfspec2">IFLAG, N, LRUSER, IUSER(LIUSER), LIUSER</td></tr><tr><td class="tdfspec1"><b><i>double&#160;precision</i></b></td><td class="tdfspec2">Z(N), W(N), RUSER(LRUSER)</td></tr></table>
<dl><dt class="paramhead"><a name="IMAGE_IFLAG" id="IMAGE_IFLAG"/>1: &#160;&#160;&#8194; IFLAG &#8211; INTEGER<span class="pclass">Input/Output</span></dt><dd><div class="paramtext"><i>On entry</i>: is always non-negative.</div>
<div class="paramtext"><i>On exit</i>: may be used as a flag to indicate a failure in the computation of <m:math><m:mi>w</m:mi></m:math>. If <a class="arg" href="../F02/f02fjf.xml#IMAGE_IFLAG">IFLAG</a> is negative on exit from <a class="arg" href="#IMAGE">IMAGE</a>, F02FJF will exit immediately with <a class="arg" href="#IFAIL">IFAIL</a> set to <a class="arg" href="../F02/f02fjf.xml#IMAGE_IFLAG">IFLAG</a>.</div></dd><dt class="paramhead"><a name="IMAGE_N" id="IMAGE_N"/>2: &#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 elements in the vectors <m:math><m:mi>w</m:mi></m:math>&#160;and <m:math><m:mi>z</m:mi></m:math>, and the order of the matrix <m:math><m:mi>C</m:mi></m:math>.</div></dd><dt class="paramhead"><a name="IMAGE_Z" id="IMAGE_Z"/>3: &#160;&#160;&#8194; Z(<a class="arg" href="../F02/f02fjf.xml#IMAGE_N">N</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: the vector <m:math><m:mi>z</m:mi></m:math>&#160;for which <m:math><m:mi>C</m:mi><m:mi>z</m:mi></m:math>&#160;is required.</div></dd><dt class="paramhead"><a name="IMAGE_W" id="IMAGE_W"/>4: &#160;&#160;&#8194; W(<a class="arg" href="../F02/f02fjf.xml#IMAGE_N">N</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Output</span></dt><dd><div class="paramtext"><i>On exit</i>: the vector <m:math><m:mi>w</m:mi><m:mo>=</m:mo><m:mi>C</m:mi><m:mi>z</m:mi></m:math>.</div></dd><dt class="paramhead"><a name="IMAGE_RUSER" id="IMAGE_RUSER"/>5: &#160;&#160;&#8194; RUSER(<a class="arg" href="../F02/f02fjf.xml#IMAGE_LRUSER">LRUSER</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">User Workspace</span></dt><dt class="paramhead"><a name="IMAGE_LRUSER" id="IMAGE_LRUSER"/>6: &#160;&#160;&#8194; LRUSER &#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="../F02/f02fjf.xml#IMAGE_RUSER">RUSER</a> as declared in the (sub)program from which F02FJF is called.</div>
</dd><dt class="paramhead"><a name="IMAGE_IUSER" id="IMAGE_IUSER"/>7: &#160;&#160;&#8194; IUSER(<a class="arg" href="../F02/f02fjf.xml#IMAGE_LIUSER">LIUSER</a>) &#8211; INTEGER array<span class="pclass">User Workspace</span></dt><dt class="paramhead"><a name="IMAGE_LIUSER" id="IMAGE_LIUSER"/>8: &#160;&#160;&#8194; LIUSER &#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="../F02/f02fjf.xml#IMAGE_IUSER">IUSER</a> as declared in the (sub)program from which F02FJF is called.</div>
</dd></dl>
</div>
<div class="paramtext"><a class="arg" href="#IMAGE">IMAGE</a> must be declared as EXTERNAL in the (sub)program from which F02FJF is called. Parameters denoted as <span class="italic">Input</span>  must <b>not</b>  be changed by this procedure.</div>
</dd><dt class="paramhead"><a name="MONIT" id="MONIT"/>8: &#160;&#160;&#8194; MONIT &#8211; SUBROUTINE, supplied by the NAG Library or the user.<span class="pclass">External Procedure</span></dt><dd><div class="paramtext"><a class="arg" href="#MONIT">MONIT</a> is used to monitor the progress of F02FJF. <a class="arg" href="#MONIT">MONIT</a> may be the dummy subroutine F02FJZ if no monitoring is actually required. (F02FJZ is included in the NAG Library.)  <a class="arg" href="#MONIT">MONIT</a> is called after the solution of each eigenvalue sub-problem and also just prior to return from F02FJF. The parameters <a class="arg" href="../F02/f02fjf.xml#MONIT_ISTATE">ISTATE</a> and <a class="arg" href="../F02/f02fjf.xml#MONIT_NEXTIT">NEXTIT</a> allow selective printing by <a class="arg" href="#MONIT">MONIT</a>.</div><div class="subprog">
<div class="paramtext">The specification of <a class="arg" href="#MONIT">MONIT</a> is:</div><table class="fspec"><tr><td class="tdfspec1">SUBROUTINE&#160;MONIT&#160;(</td><td class="tdfspec2"><a class="arg" href="../F02/f02fjf.xml#MONIT_ISTATE">ISTATE</a>, <a class="arg" href="../F02/f02fjf.xml#MONIT_NEXTIT">NEXTIT</a>, <a class="arg" href="../F02/f02fjf.xml#MONIT_NEVALS">NEVALS</a>, <a class="arg" href="../F02/f02fjf.xml#MONIT_NEVECS">NEVECS</a>, <a class="arg" href="../F02/f02fjf.xml#MONIT_K">K</a>, <a class="arg" href="../F02/f02fjf.xml#MONIT_F">F</a>, <a class="arg" href="../F02/f02fjf.xml#MONIT_D">D</a>)</td></tr><tr><td class="tdfspec1">INTEGER</td><td class="tdfspec2">ISTATE, NEXTIT, NEVALS, NEVECS, K</td></tr><tr><td class="tdfspec1"><b><i>double&#160;precision</i></b></td><td class="tdfspec2">F(K), D(K)</td></tr></table>
<dl><dt class="paramhead"><a name="MONIT_ISTATE" id="MONIT_ISTATE"/>1: &#160;&#160;&#8194; ISTATE &#8211; INTEGER<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: specifies the state of F02FJF.

<dl>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#MONIT_ISTATE"><m:mi mathcolor="#EE0000" mathvariant="bold">ISTATE</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn></m:math></dt>
<dd>No eigenvalue or eigenvector has just been accepted.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#MONIT_ISTATE"><m:mi mathcolor="#EE0000" mathvariant="bold">ISTATE</m:mi></m:maction><m:mo>=</m:mo><m:mn>1</m:mn></m:math></dt>
<dd>One or more eigenvalues have been accepted since the last call to <a class="arg" href="#MONIT">MONIT</a>.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#MONIT_ISTATE"><m:mi mathcolor="#EE0000" mathvariant="bold">ISTATE</m:mi></m:maction><m:mo>=</m:mo><m:mn>2</m:mn></m:math></dt>
<dd>One or more eigenvectors have been accepted since the last call to <a class="arg" href="#MONIT">MONIT</a>.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#MONIT_ISTATE"><m:mi mathcolor="#EE0000" mathvariant="bold">ISTATE</m:mi></m:maction><m:mo>=</m:mo><m:mn>3</m:mn></m:math></dt>
<dd>One or more eigenvalues and eigenvectors have been accepted since the last call to <a class="arg" href="#MONIT">MONIT</a>.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#MONIT_ISTATE"><m:mi mathcolor="#EE0000" mathvariant="bold">ISTATE</m:mi></m:maction><m:mo>=</m:mo><m:mn>4</m:mn></m:math></dt>
<dd>Return from F02FJF is about to occur.</dd></dl>
</div></dd><dt class="paramhead"><a name="MONIT_NEXTIT" id="MONIT_NEXTIT"/>2: &#160;&#160;&#8194; NEXTIT &#8211; INTEGER<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: the number of the next iteration.</div></dd><dt class="paramhead"><a name="MONIT_NEVALS" id="MONIT_NEVALS"/>3: &#160;&#160;&#8194; NEVALS &#8211; INTEGER<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: the number of eigenvalues accepted so far.</div></dd><dt class="paramhead"><a name="MONIT_NEVECS" id="MONIT_NEVECS"/>4: &#160;&#160;&#8194; NEVECS &#8211; INTEGER<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: the number of eigenvectors accepted so far.</div></dd><dt class="paramhead"><a name="MONIT_K" id="MONIT_K"/>5: &#160;&#160;&#8194; K &#8211; INTEGER<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: <m:math><m:mi>k</m:mi></m:math>, the number of simultaneous iteration vectors.</div></dd><dt class="paramhead"><a name="MONIT_F" id="MONIT_F"/>6: &#160;&#160;&#8194; F(<a class="arg" href="../F02/f02fjf.xml#MONIT_K">K</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: a vector of error quantities measuring the state of convergence of the simultaneous iteration vectors. See <a class="arg" href="#TOL">TOL</a> and <a class="sec" href="#fcomments">Section 8</a> for further details. Each element of <a class="arg" href="../F02/f02fjf.xml#MONIT_F">F</a> is initially set to the value <m:math><m:mn>4.0</m:mn></m:math>&#160;and an element remains at <m:math><m:mn>4.0</m:mn></m:math>&#160;until the corresponding vector is tested.</div></dd><dt class="paramhead"><a name="MONIT_D" id="MONIT_D"/>7: &#160;&#160;&#8194; D(<a class="arg" href="../F02/f02fjf.xml#MONIT_K">K</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#MONIT_D"><m:mi mathcolor="#EE0000" mathvariant="bold">D</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow></m:math>&#160;contains the latest approximation to the absolute value of the <m:math><m:mi>i</m:mi></m:math>th eigenvalue of <m:math><m:mi>C</m:mi></m:math>.</div></dd></dl>
</div>
<div class="paramtext"><a class="arg" href="#MONIT">MONIT</a> must be declared as EXTERNAL in the (sub)program from which F02FJF is called. Parameters denoted as <span class="italic">Input</span>  must <b>not</b>  be changed by this procedure.</div>
</dd><dt class="paramhead"><a name="NOVECS" id="NOVECS"/>9: &#160;&#160;&#8194; NOVECS &#8211; INTEGER<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: the number of approximate vectors that are being supplied in <a class="arg" href="#X">X</a>. If <a class="arg" href="#NOVECS">NOVECS</a> is outside the range <m:math><m:mfenced separators=""><m:mn>0</m:mn><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#K"><m:mi mathcolor="#EE0000" mathvariant="bold">K</m:mi></m:maction></m:mfenced></m:math>, the value <m:math><m:mn>0</m:mn></m:math>&#160;is used in place of <a class="arg" href="#NOVECS">NOVECS</a>.</div></dd><dt class="paramhead"><a name="X" id="X"/>10: &#8194; X(<a class="arg" href="#LDX">LDX</a>,<a class="arg" href="#K">K</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input/Output</span></dt><dd><div class="paramtext"><i>On entry</i>: if <m:math><m:mn>0</m:mn><m:mo>&lt;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NOVECS"><m:mi mathcolor="#EE0000" mathvariant="bold">NOVECS</m:mi></m:maction><m:mo>&#8804;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#K"><m:mi mathcolor="#EE0000" mathvariant="bold">K</m:mi></m:maction></m:math>, the first <a class="arg" href="#NOVECS">NOVECS</a> columns of <a class="arg" href="#X">X</a> must contain approximations to the eigenvectors corresponding to the <a class="arg" href="#NOVECS">NOVECS</a> eigenvalues of largest absolute value of <m:math><m:mi>C</m:mi></m:math>. Supplying approximate eigenvectors can be useful when reasonable approximations are known, or when F02FJF is being restarted with a larger value of <a class="arg" href="#K">K</a>. Otherwise it is not necessary to supply approximate vectors, as simultaneous iteration vectors will be generated randomly by F02FJF.</div>
<div class="paramtext"><i>On exit</i>: if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#errors"><m:mn mathcolor="#003399" mathvariant="bold">0</m:mn></m:maction></m:math>, <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFeq2"><m:mn mathcolor="#003399" mathvariant="bold">2</m:mn></m:maction></m:math>, <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFeq3"><m:mn mathcolor="#003399" mathvariant="bold">3</m:mn></m:maction></m:math>&#160;or <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFeq4"><m:mn mathcolor="#003399" mathvariant="bold">4</m:mn></m:maction></m:math>, the first <m:math><m:msup><m:mi>m</m:mi><m:mo>&#8242;</m:mo></m:msup></m:math>&#160;columns contain the eigenvectors corresponding to the eigenvalues returned in the first <m:math><m:msup><m:mi>m</m:mi><m:mo>&#8242;</m:mo></m:msup></m:math>&#160;elements of <a class="arg" href="#D">D</a>; and the next <m:math><m:mi>k</m:mi><m:mo>-</m:mo><m:msup><m:mi>m</m:mi><m:mo>&#8242;</m:mo></m:msup><m:mo>-</m:mo><m:mn>1</m:mn></m:math>&#160;columns contain approximations to the eigenvectors corresponding to the approximate eigenvalues returned in the next <m:math><m:mi>k</m:mi><m:mo>-</m:mo><m:msup><m:mi>m</m:mi><m:mo>&#8242;</m:mo></m:msup><m:mo>-</m:mo><m:mn>1</m:mn></m:math>&#160;elements of <a class="arg" href="#D">D</a>. Here <m:math><m:msup><m:mi>m</m:mi><m:mo>&#8242;</m:mo></m:msup></m:math>&#160;is the value returned in <a class="arg" href="#M">M</a>, the number of eigenvalues actually found. The <m:math><m:mi>k</m:mi></m:math>th column is used as workspace.</div></dd><dt class="paramhead"><a name="LDX" id="LDX"/>11: &#8194; LDX &#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="#X">X</a> as declared in the (sub)program from which F02FJF is called.</div><div class="paramtext"><i>Constraint</i>:
  <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LDX"><m:mi mathcolor="#EE0000" mathvariant="bold">LDX</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>.
</div></dd><dt class="paramhead"><a name="D" id="D"/>12: &#8194; D(<a class="arg" href="#K">K</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Output</span></dt><dd><div class="paramtext"><i>On exit</i>: if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#errors"><m:mn mathcolor="#003399" mathvariant="bold">0</m:mn></m:maction></m:math>, <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFeq2"><m:mn mathcolor="#003399" mathvariant="bold">2</m:mn></m:maction></m:math>, <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFeq3"><m:mn mathcolor="#003399" mathvariant="bold">3</m:mn></m:maction></m:math>&#160;or <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFeq4"><m:mn mathcolor="#003399" mathvariant="bold">4</m:mn></m:maction></m:math>, the first <m:math><m:msup><m:mi>m</m:mi><m:mo>&#8242;</m:mo></m:msup></m:math>&#160;elements contain the first <m:math><m:msup><m:mi>m</m:mi><m:mo>&#8242;</m:mo></m:msup></m:math>&#160;eigenvalues in decreasing order of magnitude; and the next <m:math><m:mi>k</m:mi><m:mo>-</m:mo><m:msup><m:mi>m</m:mi><m:mo>&#8242;</m:mo></m:msup><m:mo>-</m:mo><m:mn>1</m:mn></m:math>&#160;elements contain approximations to the next <m:math><m:mi>k</m:mi><m:mo>-</m:mo><m:msup><m:mi>m</m:mi><m:mo>&#8242;</m:mo></m:msup><m:mo>-</m:mo><m:mn>1</m:mn></m:math>&#160;eigenvalues. Here <m:math><m:msup><m:mi>m</m:mi><m:mo>&#8242;</m:mo></m:msup></m:math>&#160;is the value returned in <a class="arg" href="#M">M</a>, the number of eigenvalues actually found. <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#D"><m:mi mathcolor="#EE0000" mathvariant="bold">D</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>k</m:mi></m:mfenced></m:mrow></m:math>&#160;contains the value <m:math><m:mi>e</m:mi></m:math>&#160;where <m:math><m:mfenced separators=""><m:mrow><m:mo>-</m:mo><m:mi>e</m:mi></m:mrow><m:mo>,</m:mo><m:mi>e</m:mi></m:mfenced></m:math>&#160;is the latest interval over which Chebyshev acceleration is performed.</div></dd><dt class="paramhead"><a name="WORK" id="WORK"/>13: &#8194; WORK(<a class="arg" href="#LWORK">LWORK</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Workspace</span></dt><dt class="multi-paramhead"><a name="LWORK" id="LWORK"/>14: &#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 F02FJF is called.</div><div class="paramtext"><i>Constraint</i>:
  <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>3</m:mn><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#K"><m:mi mathcolor="#EE0000" mathvariant="bold">K</m:mi></m:maction><m:mo>+</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="#K"><m:mi mathcolor="#EE0000" mathvariant="bold">K</m:mi></m:maction><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#K"><m:mi mathcolor="#EE0000" mathvariant="bold">K</m:mi></m:maction></m:mrow><m:mo>,</m:mo><m:mrow><m:mn>2</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:mrow></m:mfenced></m:mrow></m:math>.
</div></dd><dt class="paramhead"><a name="RUSER" id="RUSER"/>15: &#8194; RUSER(<a class="arg" href="#LRUSER">LRUSER</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">User Workspace</span></dt><dd><div class="paramtext"><a class="arg" href="#RUSER">RUSER</a> is not used by F02FJF, but is passed directly to user-supplied subroutines <a class="arg" href="#DOT">DOT</a> and <a class="arg" href="#IMAGE">IMAGE</a> and may be used to supply information to these routines.</div></dd><dt class="paramhead"><a name="LRUSER" id="LRUSER"/>16: &#8194; LRUSER &#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="#RUSER">RUSER</a> as declared in the (sub)program from which F02FJF is called.</div><div class="paramtext"><i>Constraint</i>:
  <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LRUSER"><m:mi mathcolor="#EE0000" mathvariant="bold">LRUSER</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>1</m:mn></m:math>.
</div></dd><dt class="paramhead"><a name="IUSER" id="IUSER"/>17: &#8194; IUSER(<a class="arg" href="#LIUSER">LIUSER</a>) &#8211; INTEGER array<span class="pclass">User Workspace</span></dt><dd><div class="paramtext"><a class="arg" href="#IUSER">IUSER</a> is not used by F02FJF, but is passed directly to <a class="arg" href="#DOT">DOT</a> and <a class="arg" href="#IMAGE">IMAGE</a> and may be used to supply information to these routines.</div></dd><dt class="paramhead"><a name="LIUSER" id="LIUSER"/>18: &#8194; LIUSER &#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="#IUSER">IUSER</a> as declared in the (sub)program from which F02FJF is called.</div><div class="paramtext"><i>Constraint</i>:
  <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LIUSER"><m:mi mathcolor="#EE0000" mathvariant="bold">LIUSER</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>1</m:mn></m:math>.
</div></dd><dt class="paramhead"><a name="IFAIL" id="IFAIL"/>19: &#8194; IFAIL &#8211; INTEGER<span class="pclass">Input/Output</span></dt><dd><div class="paramtext"><i>On entry</i>: <a class="arg" href="#IFAIL">IFAIL</a> must be set to <m:math><m:mn>0</m:mn></m:math>, <m:math><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow><m:mtext>&#8203; or &#8203;</m:mtext><m:mn>1</m:mn></m:math>. If you are unfamiliar with this parameter you should refer to <a class="sec" href="../GENINT/essint.xml#library3">Section 3.3</a> in  the Essential Introduction for details.</div>
<div class="paramtext"><i>On exit</i>: <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#errors"><m:mn mathcolor="#003399" mathvariant="bold">0</m:mn></m:maction></m:math>&#160;unless the routine detects an error (see <a class="sec" href="#errors">Section 6</a>).
<div class="paramtext">For environments where it might be inappropriate to halt program execution when an error is detected, the value <m:math><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow><m:mtext>&#8203; or &#8203;</m:mtext><m:mn>1</m:mn></m:math>&#160;is recommended.  If the output of error messages is undesirable, then the value <m:math><m:mn>1</m:mn></m:math>&#160;is recommended.  Otherwise, because for this routine the values of the output parameters may be useful even if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>&#8800;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#errors"><m:mn mathcolor="#003399" mathvariant="bold">0</m:mn></m:maction></m:math>&#160;on exit, the recommended value is <m:math><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow></m:math>.  <b>When the value <m:math><m:mrow><m:mo>-</m:mo><m:mn mathvariant="bold">1</m:mn></m:mrow><m:mtext>&#8203; or &#8203;</m:mtext><m:mn>1</m:mn></m:math>&#160;is used it is essential to test the value of <a class="arg" href="#IFAIL">IFAIL</a> on exit.</b></div>
</div></dd></dl><h2 class="standard"><a class="sec" name="errors" id="errors"/>6&#160;&#160;Error Indicators and Warnings</h2>
<div class="paramtext">If on entry <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#errors"><m:mn mathcolor="#003399" mathvariant="bold">0</m:mn></m:maction></m:math>&#160;or <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#errors"><m:mn mathcolor="#003399" mathvariant="bold">-1</m:mn></m:maction></m:math>, explanatory error messages are output on the current error message unit (as defined by <a class="rout" href="../X04/x04aaf.xml">X04AAF</a>).</div><div class="paramtext">Errors or warnings detected by the routine:</div>
<dl class="ifail">
<dt class="errorhead"><a name="IFlt0" id="IFlt0"/><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>&lt;</m:mo><m:mn>0</m:mn></m:math></dt>
<dd>
<div class="paramtext">A negative value of <a class="arg" href="#IFAIL">IFAIL</a> indicates an exit from F02FJF because you have set <a class="arg" href="../F02/f02fjf.xml#DOT_IFLAG">IFLAG</a> negative in <a class="arg" href="#DOT">DOT</a> or <a class="arg" href="#IMAGE">IMAGE</a>.  The value of <a class="arg" href="#IFAIL">IFAIL</a> will be the same as your setting of <a class="arg" href="../F02/f02fjf.xml#DOT_IFLAG">IFLAG</a>.</div>
</dd>
</dl><dl class="ifail">
<dt class="errorhead"><a name="IFeq1" id="IFeq1"/><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:mn>1</m:mn></m:math></dt>
<dd>
<table class="ifail"><tr><td class="ifail1">On&#160;entry,</td><td class="ifail2-90"><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>&lt;</m:mo><m:mn>1</m:mn></m:math>,</td></tr><tr><td class="ifail1">or</td><td class="ifail2-90"><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>&lt;</m:mo><m:mn>1</m:mn></m:math>,</td></tr><tr><td class="ifail1">or</td><td class="ifail2-90"><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="#K"><m:mi mathcolor="#EE0000" mathvariant="bold">K</m:mi></m:maction></m:math>,</td></tr><tr><td class="ifail1">or</td><td class="ifail2-90"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#K"><m:mi mathcolor="#EE0000" mathvariant="bold">K</m:mi></m:maction><m:mo>&gt;</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>,</td></tr><tr><td class="ifail1">or</td><td class="ifail2-90"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LDX"><m:mi mathcolor="#EE0000" mathvariant="bold">LDX</m:mi></m:maction><m:mo>&lt;</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>,</td></tr><tr><td class="ifail1">or</td><td class="ifail2-90"><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>&lt;</m:mo><m:mn>3</m:mn><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#K"><m:mi mathcolor="#EE0000" mathvariant="bold">K</m:mi></m:maction><m:mo>+</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="#K"><m:mi mathcolor="#EE0000" mathvariant="bold">K</m:mi></m:maction><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#K"><m:mi mathcolor="#EE0000" mathvariant="bold">K</m:mi></m:maction></m:mrow><m:mo>,</m:mo><m:mrow><m:mn>2</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:mrow></m:mfenced></m:mrow></m:math>,</td></tr><tr><td class="ifail1">or</td><td class="ifail2-90"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LRUSER"><m:mi mathcolor="#EE0000" mathvariant="bold">LRUSER</m:mi></m:maction><m:mo>&lt;</m:mo><m:mn>1</m:mn></m:math>,</td></tr><tr><td class="ifail1">or</td><td class="ifail2-90"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LIUSER"><m:mi mathcolor="#EE0000" mathvariant="bold">LIUSER</m:mi></m:maction><m:mo>&lt;</m:mo><m:mn>1</m:mn></m:math>.</td></tr></table>
</dd>
</dl><dl class="ifail">
<dt class="errorhead"><a name="IFeq2" id="IFeq2"/><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:mn>2</m:mn></m:math></dt>
<dd>
<div class="paramtext">Not all the requested eigenvalues and vectors have been obtained.  Approximations to the <m:math><m:mi>r</m:mi></m:math>th eigenvalue are oscillating rapidly indicating that severe cancellation is occurring in the <m:math><m:mi>r</m:mi></m:math>th eigenvector and so <a class="arg" href="#M">M</a> is returned as <m:math><m:mfenced separators=""><m:mi>r</m:mi><m:mo>-</m:mo><m:mn>1</m:mn></m:mfenced></m:math>.  A restart with a larger value of <a class="arg" href="#K">K</a> may permit convergence.</div>
</dd>
</dl><dl class="ifail">
<dt class="errorhead"><a name="IFeq3" id="IFeq3"/><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:mn>3</m:mn></m:math></dt>
<dd>
<div class="paramtext">Not all the requested eigenvalues and vectors have been obtained.  The rate of convergence of the remaining eigenvectors suggests that more than <a class="arg" href="#NOITS">NOITS</a> iterations would be required and so the input value of <a class="arg" href="#M">M</a> has been reduced.  A restart with a larger value of <a class="arg" href="#K">K</a> may permit convergence.</div>
</dd>
</dl><dl class="ifail">
<dt class="errorhead"><a name="IFeq4" id="IFeq4"/><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:mn>4</m:mn></m:math></dt>
<dd>
<div class="paramtext">Not all the requested eigenvalues and vectors have been obtained.  <a class="arg" href="#NOITS">NOITS</a> iterations have been performed.  A restart, possibly with a larger value of <a class="arg" href="#K">K</a>, may permit convergence.</div>
</dd>
</dl><dl class="ifail">
<dt class="errorhead"><a name="IFeq5" id="IFeq5"/><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:mn>5</m:mn></m:math></dt>
<dd>
<div class="paramtext">This error is very unlikely to occur, but indicates that convergence of the eigenvalue sub-problem has not taken place.  Restarting with a different set of approximate vectors may allow convergence.  If this error occurs you should check carefully that F02FJF is being called correctly.</div>
</dd>
</dl><h2 class="standard"><a class="sec" name="accuracy" id="accuracy"/>7&#160;&#160;Accuracy</h2>
<div class="paramtext">Eigenvalues and eigenvectors will normally be computed to the accuracy requested by the parameter <a class="arg" href="#TOL">TOL</a>, but eigenvectors corresponding to small or to close eigenvalues may not always be computed to the accuracy requested by the parameter <a class="arg" href="#TOL">TOL</a>.  Use of the <a class="arg" href="#MONIT">MONIT</a> to monitor acceptance of eigenvalues and eigenvectors is recommended.</div><h2 class="standard"><a class="sec" name="fcomments" id="fcomments"/>8&#160;&#160;Further Comments</h2>
<div class="paramtext">The time taken by F02FJF will be principally determined by the time taken to solve the eigenvalue sub-problem and the time taken by <a class="arg" href="#DOT">DOT</a> and <a class="arg" href="#IMAGE">IMAGE</a>.  The time taken to solve an eigenvalue sub-problem is approximately proportional to <m:math><m:mi>n</m:mi><m:msup><m:mi>k</m:mi><m:mn>2</m:mn></m:msup></m:math>.  It is important to be aware that several calls to <a class="arg" href="#DOT">DOT</a> and <a class="arg" href="#IMAGE">IMAGE</a> may occur on each major iteration.</div><div class="paramtext">As can be seen from <a class="table" href="#table1">Table 1</a>, many applications of  F02FJF will require the <a class="arg" href="#IMAGE">IMAGE</a> to solve a system of linear equations.  For example, to find the smallest eigenvalues of  <m:math><m:mi>A</m:mi><m:mi>x</m:mi><m:mo>=</m:mo><m:mi>&#955;</m:mi>  <m:mi>B</m:mi><m:mi>x</m:mi></m:math>, <a class="arg" href="#IMAGE">IMAGE</a> needs to solve equations of the form <m:math><m:mi>A</m:mi><m:mi>w</m:mi><m:mo>=</m:mo><m:mi>B</m:mi><m:mi>z</m:mi></m:math>&#160;for <m:math><m:mi>w</m:mi></m:math>&#160;and routines from  <a class="chap" href="../F01/f01conts.xml">Chapters F01</a> and <a class="chap" href="../F04/f04conts.xml">F04</a> 

will frequently be useful in this context.  In particular, if <m:math><m:mi>A</m:mi></m:math>&#160;is a positive-definite variable band matrix, <a class="rout" href="../F04/f04mcf.xml">F04MCF</a>  may be used after <m:math><m:mi>A</m:mi></m:math>&#160;has been factorized by  <a class="rout" href="../F01/f01mcf.xml">F01MCF</a>.  Thus factorization need be performed only once prior to calling F02FJF.  An illustration of this type of use is given in the example program.</div><div class="paramtext">An approximation <m:math><m:msub><m:mover><m:mi>d</m:mi><m:mo>~</m:mo></m:mover><m:mi>h</m:mi></m:msub></m:math>, to the <m:math><m:mi>i</m:mi></m:math>th eigenvalue, is accepted as soon as <m:math><m:msub><m:mover><m:mi>d</m:mi><m:mo>~</m:mo></m:mover><m:mi>h</m:mi></m:msub></m:math>&#160;and the previous approximation differ by less than  <m:math><m:mfenced open="|" close="|" separators="">
<m:msub><m:mover><m:mi>d</m:mi><m:mo>~</m:mo></m:mover><m:mi>h</m:mi></m:msub></m:mfenced><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#TOL"><m:mi mathcolor="#EE0000" mathvariant="bold">TOL</m:mi></m:maction><m:mo>/</m:mo>
<m:mn>10</m:mn></m:math>.  Eigenvectors are accepted in groups corresponding to clusters of eigenvalues that are equal, or nearly equal, in absolute value and that have already been accepted.  If <m:math><m:msub><m:mi>d</m:mi><m:mi>r</m:mi></m:msub></m:math>&#160;is the last eigenvalue in such a group and we define the residual <m:math><m:msub><m:mi>r</m:mi><m:mi>j</m:mi></m:msub></m:math>&#160;as

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:msub><m:mi>r</m:mi><m:mi>j</m:mi></m:msub><m:mo>=</m:mo><m:mi>C</m:mi><m:msub><m:mi>x</m:mi><m:mi>j</m:mi></m:msub><m:mo>-</m:mo><m:msub><m:mi>y</m:mi><m:mi>r</m:mi></m:msub>
</m:math></td><td class="formula2"/></tr></table></div>

where <m:math><m:msub><m:mi>y</m:mi><m:mi>r</m:mi></m:msub></m:math>&#160;is the projection of <m:math><m:mi>C</m:mi><m:msub><m:mi>x</m:mi><m:mi>j</m:mi></m:msub></m:math>,  with respect to <m:math><m:mi>B</m:mi></m:math>, onto the space spanned by <m:math><m:msub><m:mi>x</m:mi><m:mn>1</m:mn></m:msub><m:mo>,</m:mo><m:msub><m:mi>x</m:mi><m:mn>2</m:mn></m:msub><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo>
<m:msub><m:mi>x</m:mi><m:mi>r</m:mi></m:msub></m:math>, and <m:math><m:msub><m:mi>x</m:mi><m:mi>j</m:mi></m:msub></m:math>&#160;is the current approximation to the <m:math><m:mi>j</m:mi></m:math>th eigenvector,  then the value <m:math><m:msub><m:mi>f</m:mi><m:mi>i</m:mi></m:msub></m:math>&#160;returned in
<a class="arg" href="#MONIT">MONIT</a> is given by

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
 <m:msub><m:mi>f</m:mi><m:mi>i</m:mi></m:msub>
 <m:mo>=</m:mo>
 <m:mi mathvariant="normal">max</m:mi><m:msub><m:mfenced open="&#8214;" close="&#8214;" separators=""><m:msub><m:mi>r</m:mi><m:mi>j</m:mi></m:msub></m:mfenced><m:mi>B</m:mi></m:msub>
 <m:mo>/</m:mo>
 <m:msub><m:mfenced open="&#8214;" close="&#8214;" separators=""><m:mi>C</m:mi><m:msub><m:mi>x</m:mi><m:mi>j</m:mi></m:msub></m:mfenced><m:mi>B</m:mi></m:msub>
 <m:mtext>&#8195;</m:mtext>  
 <m:msup><m:msub><m:mfenced open="&#8214;" close="&#8214;" separators=""><m:mi>x</m:mi></m:mfenced><m:mi>B</m:mi></m:msub><m:mn>2</m:mn></m:msup>
 <m:mo>=</m:mo>
 <m:msup><m:mi>x</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>B</m:mi><m:mi>x</m:mi>
</m:math></td><td class="formula2"/></tr></table></div>

and each vector in the group is accepted as an eigenvector if

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:mfenced separators=""><m:mfenced open="|" close="|" separators=""><m:msub><m:mi>d</m:mi><m:mi>r</m:mi></m:msub></m:mfenced> <m:msub><m:mi>f</m:mi><m:mi>r</m:mi></m:msub></m:mfenced><m:mo>/</m:mo><m:mfenced separators=""><m:mfenced open="|" close="|" separators=""><m:msub><m:mi>d</m:mi><m:mi>r</m:mi></m:msub></m:mfenced><m:mo>-</m:mo><m:mi>e</m:mi></m:mfenced><m:mo>&lt;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#TOL"><m:mi mathcolor="#EE0000" mathvariant="bold">TOL</m:mi></m:maction><m:mtext>,</m:mtext>
</m:math></td><td class="formula2"/></tr></table></div>

where <m:math><m:mi>e</m:mi></m:math>&#160;is the current approximation to  <m:math><m:mfenced open="|" close="|" separators=""><m:msub><m:mover><m:mi>d</m:mi><m:mo>~</m:mo></m:mover><m:mi>k</m:mi></m:msub></m:mfenced></m:math>.  The values of the <m:math><m:msub><m:mi>f</m:mi><m:mi>i</m:mi></m:msub></m:math>&#160;are systematically increased if the convergence criteria appear to be too strict.  See <a class="ref" href="#ref113">Rutishauser (1970)</a> for further details.</div><div class="paramtext">The algorithm implemented by F02FJF differs slightly from SIMITZ (see <a class="ref" href="#ref110">Nikolai (1979)</a>) in that the eigenvalue sub-problem is solved using the singular value decomposition of the upper triangular matrix <m:math><m:mi>R</m:mi></m:math>&#160;of the Gram&#8211;Schmidt factorization of <m:math><m:mi>C</m:mi><m:msub><m:mi>x</m:mi><m:mi>r</m:mi></m:msub></m:math>, rather than forming <m:math><m:msup><m:mi>R</m:mi><m:mi mathvariant="normal">T</m:mi></m:msup><m:mi>R</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 four eigenvalues of smallest absolute value and corresponding eigenvectors for the generalized symmetric eigenvalue problem <m:math><m:mi>A</m:mi><m:mi>x</m:mi><m:mo>=</m:mo><m:mi>&#955;</m:mi><m:mi>B</m:mi><m:mi>x</m:mi></m:math>, where <m:math><m:mi>A</m:mi></m:math>&#160;and <m:math><m:mi>B</m:mi></m:math>&#160;are the <m:math><m:mn>16</m:mn></m:math>&#160;by <m:math><m:mn>16</m:mn></m:math>&#160;matrices

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:mi>A</m:mi><m:mo>=</m:mo><m:mo>-</m:mo><m:mfrac other="small"><m:mn>1</m:mn><m:mn>4</m:mn></m:mfrac>
<m:mfenced><m:mtable columnalign="right">
  <m:mtr>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>4</m:mn></m:mrow></m:mtd>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
  </m:mtr><m:mtr>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>4</m:mn></m:mrow></m:mtd>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
  </m:mtr><m:mtr>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>4</m:mn></m:mrow></m:mtd>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
  </m:mtr><m:mtr>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>4</m:mn></m:mrow></m:mtd>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
  </m:mtr><m:mtr>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>4</m:mn></m:mrow></m:mtd>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
  </m:mtr><m:mtr>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>4</m:mn></m:mrow></m:mtd>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
  </m:mtr><m:mtr>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>4</m:mn></m:mrow></m:mtd>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
  </m:mtr><m:mtr>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>4</m:mn></m:mrow></m:mtd>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
  </m:mtr><m:mtr>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>4</m:mn></m:mrow></m:mtd>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
  </m:mtr><m:mtr>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>4</m:mn></m:mrow></m:mtd>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
  </m:mtr><m:mtr>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>4</m:mn></m:mrow></m:mtd>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
  </m:mtr><m:mtr>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>4</m:mn></m:mrow></m:mtd>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
  </m:mtr><m:mtr>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>4</m:mn></m:mrow></m:mtd>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
  </m:mtr><m:mtr>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>4</m:mn></m:mrow></m:mtd>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
  </m:mtr><m:mtr>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>4</m:mn></m:mrow></m:mtd>
   <m:mtd><m:mn>1</m:mn></m:mtd>
  </m:mtr><m:mtr>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>4</m:mn></m:mrow></m:mtd>
  </m:mtr>
 </m:mtable></m:mfenced>
</m:math></td><td class="formula2"/></tr></table></div><div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:mi>B</m:mi><m:mo>=</m:mo><m:mo>-</m:mo><m:mfrac other="small"><m:mn>1</m:mn><m:mn>2</m:mn></m:mfrac>
<m:mfenced><m:mtable columnalign="right">
  <m:mtr>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>2</m:mn></m:mrow></m:mtd>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
  </m:mtr><m:mtr>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>2</m:mn></m:mrow></m:mtd>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
  </m:mtr><m:mtr>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>2</m:mn></m:mrow></m:mtd>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
  </m:mtr><m:mtr>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>2</m:mn></m:mrow></m:mtd>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
  </m:mtr><m:mtr>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>2</m:mn></m:mrow></m:mtd>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
  </m:mtr><m:mtr>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>2</m:mn></m:mrow></m:mtd>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
  </m:mtr><m:mtr>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>2</m:mn></m:mrow></m:mtd>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
  </m:mtr><m:mtr>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>2</m:mn></m:mrow></m:mtd>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
  </m:mtr><m:mtr>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>2</m:mn></m:mrow></m:mtd>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
  </m:mtr><m:mtr>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>2</m:mn></m:mrow></m:mtd>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
  </m:mtr><m:mtr>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>2</m:mn></m:mrow></m:mtd>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
  </m:mtr><m:mtr>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>2</m:mn></m:mrow></m:mtd>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
  </m:mtr><m:mtr>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>2</m:mn></m:mrow></m:mtd>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
  </m:mtr><m:mtr>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>2</m:mn></m:mrow></m:mtd>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
  </m:mtr><m:mtr>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>2</m:mn></m:mrow></m:mtd>
   <m:mtd><m:mn>1</m:mn></m:mtd>
  </m:mtr><m:mtr>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>2</m:mn></m:mrow></m:mtd>
  </m:mtr>
 </m:mtable></m:mfenced>
</m:math></td><td class="formula2"/></tr></table></div><a class="arg" href="#TOL">TOL</a> is taken as <m:math><m:mn>0.0001</m:mn></m:math>&#160;and <m:math><m:mn>6</m:mn></m:math>&#160;iteration vectors are used.  <a class="rout" href="../F11/f11jaf.xml">F11JAF</a> is used to factorize the matrix <m:math><m:mi>A</m:mi></m:math>,  prior to calling F02FJF, and <a class="rout" href="../F11/f11jcf.xml">F11JCF</a> is used within <a class="arg" href="#IMAGE">IMAGE</a> to solve the equations <m:math><m:mi>A</m:mi><m:mi>w</m:mi><m:mo>=</m:mo><m:mi>B</m:mi><m:mi>z</m:mi></m:math>&#160;for  <m:math><m:mi>w</m:mi></m:math>.  Details of the factorization of <m:math><m:mi>A</m:mi></m:math>&#160;are passed from <a class="rout" href="../F11/f11jaf.xml">F11JAF</a> to <a class="rout" href="../F11/f11jcf.xml">F11JCF</a> by means of the  COMMON block BLOCK1.</div><div class="paramtext">Output from <a class="arg" href="#MONIT">MONIT</a> occurs each time <a class="arg" href="../F02/f02fjf.xml#MONIT_ISTATE">ISTATE</a> is nonzero.  Note that the required eigenvalues are the reciprocals of the eigenvalues returned by F02FJF.</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/f02fjfe.f">Program Text (f02fjfe.f)</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/f02fjfe.d">Program&#160;Data (f02fjfe.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/f02fjfe.r">Program Results (f02fjfe.r)</a></p>
<hr/><div><a class="rout" href="../../pdf/F02/f02fjf.pdf">F02FJF (PDF version)</a></div><div><a class="chap" href="f02conts.xml">F02 Chapter Contents</a></div><div><a class="chapint" href="f02intro.xml">F02 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. 2009</a></div></body></html>
