dgssvx_8c.html

来自「SuperLU is a general purpose library for」· HTML 代码 · 共 459 行 · 第 1/2 页

HTML
459
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>SuperLU: SRC/dgssvx.c File Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"><link href="tabs.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.6 --><div class="tabs">  <ul>    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>    <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>    <li id="current"><a href="files.html"><span>Files</span></a></li>  </ul></div><div class="tabs">  <ul>    <li><a href="files.html"><span>File&nbsp;List</span></a></li>    <li><a href="globals.html"><span>Globals</span></a></li>  </ul></div><h1>SRC/dgssvx.c File Reference</h1>Solves the system of linear equations A*X=B or A'*X=B. <a href="#_details">More...</a><p><code>#include &quot;<a class="el" href="slu__ddefs_8h-source.html">slu_ddefs.h</a>&quot;</code><br><table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr><tr><td colspan="2"><br><h2>Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="dgssvx_8c.html#a463b60835d9bca4a4bb1386076d1488">dgssvx</a> (<a class="el" href="structsuperlu__options__t.html">superlu_options_t</a> *options, <a class="el" href="structSuperMatrix.html">SuperMatrix</a> *A, int *perm_c, int *perm_r, int *etree, char *equed, double *R, double *C, <a class="el" href="structSuperMatrix.html">SuperMatrix</a> *L, <a class="el" href="structSuperMatrix.html">SuperMatrix</a> *U, void *work, int lwork, <a class="el" href="structSuperMatrix.html">SuperMatrix</a> *B, <a class="el" href="structSuperMatrix.html">SuperMatrix</a> *X, double *recip_pivot_growth, double *rcond, double *ferr, double *berr, <a class="el" href="structmem__usage__t.html">mem_usage_t</a> *mem_usage, <a class="el" href="structSuperLUStat__t.html">SuperLUStat_t</a> *stat, int *info)</td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2><pre> -- SuperLU routine (version 3.0) -- Univ. of California Berkeley, Xerox Palo Alto Research Center, and Lawrence Berkeley National Lab. October 15, 2003 </pre> <hr><h2>Function Documentation</h2><a class="anchor" name="a463b60835d9bca4a4bb1386076d1488"></a><!-- doxytag: member="dgssvx.c::dgssvx" ref="a463b60835d9bca4a4bb1386076d1488" args="(superlu_options_t *options, SuperMatrix *A, int *perm_c, int *perm_r, int *etree, char *equed, double *R, double *C, SuperMatrix *L, SuperMatrix *U, void *work, int lwork, SuperMatrix *B, SuperMatrix *X, double *recip_pivot_growth, double *rcond, double *ferr, double *berr, mem_usage_t *mem_usage, SuperLUStat_t *stat, int *info)" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">void dgssvx           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="structsuperlu__options__t.html">superlu_options_t</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>options</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap><a class="el" href="structSuperMatrix.html">SuperMatrix</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>A</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int *&nbsp;</td>          <td class="mdname" nowrap> <em>perm_c</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int *&nbsp;</td>          <td class="mdname" nowrap> <em>perm_r</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int *&nbsp;</td>          <td class="mdname" nowrap> <em>etree</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>char *&nbsp;</td>          <td class="mdname" nowrap> <em>equed</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>double *&nbsp;</td>          <td class="mdname" nowrap> <em>R</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>double *&nbsp;</td>          <td class="mdname" nowrap> <em>C</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap><a class="el" href="structSuperMatrix.html">SuperMatrix</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>L</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap><a class="el" href="structSuperMatrix.html">SuperMatrix</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>U</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>void *&nbsp;</td>          <td class="mdname" nowrap> <em>work</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>lwork</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap><a class="el" href="structSuperMatrix.html">SuperMatrix</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>B</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap><a class="el" href="structSuperMatrix.html">SuperMatrix</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>X</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>double *&nbsp;</td>          <td class="mdname" nowrap> <em>recip_pivot_growth</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>double *&nbsp;</td>          <td class="mdname" nowrap> <em>rcond</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>double *&nbsp;</td>          <td class="mdname" nowrap> <em>ferr</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>double *&nbsp;</td>          <td class="mdname" nowrap> <em>berr</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap><a class="el" href="structmem__usage__t.html">mem_usage_t</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>mem_usage</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap><a class="el" href="structSuperLUStat__t.html">SuperLUStat_t</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>stat</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int *&nbsp;</td>          <td class="mdname" nowrap> <em>info</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p><pre> Purpose =======</pre><p><pre> DGSSVX solves the system of linear equations A*X=B or A'*X=B, using the LU factorization from <a class="el" href="dgstrf_8c.html#9a055ed4d6378cdbbe6ec5c54121968f">dgstrf()</a>. Error bounds on the solution and a condition estimate are also provided. It performs the following steps:</pre><p><pre>   1. If A is stored column-wise (A-&gt;Stype = SLU_NC):</pre><p><pre>      1.1. If options-&gt;Equil = YES, scaling factors are computed to           equilibrate the system:           options-&gt;Trans = NOTRANS:               diag(R)*A*diag(C) *inv(diag(C))*X = diag(R)*B           options-&gt;Trans = TRANS:               (diag(R)*A*diag(C))**T *inv(diag(R))*X = diag(C)*B           options-&gt;Trans = CONJ:               (diag(R)*A*diag(C))**H *inv(diag(R))*X = diag(C)*B           Whether or not the system will be equilibrated depends on the           scaling of the matrix A, but if equilibration is used, A is           overwritten by diag(R)*A*diag(C) and B by diag(R)*B           (if options-&gt;Trans=NOTRANS) or diag(C)*B (if options-&gt;Trans           = TRANS or CONJ).</pre><p><pre>      1.2. Permute columns of A, forming A*Pc, where Pc is a permutation           matrix that usually preserves sparsity.           For more details of this step, see <a class="el" href="sp__preorder_8c.html">sp_preorder.c</a>.</pre><p><pre>      1.3. If options-&gt;Fact != FACTORED, the LU decomposition is used to           factor the matrix A (after equilibration if options-&gt;Equil = YES)           as Pr*A*Pc = L*U, with Pr determined by partial pivoting.</pre><p><pre>      1.4. Compute the reciprocal pivot growth factor.</pre><p><pre>      1.5. If some U(i,i) = 0, so that U is exactly singular, then the           routine returns with info = i. Otherwise, the factored form of            A is used to estimate the condition number of the matrix A. If           the reciprocal of the condition number is less than machine           precision, info = A-&gt;ncol+1 is returned as a warning, but the           routine still goes on to solve for X and computes error bounds           as described below.</pre><p><pre>      1.6. The system of equations is solved for X using the factored form           of A.</pre><p><pre>      1.7. If options-&gt;IterRefine != NOREFINE, iterative refinement is           applied to improve the computed solution matrix and calculate           error bounds and backward error estimates for it.</pre><p><pre>      1.8. If equilibration was used, the matrix X is premultiplied by           diag(C) (if options-&gt;Trans = NOTRANS) or diag(R)           (if options-&gt;Trans = TRANS or CONJ) so that it solves the           original system before equilibration.</pre><p><pre>   2. If A is stored row-wise (A-&gt;Stype = SLU_NR), apply the above algorithm      to the transpose of A:</pre><p><pre>      2.1. If options-&gt;Equil = YES, scaling factors are computed to           equilibrate the system:           options-&gt;Trans = NOTRANS:

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?