<?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>F02SDF : 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/f02sdf.pdf">F02SDF (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/>F02SDF</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="htmltoc" onclick="showLevel('tocfcomments');"><span class="htmltocplus" id="tocfcommentsplus">+</span><span class="htmltocminus" id="tocfcommentsminus">&#8722;</span></span>
<a class="htmltoc" href="#fcomments">8&#160;&#160;<b>Further Comments</b></a>
<div class="htmltocitem" id="tocfcomments">
<div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#fcomments1">8.1&#160;&#160;<b>Timing</b></a>
</div><div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#fcomments2">8.2&#160;&#160;<b>Storage</b></a>
</div><div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#fcomments3">8.3&#160;&#160;<b>Algorithmic Details</b></a>
</div>
</div>
</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">F02SDF finds the eigenvector corresponding to a given real eigenvalue for the generalized 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>, or for the standard problem <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:math>, where  <m:math><m:mi>A</m:mi></m:math>&#160;and <m:math><m:mi>B</m:mi></m:math>&#160;are real band matrices.</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;F02SDF&#160;(</td><td class="tdfspec2"><a class="arg" href="#N">N</a>, <a class="arg" href="#MA1">MA1</a>, <a class="arg" href="#MB1">MB1</a>, <a class="arg" href="#A">A</a>, <a class="arg" href="#LDA">LDA</a>, <a class="arg" href="#B">B</a>, <a class="arg" href="#LDB">LDB</a>, <a class="arg" href="#SYM">SYM</a>, <a class="arg" href="#RELEP">RELEP</a>, <a class="arg" href="#RMU">RMU</a>, <a class="arg" href="#VEC">VEC</a>, <a class="arg" href="#D">D</a>, <a class="arg" href="#IWORK">IWORK</a>, <a class="arg" href="#WORK">WORK</a>, <a class="arg" href="#LWORK">LWORK</a>, <a class="arg" href="#IFAIL">IFAIL</a>)</td></tr><tr><td class="tdfspec1">INTEGER</td><td class="tdfspec2">N, MA1, MB1, LDA, LDB, IWORK(N), LWORK, IFAIL</td></tr><tr><td class="tdfspec1"><b><i>double&#160;precision</i></b></td><td class="tdfspec2">A(LDA,N), B(LDB,N), RELEP, RMU, VEC(N), D(30), WORK(LWORK)</td></tr><tr><td class="tdfspec1">LOGICAL</td><td class="tdfspec2">SYM</td></tr></table><h2 class="standard"><a class="sec" name="description" id="description"/>3&#160;&#160;Description</h2>
<div class="paramtext">Given an approximation <m:math><m:mi>&#956;</m:mi></m:math>&#160;to a real eigenvalue  <m:math><m:mi>&#955;</m:mi></m:math>&#160;of the generalized eigenproblem  <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>, F02SDF attempts to compute the corresponding eigenvector by inverse iteration.</div><div class="paramtext">F02SDF first computes lower and upper triangular factors, <m:math><m:mi>L</m:mi></m:math>&#160;and <m:math><m:mi>U</m:mi></m:math>, of <m:math><m:mi>A</m:mi><m:mo>-</m:mo><m:mi>&#956;</m:mi><m:mi>B</m:mi></m:math>,  using Gaussian elimination with interchanges, and then solves the equation <m:math><m:mi>U</m:mi><m:mi>x</m:mi><m:mo>=</m:mo><m:mi>e</m:mi></m:math>, where <m:math><m:mi>e</m:mi><m:mo>=</m:mo><m:msup><m:mfenced separators=""><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:mn>1</m:mn></m:mfenced><m:mi mathvariant="normal">T</m:mi></m:msup></m:math>&#160;&#8211; this is the first half iteration.</div><div class="paramtext">There are then three possible courses of action depending on the input value of <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:mn>1</m:mn></m:mfenced></m:mrow></m:math>.
<ol class="listnumber"><li class="listnumber"><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:mn>1</m:mn></m:mfenced></m:mrow><m:mo>=</m:mo><m:mn>0</m:mn></m:math>.
 <div class="paramtext">This setting should be used if <m:math><m:mi>&#955;</m:mi></m:math>&#160;is an ill-conditioned eigenvalue (provided the matrix elements do not vary widely in order of magnitude).  In this case it is essential to accept only a vector found after one half iteration, and <m:math><m:mi>&#956;</m:mi></m:math>&#160;must be a very good approximation to <m:math><m:mi>&#955;</m:mi></m:math>.  If acceptable growth is achieved in the solution of <m:math><m:mi>U</m:mi><m:mi>x</m:mi><m:mo>=</m:mo><m:mi>e</m:mi></m:math>, then the normalized <m:math><m:mi>x</m:mi></m:math>&#160;is accepted as the eigenvector.  If not, columns of an orthogonal matrix are tried in turn in place of <m:math><m:mi>e</m:mi></m:math>.  If none of these give acceptable growth, the routine fails, indicating that <m:math><m:mi>&#956;</m:mi></m:math>&#160;was not a sufficiently good approximation to <m:math><m:mi>&#955;</m:mi></m:math>.</div></li><li class="listnumber"><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:mn>1</m:mn></m:mfenced></m:mrow><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math>.
 <div class="paramtext">This setting should be used if <m:math><m:mi>&#956;</m:mi></m:math>&#160;is moderately close to an eigenvalue which is not ill-conditioned (provided the matrix elements do not differ widely in order of magnitude).  If acceptable growth is achieved in the solution of <m:math><m:mi>U</m:mi><m:mi>x</m:mi><m:mo>=</m:mo><m:mi>e</m:mi></m:math>, the normalized <m:math><m:mi>x</m:mi></m:math>&#160;is accepted as the eigenvector.  If not, inverse iteration is performed.  Up to <m:math><m:mn>30</m:mn></m:math>&#160;iterations are allowed to achieve a vector and a correction to  <m:math><m:mi>&#956;</m:mi></m:math>&#160;which together give acceptably small residuals.</div></li><li class="listnumber"><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:mn>1</m:mn></m:mfenced></m:mrow><m:mo>&lt;</m:mo><m:mn>0</m:mn></m:math>.
 <div class="paramtext">This setting should be used if the elements of <m:math><m:mi>A</m:mi></m:math>&#160;and  <m:math><m:mi>B</m:mi></m:math>&#160;vary widely in order of magnitude.  Inverse iteration is performed, but a different convergence criterion is used.</div></li></ol>
