<div id="projectbrief">The final aim of our program is to implement numerical methods for the calculation of the eigenvalues and eigenvectors of a matrix.</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
<tr class="memdesc:a5ecdee507bf406c65889542907874eee"><td class="mdescLeft"> </td><td class="mdescRight">A public member printing the content of the square matrix. <a href="#a5ecdee507bf406c65889542907874eee">More...</a><br /></td></tr>
<tr class="memdesc:a1de096de305701dc6eb63c56eed18cfb"><td class="mdescLeft"> </td><td class="mdescRight">A public member for eigenvalue computation based either on the Power method or on the Power method with shift (if shift is provided in the input file) <a href="#a1de096de305701dc6eb63c56eed18cfb">More...</a><br /></td></tr>
<tr class="memdesc:ae0bb7d862099f287b92e91aca8048671"><td class="mdescLeft"> </td><td class="mdescRight">A public member for eigenvalue computation based either on the Inverse Power method or on the Inverse Power method with shift (if shift is provided) <a href="#ae0bb7d862099f287b92e91aca8048671">More...</a><br /></td></tr>
<tr class="memitem:ac867d86cbc3be78de23405d705f148a6"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_matrix.html#ac867d86cbc3be78de23405d705f148a6">LUPDecompose</a> (double **A, int N, double Tol, int *P)</td></tr>
<tr class="memdesc:ac867d86cbc3be78de23405d705f148a6"><td class="mdescLeft"> </td><td class="mdescRight">A public member that computes the PA=LU decomposition. <a href="#ac867d86cbc3be78de23405d705f148a6">More...</a><br /></td></tr>
<tr class="memitem:a49cbcea74e3453738df7127817ae4dd7"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_matrix.html#a49cbcea74e3453738df7127817ae4dd7">LUPSolve</a> (double **A, int *P, double *b, int N, double *x)</td></tr>
<tr class="memdesc:a49cbcea74e3453738df7127817ae4dd7"><td class="mdescLeft"> </td><td class="mdescRight">A public member that solves the equation A*x=b. <a href="#a49cbcea74e3453738df7127817ae4dd7">More...</a><br /></td></tr>
<tr class="memdesc:a568fbdaf8c09b0d2584328b5940affe2"><td class="mdescLeft"> </td><td class="mdescRight">A public member that computes the A-shift_amount*I matrix. <a href="#a568fbdaf8c09b0d2584328b5940affe2">More...</a><br /></td></tr>
<tr class="memdesc:ab6595c99011b24abc53a11fab652a68f"><td class="mdescLeft"> </td><td class="mdescRight">A public member that runs the tests. <br /></td></tr>
<p>The "Matrix" class is meant to perform different kinds of operations on a data structure representing a square matrix. Specifically, it provides the following implementations of numerical methods for eigenvalue computation:</p><ul>
<li>Power and Inverse power method;</li>
<li>Implementation of Power and Inverse power methods with shift. </li>
</ul>
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
<p>The constructor initializes the content of the square matrix by reading size*size values from a text file </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">filename</td><td>a string representing the name of the input text file </td></tr>
<p>A public member for eigenvalue computation based either on the Inverse Power method or on the Inverse Power method with shift (if shift is provided) </p>
<p>A public member that computes the PA=LU decomposition. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">A</td><td>the square matrix with size N; <a class="el" href="class_matrix.html" title="The Matrix class. ">Matrix</a> A is modified, containing both matrices L-E and U as A=(L-E)+U such that P*A=L*U </td></tr>
<tr><td class="paramname">Tol</td><td>a small tolerance number to detect failure when the matrix is near degenerate </td></tr>
<tr><td class="paramname">N</td><td>the size of the square matrix </td></tr>
<tr><td class="paramname">P</td><td>an integer vector P of size N+1 </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 if the method failed, 1 if the method succeeded </dd></dl>
<p>A public member for eigenvalue computation based either on the Power method or on the Power method with shift (if shift is provided in the input file) </p>