</div><div class="paramtext">See <a class="sec" href="#fcomments3">Section 8.3</a> for further details.</div><div class="paramtext">Note that the bandwidth of the matrix <m:math><m:mi>A</m:mi></m:math>&#160;must not be less than the bandwidth of <m:math><m:mi>B</m:mi></m:math>.  If this is not so,  either <m:math><m:mi>A</m:mi></m:math>&#160;must be filled out with zeros, or matrices <m:math><m:mi>A</m:mi></m:math>&#160;and <m:math><m:mi>B</m:mi></m:math>&#160;may be reversed and  <m:math><m:mn>1</m:mn><m:mo>/</m:mo><m:mi>&#956;</m:mi></m:math>&#160;supplied as an approximation to the eigenvalue  <m:math><m:mn>1</m:mn><m:mo>/</m:mo><m:mi>&#955;</m:mi></m:math>.  Also it is assumed that <m:math><m:mi>A</m:mi></m:math>&#160;and <m:math><m:mi>B</m:mi></m:math>&#160;each have the same number of subdiagonals as superdiagonals.  If this is not so, they must be filled out with zeros.  If <m:math><m:mi>A</m:mi></m:math>&#160;and <m:math><m:mi>B</m:mi></m:math>&#160;are <b>both</b>  symmetric, only the upper triangles need be supplied.</div><h2 class="standard"><a class="sec" name="references" id="references"/>4&#160;&#160;References</h2><div class="paramtext"><a name="ref444" id="ref444"/>Peters G and Wilkinson J H (1979)  Inverse iteration, ill-conditioned equations and Newton's method <i>SIAM Rev.</i> <b>21</b> 339&#8211;360 </div>
<div class="paramtext"><a name="ref003" id="ref003"/>Wilkinson J H (1965)  <i>The Algebraic Eigenvalue Problem</i> Oxford University Press, Oxford </div>
<div class="paramtext"><a name="ref445" id="ref445"/>Wilkinson J H (1972)  Inverse iteration in theory and practice <i>Symposia Mathematica Volume X</i> 361&#8211;379 Istituto Nazionale di Alta Matematica, Monograf, Bologna </div>
<div class="paramtext"><a name="ref446" id="ref446"/>Wilkinson J H (1974)  Notes on inverse iteration and ill-conditioned eigensystems <i>Acta Univ. Carolin. Math. Phys.</i> <b>1&#8211;2</b> 173&#8211;177 </div>
<div class="paramtext"><a name="ref109" id="ref109"/>Wilkinson J H (1979)  Kronecker's canonical form and the <m:math><m:mrow><m:mi>Q</m:mi><m:mi>Z</m:mi></m:mrow></m:math>&#160;algorithm <i>Linear Algebra Appl.</i> <b>28</b> 285&#8211;303 </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 matrices <m:math><m:mi>A</m:mi></m:math>&#160;and <m:math><m:mi>B</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="MA1" id="MA1"/>2: &#160;&#160;&#8194; MA1 &#8211; INTEGER<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: the value <m:math><m:msub><m:mi>m</m:mi><m:mi>A</m:mi></m:msub><m:mo>+</m:mo><m:mn>1</m:mn></m:math>, where <m:math><m:msub><m:mi>m</m:mi><m:mi>A</m:mi></m:msub></m:math>&#160;is the number of nonzero lines on each side of the diagonal of <m:math><m:mi>A</m:mi></m:math>. Thus the total bandwidth of <m:math><m:mi>A</m:mi></m:math>&#160;is <m:math><m:mn>2</m:mn><m:msub><m:mi>m</m:mi><m:mi>A</m:mi></m:msub><m:mo>+</m:mo><m:mn>1</m:mn></m:math>.</div><div class="paramtext"><i>Constraint</i>:
  <m:math><m:mn>1</m:mn><m:mo>&#8804;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#MA1"><m:mi mathcolor="#EE0000" mathvariant="bold">MA1</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="MB1" id="MB1"/>3: &#160;&#160;&#8194; MB1 &#8211; INTEGER<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#MB1"><m:mi mathcolor="#EE0000" mathvariant="bold">MB1</m:mi></m:maction><m:mo>&#8804;</m:mo><m:mn>0</m:mn></m:math>, <m:math><m:mi>B</m:mi></m:math>&#160;is assumed to be the unit matrix. Otherwise <a class="arg" href="#MB1">MB1</a> must specify the value <m:math><m:msub><m:mi>m</m:mi><m:mi>B</m:mi></m:msub><m:mo>+</m:mo><m:mn>1</m:mn></m:math>, where <m:math><m:msub><m:mi>m</m:mi><m:mi>B</m:mi></m:msub></m:math>&#160;is the number of nonzero lines on each side of the diagonal of <m:math><m:mi>B</m:mi></m:math>. Thus the total bandwidth of <m:math><m:mi>B</m:mi></m:math>&#160;is <m:math><m:mn>2</m:mn><m:msub><m:mi>m</m:mi><m:mi>B</m:mi></m:msub><m:mo>+</m:mo><m:mn>1</m:mn></m:math>.</div><div class="paramtext"><i>Constraint</i>:
  <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#MB1"><m:mi mathcolor="#EE0000" mathvariant="bold">MB1</m:mi></m:maction><m:mo>&#8804;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#MA1"><m:mi mathcolor="#EE0000" mathvariant="bold">MA1</m:mi></m:maction></m:math>.
</div></dd><dt class="paramhead"><a name="A" id="A"/>4: &#160;&#160;&#8194; A(<a class="arg" href="#LDA">LDA</a>,<a class="arg" href="#N">N</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input/Output</span></dt><dd><div class="paramtext"><i>On entry</i>: the <m:math><m:mi>n</m:mi></m:math>&#160;by <m:math><m:mi>n</m:mi></m:math>&#160;band matrix <m:math><m:mi>A</m:mi></m:math>. The <m:math><m:msub><m:mi>m</m:mi><m:mi>A</m:mi></m:msub></m:math>&#160;subdiagonals must be stored in the first <m:math><m:msub><m:mi>m</m:mi><m:mi>A</m:mi></m:msub></m:math>&#160;rows of the array; the diagonal in the (<m:math><m:msub><m:mi>m</m:mi><m:mi>A</m:mi></m:msub><m:mo>+</m:mo><m:mn>1</m:mn></m:math>)th row; and the <m:math><m:msub><m:mi>m</m:mi><m:mi>A</m:mi></m:msub></m:math>&#160;superdiagonals in rows <m:math><m:msub><m:mi>m</m:mi><m:mi>A</m:mi></m:msub><m:mo>+</m:mo><m:mn>2</m:mn></m:math>&#160;to <m:math><m:mn>2</m:mn><m:msub><m:mi>m</m:mi><m:mi>A</m:mi></m:msub><m:mo>+</m:mo><m:mn>1</m:mn></m:math>. Each row of the matrix must be stored in the corresponding column of the array. For example, if <m:math><m:mi>n</m:mi><m:mo>=</m:mo><m:mn>6</m:mn></m:math>&#160;and <m:math><m:msub><m:mi>m</m:mi><m:mi>A</m:mi></m:msub><m:mo>=</m:mo><m:mn>2</m:mn></m:math>&#160;the storage scheme is: 
<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block"> <m:mtable columnalign="left"> <m:mtr> <m:mtd><m:mtext>*</m:mtext></m:mtd> <m:mtd><m:mtext>*</m:mtext></m:mtd> <m:mtd><m:msub><m:mi>a</m:mi><m:mn>31</m:mn></m:msub></m:mtd> <m:mtd><m:msub><m:mi>a</m:mi><m:mn>42</m:mn></m:msub></m:mtd> <m:mtd><m:msub><m:mi>a</m:mi><m:mn>53</m:mn></m:msub></m:mtd> <m:mtd><m:msub><m:mi>a</m:mi><m:mn>64</m:mn></m:msub></m:mtd> </m:mtr><m:mtr> <m:mtd><m:mtext>*</m:mtext></m:mtd> <m:mtd><m:msub><m:mi>a</m:mi><m:mn>21</m:mn></m:msub></m:mtd> <m:mtd><m:msub><m:mi>a</m:mi><m:mn>32</m:mn></m:msub></m:mtd> <m:mtd><m:msub><m:mi>a</m:mi><m:mn>43</m:mn></m:msub></m:mtd> <m:mtd><m:msub><m:mi>a</m:mi><m:mn>54</m:mn></m:msub></m:mtd> <m:mtd><m:msub><m:mi>a</m:mi><m:mn>65</m:mn></m:msub></m:mtd> </m:mtr><m:mtr> <m:mtd><m:msub><m:mi>a</m:mi><m:mn>11</m:mn></m:msub></m:mtd> <m:mtd><m:msub><m:mi>a</m:mi><m:mn>22</m:mn></m:msub></m:mtd> <m:mtd><m:msub><m:mi>a</m:mi><m:mn>33</m:mn></m:msub></m:mtd> <m:mtd><m:msub><m:mi>a</m:mi><m:mn>44</m:mn></m:msub></m:mtd> <m:mtd><m:msub><m:mi>a</m:mi><m:mn>55</m:mn></m:msub></m:mtd> <m:mtd><m:msub><m:mi>a</m:mi><m:mn>66</m:mn></m:msub></m:mtd> </m:mtr><m:mtr> <m:mtd><m:msub><m:mi>a</m:mi><m:mn>12</m:mn></m:msub></m:mtd> <m:mtd><m:msub><m:mi>a</m:mi><m:mn>23</m:mn></m:msub></m:mtd> <m:mtd><m:msub><m:mi>a</m:mi><m:mn>34</m:mn></m:msub></m:mtd> <m:mtd><m:msub><m:mi>a</m:mi><m:mn>45</m:mn></m:msub></m:mtd> <m:mtd><m:msub><m:mi>a</m:mi><m:mn>56</m:mn></m:msub></m:mtd> <m:mtd><m:mtext>*</m:mtext></m:mtd> </m:mtr><m:mtr> <m:mtd><m:msub><m:mi>a</m:mi><m:mn>13</m:mn></m:msub></m:mtd> <m:mtd><m:msub><m:mi>a</m:mi><m:mn>24</m:mn></m:msub></m:mtd> <m:mtd><m:msub><m:mi>a</m:mi><m:mn>35</m:mn></m:msub></m:mtd> <m:mtd><m:msub><m:mi>a</m:mi><m:mn>46</m:mn></m:msub></m:mtd> <m:mtd><m:mtext>*</m:mtext></m:mtd> <m:mtd><m:mtext>*</m:mtext></m:mtd> </m:mtr> </m:mtable> <m:mtext>.</m:mtext> </m:math></td><td class="formula2"/></tr></table></div>
 Elements of the array marked <m:math><m:mo>*</m:mo></m:math>&#160;need not be set. The following code assigns the matrix elements within the band to the correct elements of the array: 
<pre class="verbatim">
       DO 20 J = 1, N
          DO 10 I = MAX(1,J-MA1+1), MIN(N,J+MA1-1)
             A(I-J+MA1,J) = matrix(J,I)
    10    CONTINUE
    20 CONTINUE 
</pre>

If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#SYM"><m:mi mathcolor="#EE0000" mathvariant="bold">SYM</m:mi></m:maction><m:mo>=</m:mo><m:mi mathvariant="normal">.TRUE.</m:mi></m:math>&#160;(i.e., both <m:math><m:mi>A</m:mi></m:math>&#160;and <m:math><m:mi>B</m:mi></m:math>&#160;are symmetric), only the lower triangle of <m:math><m:mi>A</m:mi></m:math>&#160;need be stored in the first <a class="arg" href="#MA1">MA1</a> rows of the array.</div>
<div class="paramtext"><i>On exit</i>: details of the factorization of <m:math><m:mi>A</m:mi><m:mo>-</m:mo><m:mover><m:mi>&#955;</m:mi><m:mo>-</m:mo></m:mover><m:mi>B</m:mi></m:math>, where <m:math><m:mover><m:mi>&#955;</m:mi><m:mo>-</m:mo></m:mover></m:math>&#160;is an estimate of the eigenvalue.</div></dd><dt class="paramhead"><a name="LDA" id="LDA"/>5: &#160;&#160;&#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 F02SDF 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:mn>2</m:mn><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#MA1"><m:mi mathcolor="#EE0000" mathvariant="bold">MA1</m:mi></m:maction><m:mo>-</m:mo><m:mn>1</m:mn></m:math>.
</div></dd><dt class="paramhead"><a name="B" id="B"/>6: &#160;&#160;&#8194; B(<a class="arg" href="#LDB">LDB</a>,<a class="arg" href="#N">N</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:maction actiontype="link" dsi:type="simple" dsi:href="#MB1"><m:mi mathcolor="#EE0000" mathvariant="bold">MB1</m:mi></m:maction><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math>, <a class="arg" href="#B">B</a> must contain the <m:math><m:mi>n</m:mi></m:math>&#160;by <m:math><m:mi>n</m:mi></m:math>&#160;band matrix <m:math><m:mi>B</m:mi></m:math>, stored in the same way as <m:math><m:mi>A</m:mi></m:math>. If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#SYM"><m:mi mathcolor="#EE0000" mathvariant="bold">SYM</m:mi></m:maction><m:mo>=</m:mo><m:mi mathvariant="normal">.TRUE.</m:mi></m:math>, only the lower triangle of <m:math><m:mi>B</m:mi></m:math>&#160;need be stored in the first <a class="arg" href="#MB1">MB1</a> rows of the array. 
<div class="paramtext">If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#MB1"><m:mi mathcolor="#EE0000" mathvariant="bold">MB1</m:mi></m:maction><m:mo>&#8804;</m:mo><m:mn>0</m:mn></m:math>, the array is not used.</div>
</div>
<div class="paramtext"><i>On exit</i>: elements in the top-left corner, and in the bottom right corner if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#SYM"><m:mi mathcolor="#EE0000" mathvariant="bold">SYM</m:mi></m:maction><m:mo>=</m:mo><m:mi mathvariant="normal">.FALSE.</m:mi></m:math>, are set to zero; otherwise the array is unchanged.</div></dd><dt class="paramhead"><a name="LDB" id="LDB"/>7: &#160;&#160;&#8194; LDB &#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="#B">B</a> as declared in the (sub)program from which F02SDF 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="#SYM"><m:mi mathcolor="#EE0000" mathvariant="bold">SYM</m:mi></m:maction><m:mo>=</m:mo><m:mi mathvariant="normal">.FALSE.</m:mi></m:math>, <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LDB"><m:mi mathcolor="#EE0000" mathvariant="bold">LDB</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>2</m:mn><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#MB1"><m:mi mathcolor="#EE0000" mathvariant="bold">MB1</m:mi></m:maction><m:mo>-</m:mo><m:mn>1</m:mn></m:math>;</li>
<li class="listcons">if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#SYM"><m:mi mathcolor="#EE0000" mathvariant="bold">SYM</m:mi></m:maction><m:mo>=</m:mo><m:mi mathvariant="normal">.TRUE.</m:mi></m:math>, <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LDB"><m:mi mathcolor="#EE0000" mathvariant="bold">LDB</m:mi></m:maction><m:mo>&#8805;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#MB1"><m:mi mathcolor="#EE0000" mathvariant="bold">MB1</m:mi></m:maction></m:math>.</li>
</ul></div></dd><dt class="paramhead"><a name="SYM" id="SYM"/>8: &#160;&#160;&#8194; SYM &#8211; LOGICAL<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#SYM"><m:mi mathcolor="#EE0000" mathvariant="bold">SYM</m:mi></m:maction><m:mo>=</m:mo><m:mi mathvariant="normal">.TRUE.</m:mi></m:math>, both <m:math><m:mi>A</m:mi></m:math>&#160;and <m:math><m:mi>B</m:mi></m:math>&#160;are assumed to be symmetric and only their upper triangles need be stored. Otherwise <a class="arg" href="#SYM">SYM</a> must be set to .FALSE..</div></dd><dt class="paramhead"><a name="RELEP" id="RELEP"/>9: &#160;&#160;&#8194; RELEP &#8211; <span class="bitalic">double precision</span><span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: the relative error of the coefficients of the given matrices <m:math><m:mi>A</m:mi></m:math>&#160;and <m:math><m:mi>B</m:mi></m:math>. If the value of <a class="arg" href="#RELEP">RELEP</a> is less than the <span class="bitalic">machine precision</span>, the <span class="bitalic">machine precision</span> is used instead.</div></dd><dt class="paramhead"><a name="RMU" id="RMU"/>10: &#8194; RMU &#8211; <span class="bitalic">double precision</span><span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: <m:math><m:mi>&#956;</m:mi></m:math>, an approximation to the eigenvalue for which the corresponding eigenvector is required.</div></dd><dt class="paramhead"><a name="VEC" id="VEC"/>11: &#8194; VEC(<a class="arg" href="#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 eigenvector, normalized so that the largest element is unity, corresponding to the improved eigenvalue <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#RMU"><m:mi mathcolor="#EE0000" mathvariant="bold">RMU</m:mi></m:maction><m:mo>+</m:mo><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:mn>30</m:mn></m:mfenced></m:mrow></m:math>.</div></dd><dt class="paramhead"><a name="D" id="D"/>12: &#8194; D(<m:math><m:mn>30</m:mn></m:math>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input/Output</span></dt><dd><div class="paramtext"><i>On entry</i>: <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:mn>1</m:mn></m:mfenced></m:mrow></m:math>&#160;must be set to indicate the type of problem (see <a class="sec" href="#description">Section 3</a>): 
<dl>
<dt class="paramval"><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:mn>1</m:mn></m:mfenced></m:mrow><m:mo>&gt;</m:mo><m:mn>0.0</m:mn></m:math></dt>
<dd>Indicates a well-conditioned eigenvalue.</dd>
<dt class="paramval"><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:mn>1</m:mn></m:mfenced></m:mrow><m:mo>=</m:mo><m:mn>0.0</m:mn></m:math></dt>
<dd>Indicates an ill-conditioned eigenvalue.</dd>
<dt class="paramval"><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:mn>1</m:mn></m:mfenced></m:mrow><m:mo>&lt;</m:mo><m:mn>0.0</m:mn></m:math></dt>
<dd>Indicates that the matrices have elements varying widely in order of magnitude.</dd></dl>
</div>
<div class="paramtext"><i>On exit</i>: if <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:mn>1</m:mn></m:mfenced></m:mrow><m:mo>&#8800;</m:mo><m:mn>0.0</m:mn></m:math>&#160;on entry, the successive corrections to <m:math><m:mi>&#956;</m:mi></m:math>&#160;are given in <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>i</m:mi></m:mfenced></m:mrow></m:math>, for <m:math><m:mi>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>k</m:mi></m:math>, where <m:math><m:mi>k</m:mi><m:mo>+</m:mo><m:mn>1</m:mn></m:math>&#160;is the total number of iterations performed. The final correction is also given in the last position, <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:mn>30</m:mn></m:mfenced></m:mrow></m:math>, of the array. The remaining elements of <a class="arg" href="#D">D</a> are set to zero. 
<div class="paramtext">If <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:mn>1</m:mn></m:mfenced></m:mrow><m:mo>=</m:mo><m:mn>0.0</m:mn></m:math>&#160;on entry, no corrections to <m:math><m:mi>&#956;</m:mi></m:math>&#160;are computed and <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>i</m:mi></m:mfenced></m:mrow></m:math>&#160;is set to <m:math><m:mn>0.0</m:mn></m:math>, for <m:math><m:mi>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:mn>30</m:mn></m:math>. Thus in all three cases the best available approximation to the eigenvalue is <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#RMU"><m:mi mathcolor="#EE0000" mathvariant="bold">RMU</m:mi></m:maction><m:mo>+</m:mo><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:mn>30</m:mn></m:mfenced></m:mrow></m:math>.</div>
</div></dd><dt class="paramhead"><a name="IWORK" id="IWORK"/>13: &#8194; IWORK(<a class="arg" href="#N">N</a>) &#8211; INTEGER array<span class="pclass">Workspace</span></dt><dt class="multi-paramhead"><a name="WORK" id="WORK"/>14: &#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"/>15: &#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 F02SDF is called.</div><div class="paramtext"><i>Constraints</i>:
   <div class="paramtext"/><ul class="listcons">
<li class="listcons">if <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:mn>1</m:mn></m:mfenced></m:mrow><m:mo>&#8800;</m:mo><m:mn>0.0</m:mn></m:math>, <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: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:mfenced separators=""><m:maction actiontype="link" dsi:type="simple" dsi:href="#MA1"><m:mi mathcolor="#EE0000" mathvariant="bold">MA1</m:mi></m:maction><m:mo>+</m:mo><m:mn>1</m:mn></m:mfenced></m:math>;</li>
<li class="listcons">if <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:mn>1</m:mn></m:mfenced></m:mrow><m:mo>=</m:mo><m:mn>0.0</m:mn></m:math>, <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>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:math>.</li>
</ul></div></dd><dt class="paramhead"><a name="IFAIL" id="IFAIL"/>16: &#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, if you are not familiar with this parameter, the recommended value is <m:math><m:mn>0</m:mn></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 mathvariant="bold">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="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="#MA1"><m:mi mathcolor="#EE0000" mathvariant="bold">MA1</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="#MA1"><m:mi mathcolor="#EE0000" mathvariant="bold">MA1</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="#LDA"><m:mi mathcolor="#EE0000" mathvariant="bold">LDA</m:mi></m:maction><m:mo>&lt;</m:mo><m:mn>2</m:mn><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#MA1"><m:mi mathcolor="#EE0000" mathvariant="bold">MA1</m:mi></m:maction><m:mo>-</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="#LDB"><m:mi mathcolor="#EE0000" mathvariant="bold">LDB</m:mi></m:maction><m:mo>&lt;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#MB1"><m:mi mathcolor="#EE0000" mathvariant="bold">MB1</m:mi></m:maction></m:math>&#160;when <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#SYM"><m:mi mathcolor="#EE0000" mathvariant="bold">SYM</m:mi></m:maction><m:mo>=</m:mo><m:mi mathvariant="normal">.TRUE.</m:mi></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="#LDB"><m:mi mathcolor="#EE0000" mathvariant="bold">LDB</m:mi></m:maction><m:mo>&lt;</m:mo><m:mn>2</m:mn><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#MB1"><m:mi mathcolor="#EE0000" mathvariant="bold">MB1</m:mi></m:maction><m:mo>-</m:mo><m:mn>1</m:mn></m:math>&#160;when  <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#SYM"><m:mi mathcolor="#EE0000" mathvariant="bold">SYM</m:mi></m:maction><m:mo>=</m:mo><m:mi mathvariant="normal">.FALSE.</m:mi></m:math>&#160;(<a class="arg" href="#LDB">LDB</a> is not checked if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#MB1"><m:mi mathcolor="#EE0000" mathvariant="bold">MB1</m:mi></m:maction><m:mo>&#8804;</m:mo><m:mn>0</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>
<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="#MA1"><m:mi mathcolor="#EE0000" mathvariant="bold">MA1</m:mi></m:maction><m:mo>&lt;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#MB1"><m:mi mathcolor="#EE0000" mathvariant="bold">MB1</m:mi></m:maction></m:math>.  Either fill out <a class="arg" href="#A">A</a> with zeros, or reverse the roles of <a class="arg" href="#A">A</a> and <a class="arg" href="#B">B</a>, and replace <a class="arg" href="#RMU">RMU</a> by its reciprocal, i.e., solve <m:math><m:mi>B</m:mi><m:mi>x</m:mi><m:mo>=</m:mo><m:msup><m:mi>&#955;</m:mi><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow></m:msup><m:mi>A</m:mi><m:mi>x</m:mi><m:mtext>.</m:mtext></m:math></td></tr></table>
</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>
<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="#LWORK"><m:mi mathcolor="#EE0000" mathvariant="bold">LWORK</m:mi></m:maction><m:mo>&lt;</m:mo><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:math>&#160;when  <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:mn>1</m:mn></m:mfenced></m:mrow><m:mo>=</m:mo><m:mn>0.0</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="#LWORK"><m:mi mathcolor="#EE0000" mathvariant="bold">LWORK</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:mo>&#215;</m:mo><m:mfenced separators=""><m:maction actiontype="link" dsi:type="simple" dsi:href="#MA1"><m:mi mathcolor="#EE0000" mathvariant="bold">MA1</m:mi></m:maction><m:mo>+</m:mo><m:mn>1</m:mn></m:mfenced></m:math>&#160;when <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:mn>1</m:mn></m:mfenced></m:mrow><m:mo>&#8800;</m:mo><m:mn>0.0</m:mn></m:math>.</td></tr></table>
</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"><m:math><m:mi>A</m:mi></m:math>&#160;is null.  If <m:math><m:mi>B</m:mi></m:math>&#160;is nonsingular,  all the eigenvalues are zero and any set of <a class="arg" href="#N">N</a> orthogonal vectors forms the eigensolution.</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"><m:math><m:mi>B</m:mi></m:math>&#160;is null.  If <m:math><m:mi>A</m:mi></m:math>&#160;is nonsingular,  all the eigenvalues are infinite, and the columns of the unit matrix are eigenvectors.</div>
</dd>
</dl><dl class="ifail">
<dt class="errorhead"><a name="IFeq6" id="IFeq6"/><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>6</m:mn></m:math></dt>
<dd>
<table class="ifail"><tr><td class="ifail1">On&#160;entry,</td><td class="ifail2-90"><m:math><m:mi>A</m:mi></m:math>&#160;and <m:math><m:mi>B</m:mi></m:math>&#160;are both null.  The eigensolution is arbitrary.</td></tr></table>
</dd>
</dl><dl class="ifail">
<dt class="errorhead"><a name="IFeq7" id="IFeq7"/><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>7</m:mn></m:math></dt>
<dd>
<div class="paramtext"><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:mn>1</m:mn></m:mfenced></m:mrow><m:mo>&#8800;</m:mo><m:mn>0.0</m:mn></m:math>&#160;on entry and convergence is not achieved in <m:math><m:mn>30</m:mn></m:math>&#160;iterations.  Either the eigenvalue is ill-conditioned or <a class="arg" href="#RMU">RMU</a> is a poor approximation to the eigenvalue.  See <a class="sec" href="#fcomments3">Section 8.3</a>.</div>
</dd>
</dl><dl class="ifail">
<dt class="errorhead"><a name="IFeq8" id="IFeq8"/><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>8</m:mn></m:math></dt>
<dd>
<div class="paramtext"><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:mn>1</m:mn></m:mfenced></m:mrow><m:mo>=</m:mo><m:mn>0.0</m:mn></m:math>&#160;on entry and no eigenvector has been found after <m:math><m:mrow><m:mi>min</m:mi><m:mspace width="0.125em"/><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>5</m:mn></m:mfenced></m:mrow></m:math>&#160;back-substitutions.  <a class="arg" href="#RMU">RMU</a> is not a sufficiently good approximation to the eigenvalue.</div>
</dd>
</dl><dl class="ifail">
<dt class="errorhead"><a name="IFeq9" id="IFeq9"/><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>9</m:mn></m:math></dt>
<dd>
<div class="paramtext"><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:mn>1</m:mn></m:mfenced></m:mrow><m:mo>&lt;</m:mo><m:mn>0.0</m:mn></m:math>&#160;on entry and <a class="arg" href="#RMU">RMU</a> is too inaccurate for the solution to converge.</div>
</dd>
</dl><h2 class="standard"><a class="sec" name="accuracy" id="accuracy"/>7&#160;&#160;Accuracy</h2>
<div class="paramtext">The eigensolution is exact for some problem

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:mfenced separators=""><m:mi>A</m:mi><m:mo>+</m:mo><m:mi>E</m:mi></m:mfenced><m:mi>x</m:mi><m:mo>=</m:mo><m:mi>&#956;</m:mi><m:mfenced separators=""><m:mi>B</m:mi><m:mo>+</m:mo><m:mi>F</m:mi></m:mfenced><m:mi>x</m:mi><m:mtext>,</m:mtext>
</m:math></td><td class="formula2"/></tr></table></div>

where <m:math><m:mfenced open="&#8214;" close="&#8214;" separators=""><m:mi>E</m:mi></m:mfenced><m:mo>,</m:mo><m:mfenced open="&#8214;" close="&#8214;" separators=""><m:mi>F</m:mi></m:mfenced></m:math>&#160;are of the order of <m:math><m:mi>&#951;</m:mi><m:mfenced separators=""><m:mfenced open="&#8214;" close="&#8214;" separators=""><m:mi>A</m:mi></m:mfenced><m:mo>+</m:mo><m:mi>&#956;</m:mi><m:mfenced open="&#8214;" close="&#8214;" separators=""><m:mi>B</m:mi></m:mfenced></m:mfenced></m:math>, where <m:math><m:mi>&#951;</m:mi></m:math>&#160;is the value used for <a class="arg" href="#RELEP">RELEP</a>.</div><h2 class="standard"><a class="sec" name="fcomments" id="fcomments"/>8&#160;&#160;Further Comments</h2><h3 class="standard"><a class="sec" name="fcomments1" id="fcomments1"/>8.1&#160;&#160;Timing</h3>
<div class="paramtext">The time taken by F02SDF is approximately proportional to <m:math><m:mi>n</m:mi><m:msup>
<m:mfenced separators=""><m:mn>2</m:mn><m:msub><m:mi>m</m:mi><m:mi>A</m:mi></m:msub><m:mo>+</m:mo><m:mn>1</m:mn></m:mfenced>
<m:mn>2</m:mn></m:msup></m:math>&#160;for factorization, and to <m:math><m:mi>n</m:mi><m:mfenced separators=""><m:mn>2</m:mn><m:msub><m:mi>m</m:mi><m:mi>A</m:mi></m:msub><m:mo>+</m:mo><m:mn>1</m:mn></m:mfenced></m:math>&#160;for each iteration.</div><h3 class="standard"><a class="sec" name="fcomments2" id="fcomments2"/>8.2&#160;&#160;Storage</h3>
<div class="paramtext">The storage of the matrices <m:math><m:mi>A</m:mi></m:math>&#160;and <m:math><m:mi>B</m:mi></m:math>&#160;is designed for efficiency on a paged machine.</div><div class="paramtext">F02SDF will work with full matrices but it will do so inefficiently, particularly in respect of storage requirements.</div><h3 class="standard"><a class="sec" name="fcomments3" id="fcomments3"/>8.3&#160;&#160;Algorithmic Details</h3>
<div class="paramtext">Inverse iteration is performed according to the rule

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:mfenced separators=""><m:mi>A</m:mi><m:mo>-</m:mo><m:mi>&#956;</m:mi><m:mi>B</m:mi></m:mfenced><m:msub><m:mi>y</m:mi><m:mrow><m:mi>r</m:mi><m:mo>+</m:mo><m:mn>1</m:mn></m:mrow></m:msub><m:mo>=</m:mo><m:mi>B</m:mi><m:msub><m:mi>x</m:mi><m:mi>r</m:mi></m:msub>
</m:math></td><td class="formula2"/></tr></table></div><div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:msub><m:mi>x</m:mi><m:mrow><m:mi>r</m:mi><m:mo>+</m:mo> <m:mn>1</m:mn></m:mrow></m:msub><m:mo>=</m:mo><m:mfrac><m:mn>1</m:mn><m:msub><m:mi>&#945;</m:mi><m:mrow><m:mi>r</m:mi><m:mo>+</m:mo> <m:mn>1</m:mn></m:mrow></m:msub></m:mfrac><m:msub><m:mi>y</m:mi><m:mrow><m:mi>r</m:mi><m:mo>+</m:mo> <m:mn>1</m:mn></m:mrow></m:msub>
</m:math></td><td class="formula2"/></tr></table></div>

where  <m:math><m:msub><m:mi>&#945;</m:mi><m:mrow><m:mi>r</m:mi><m:mo>+</m:mo><m:mn>1</m:mn></m:mrow></m:msub></m:math>&#160;is the element of <m:math><m:msub><m:mi>y</m:mi><m:mrow><m:mi>r</m:mi><m:mo>+</m:mo><m:mn>1</m:mn></m:mrow></m:msub></m:math>&#160;of largest magnitude.</div><div class="paramtext">Thus:

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:mfenced separators=""><m:mi>A</m:mi><m:mo>-</m:mo><m:mi>&#956;</m:mi><m:mi>B</m:mi></m:mfenced><m:msub><m:mi>x</m:mi><m:mrow><m:mi>r</m:mi><m:mo>+</m:mo><m:mn>1</m:mn></m:mrow></m:msub><m:mo>=</m:mo><m:mfrac><m:mn>1</m:mn><m:msub><m:mi>&#945;</m:mi><m:mrow><m:mi>r</m:mi><m:mo>+</m:mo><m:mn>1</m:mn></m:mrow></m:msub></m:mfrac><m:mi>B</m:mi><m:msub><m:mi>x</m:mi><m:mi>r</m:mi></m:msub><m:mtext>.</m:mtext>
</m:math></td><td class="formula2"/></tr></table></div>

Hence the residual corresponding to <m:math><m:msub><m:mi>x</m:mi><m:mrow><m:mi>r</m:mi><m:mo>+</m:mo><m:mn>1</m:mn></m:mrow></m:msub></m:math>&#160;is very small if <m:math><m:mfenced open="|" close="|" separators=""><m:msub><m:mi>&#945;</m:mi><m:mrow><m:mi>r</m:mi><m:mo>+</m:mo><m:mn>1</m:mn></m:mrow></m:msub></m:mfenced></m:math>&#160;is very large (see <a class="ref" href="#ref444">Peters and Wilkinson (1979)</a>).  The first half iteration, <m:math><m:mi>U</m:mi><m:msub><m:mi>y</m:mi><m:mn>1</m:mn></m:msub><m:mo>=</m:mo><m:mi>e</m:mi></m:math>,  corresponds to taking <m:math><m:msup><m:mi>L</m:mi><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow></m:msup><m:mi>P</m:mi><m:mi>B</m:mi><m:msub><m:mi>x</m:mi><m:mn>0</m:mn></m:msub><m:mo>=</m:mo><m:mi>e</m:mi></m:math>.</div><div class="paramtext">If <m:math><m:mi>&#956;</m:mi></m:math>&#160;is a very accurate eigenvalue, then there should always be an initial vector <m:math><m:msub><m:mi>x</m:mi><m:mn>0</m:mn></m:msub></m:math>&#160;such that one half iteration gives a small residual and thus a good eigenvector.  If the eigenvalue is ill-conditioned, then second and subsequent iterated vectors may not be even remotely close to an eigenvector of a neighbouring problem (see pages 374&#8211;376 of <a class="ref" href="#ref445">Wilkinson (1972)</a> and <a class="ref" href="#ref446">Wilkinson (1974)</a>).  In this case it is essential to accept only a vector obtained after one half iteration.</div><div class="paramtext">However, for well-conditioned eigenvalues, there is no loss in performing more than one iteration (see page 376 of <a class="ref" href="#ref445">Wilkinson (1972)</a>), and indeed it will be necessary to iterate if <m:math><m:mi>&#956;</m:mi></m:math>&#160;is not such a good approximation to the eigenvalue.  When the iteration has converged, <m:math><m:msub><m:mi>y</m:mi><m:mrow><m:mi>r</m:mi><m:mo>+</m:mo><m:mn>1</m:mn></m:mrow></m:msub></m:math>&#160;will be some multiple of <m:math><m:msub><m:mi>x</m:mi><m:mi>r</m:mi></m:msub></m:math>, <m:math><m:msub><m:mi>y</m:mi><m:mrow><m:mi>r</m:mi><m:mo>+</m:mo><m:mn>1</m:mn></m:mrow></m:msub><m:mo>=</m:mo><m:msub><m:mi>&#946;</m:mi><m:mrow><m:mi>r</m:mi><m:mo>+</m:mo><m:mn>1</m:mn></m:mrow></m:msub><m:msub><m:mi>x</m:mi><m:mi>r</m:mi></m:msub></m:math>, say.</div><div class="paramtext">Therefore

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:mfenced separators=""><m:mi>A</m:mi><m:mo>-</m:mo><m:mi>&#956;</m:mi><m:mi>B</m:mi></m:mfenced><m:msub><m:mi>&#946;</m:mi><m:mrow><m:mi>r</m:mi><m:mo>+</m:mo><m:mn>1</m:mn></m:mrow></m:msub><m:msub><m:mi>x</m:mi><m:mi>r</m:mi></m:msub><m:mo>=</m:mo><m:mi>B</m:mi><m:msub><m:mi>x</m:mi><m:mi>r</m:mi></m:msub><m:mtext>,</m:mtext>
</m:math></td><td class="formula2"/></tr></table></div>

giving

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:mfenced separators=""><m:mi>A</m:mi><m:mo>-</m:mo><m:mfenced separators=""><m:mi>&#956;</m:mi><m:mo>+</m:mo><m:mfrac><m:mn>1</m:mn><m:msub><m:mi>&#946;</m:mi><m:mrow><m:mi>r</m:mi><m:mo>+</m:mo> <m:mn>1</m:mn></m:mrow></m:msub>
 </m:mfrac></m:mfenced>
<m:mi>B</m:mi></m:mfenced>
<m:msub><m:mi>x</m:mi><m:mi>r</m:mi></m:msub><m:mo>=</m:mo><m:mn>0</m:mn><m:mtext>.</m:mtext>
</m:math></td><td class="formula2"/></tr></table></div>

Thus <m:math><m:mi>&#956;</m:mi><m:mo>+</m:mo><m:mfrac other="display">
  <m:mn>1</m:mn><m:msub><m:mi>&#946;</m:mi><m:mrow><m:mi>r</m:mi><m:mo>+</m:mo><m:mn>1</m:mn></m:mrow></m:msub>
 </m:mfrac>
</m:math>&#160;is a better approximation to the eigenvalue.  <m:math><m:msub><m:mi>&#946;</m:mi><m:mrow><m:mi>r</m:mi><m:mo>+</m:mo><m:mn>1</m:mn></m:mrow></m:msub></m:math>&#160;is obtained as the element of <m:math><m:msub><m:mi>y</m:mi><m:mrow><m:mi>r</m:mi><m:mo>+</m:mo><m:mn>1</m:mn></m:mrow></m:msub></m:math>&#160;which corresponds to the element of largest magnitude, <m:math><m:mrow><m:mo>+</m:mo><m:mn>1</m:mn></m:mrow></m:math>, in <m:math><m:msub><m:mi>x</m:mi><m:mi>r</m:mi></m:msub></m:math>.  The routine terminates when <m:math>
<m:mfenced open="&#8214;" close="&#8214;" separators="">
 <m:mfenced separators=""><m:mi>A</m:mi><m:mo>-</m:mo><m:mfenced separators=""><m:mi>&#956;</m:mi><m:mo>+</m:mo><m:mfrac other="display">
    <m:mn>1</m:mn>
    <m:msub><m:mi>&#946;</m:mi><m:mi>r</m:mi></m:msub>
   </m:mfrac>
  </m:mfenced>
  <m:mi>B</m:mi>
 </m:mfenced>
 <m:msub><m:mi>x</m:mi><m:mi>r</m:mi></m:msub>
</m:mfenced>
</m:math>&#160;is of the order of the <span class="bitalic">machine precision</span> relative to <m:math><m:mfenced open="&#8214;" close="&#8214;" separators=""><m:mi>A</m:mi></m:mfenced><m:mo>+</m:mo><m:mfenced open="|" close="|" separators=""><m:mi>&#956;</m:mi></m:mfenced><m:mfenced open="&#8214;" close="&#8214;" separators=""><m:mi>B</m:mi></m:mfenced></m:math>.</div><div class="paramtext">If the elements of <m:math><m:mi>A</m:mi></m:math>&#160;and <m:math><m:mi>B</m:mi></m:math>&#160;vary widely in order of magnitude, then <m:math><m:mfenced open="&#8214;" close="&#8214;" separators=""><m:mi>A</m:mi></m:mfenced></m:math>&#160;and <m:math><m:mfenced open="&#8214;" close="&#8214;" separators=""><m:mi>B</m:mi></m:mfenced></m:math>&#160;are excessively large and a different convergence test is required.  The routine terminates when the difference between successive corrections to  <m:math><m:mi>&#956;</m:mi></m:math>&#160;is small relative to <m:math><m:mi>&#956;</m:mi></m:math>.</div><div class="paramtext">In practice one does not necessarily know if the given problem is well-conditioned or ill-conditioned.  In order to provide some information on the condition of the eigenvalue or the accuracy of  <m:math><m:mi>&#956;</m:mi></m:math>&#160;in the event of failure, successive values of  <m:math>
 <m:mfrac other="display">
  <m:mn>1</m:mn><m:msub><m:mi>&#946;</m:mi><m:mi>r</m:mi></m:msub>
 </m:mfrac>
</m:math>&#160;are stored in the vector <a class="arg" href="#D">D</a> when  <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:mn>1</m:mn></m:mfenced></m:mrow></m:math>&#160;is nonzero on input.  If these values appear to be converging steadily, then it is likely that <m:math><m:mi>&#956;</m:mi></m:math>&#160;was a poor approximation to the eigenvalue and it is worth trying again with  <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#RMU"><m:mi mathcolor="#EE0000" mathvariant="bold">RMU</m:mi></m:maction><m:mo>+</m:mo><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:mn>30</m:mn></m:mfenced></m:mrow></m:math>&#160;as the initial approximation.  If the values in <a class="arg" href="#D">D</a> vary considerably in magnitude, then the eigenvalue is ill-conditioned.</div><div class="paramtext">A discussion of the significance of the singularity of <m:math><m:mi>A</m:mi></m:math>&#160;and/or <m:math><m:mi>B</m:mi></m:math>&#160;is given in relation to the <m:math><m:mi>Q</m:mi><m:mi>Z</m:mi></m:math>&#160;algorithm in <a class="ref" href="#ref109">Wilkinson (1979)</a>.</div><h2 class="standard"><a class="sec" name="example" id="example"/>9&#160;&#160;Example</h2>
<div class="paramtext">Given the generalized eigenproblem <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>&#160;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:mfenced><m:mtable columnalign="right">
  <m:mtr>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd><m:mn>2</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
  </m:mtr><m:mtr>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow></m:mtd>
   <m:mtd><m:mn>2</m:mn></m:mtd>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd><m:mn>2</m:mn></m:mtd>
   <m:mtd/>
  </m:mtr><m:mtr>
   <m:mtd/>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow></m:mtd>
   <m:mtd><m:mn>3</m:mn></m:mtd>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd><m:mn>2</m:mn></m:mtd>
  </m:mtr><m:mtr>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow></m:mtd>
   <m:mtd><m:mn>4</m:mn></m:mtd>
   <m:mtd><m:mn>1</m:mn></m:mtd>
  </m:mtr><m:mtr>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow></m:mtd>
   <m:mtd><m:mn>5</m:mn></m:mtd>
  </m:mtr>
 </m:mtable></m:mfenced>
<m:mtext>&#8195; and &#8195;</m:mtext><m:mi>B</m:mi><m:mo>=</m:mo><m:mfenced><m:mtable columnalign="left">
  <m:mtr>
   <m:mtd><m:mn>5</m:mn></m:mtd>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
  </m:mtr><m:mtr>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd><m:mn>4</m:mn></m:mtd>
   <m:mtd><m:mn>2</m:mn></m:mtd>
   <m:mtd/>
   <m:mtd/>
  </m:mtr><m:mtr>
   <m:mtd/>
   <m:mtd><m:mn>2</m:mn></m:mtd>
   <m:mtd><m:mn>3</m:mn></m:mtd>
   <m:mtd><m:mn>2</m:mn></m:mtd>
   <m:mtd/>
  </m:mtr><m:mtr>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>2</m:mn></m:mtd>
   <m:mtd><m:mn>2</m:mn></m:mtd>
   <m:mtd><m:mn>1</m:mn></m:mtd>
  </m:mtr><m:mtr>
   <m:mtd/>
   <m:mtd/>
   <m:mtd/>
   <m:mtd><m:mn>1</m:mn></m:mtd>
   <m:mtd><m:mn>1</m:mn></m:mtd>
  </m:mtr>
 </m:mtable></m:mfenced>
</m:math></td><td class="formula2"/></tr></table></div>

find the eigenvector corresponding to the approximate eigenvalue <m:math><m:mrow><m:mo>-</m:mo><m:mn>12.33</m:mn></m:mrow></m:math>.</div><div class="paramtext">Although <m:math><m:mi>B</m:mi></m:math>&#160;is symmetric, <m:math><m:mi>A</m:mi></m:math>&#160;is not, so <a class="arg" href="#SYM">SYM</a>  must be set to .FALSE. and all the elements of <m:math><m:mi>B</m:mi></m:math>&#160;in the band must be supplied to the routine.  <m:math><m:mi>A</m:mi></m:math>&#160;(as written above)  has <m:math><m:mn>1</m:mn></m:math>&#160;subdiagonal and <m:math><m:mn>2</m:mn></m:math>&#160;superdiagonals, so <a class="arg" href="#MA1">MA1</a> must be set to <m:math><m:mn>3</m:mn></m:math>&#160;and  <m:math><m:mi>A</m:mi></m:math>&#160;filled out with an additional subdiagonal of zeros.  Each row of the matrices is read in as data in turn.</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/f02sdfe.f">Program Text (f02sdfe.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/f02sdfe.d">Program&#160;Data (f02sdfe.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/f02sdfe.r">Program Results (f02sdfe.r)</a></p>
<hr/><div><a class="rout" href="../../pdf/F02/f02sdf.pdf">F02SDF (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>
