Julia interface to hypre linear solvers (https://github.com/hypre-space/hypre)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

12 lines
25 KiB

<!DOCTYPE html>
<html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><title>API · HYPRE.jl</title><meta name="title" content="API · HYPRE.jl"/><meta property="og:title" content="API · HYPRE.jl"/><meta property="twitter:title" content="API · HYPRE.jl"/><meta name="description" content="Documentation for HYPRE.jl."/><meta property="og:description" content="Documentation for HYPRE.jl."/><meta property="twitter:description" content="Documentation for HYPRE.jl."/><meta property="og:url" content="https://fredrikekre.github.io/HYPRE.jl/stable/api/"/><meta property="twitter:url" content="https://fredrikekre.github.io/HYPRE.jl/stable/api/"/><link rel="canonical" href="https://fredrikekre.github.io/HYPRE.jl/stable/api/"/><script data-outdated-warner src="../assets/warner.js"></script><link href="https://cdnjs.cloudflare.com/ajax/libs/lato-font/3.0.0/css/lato-font.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/juliamono/0.050/juliamono.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/fontawesome.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/solid.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/brands.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.8/katex.min.css" rel="stylesheet" type="text/css"/><script>documenterBaseURL=".."</script><script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js" data-main="../assets/documenter.js"></script><script src="../search_index.js"></script><script src="../siteinfo.js"></script><script src="../../versions.js"></script><link class="docs-theme-link" rel="stylesheet" type="text/css" href="../assets/themes/catppuccin-mocha.css" data-theme-name="catppuccin-mocha"/><link class="docs-theme-link" rel="stylesheet" type="text/css" href="../assets/themes/catppuccin-macchiato.css" data-theme-name="catppuccin-macchiato"/><link class="docs-theme-link" rel="stylesheet" type="text/css" href="../assets/themes/catppuccin-frappe.css" data-theme-name="catppuccin-frappe"/><link class="docs-theme-link" rel="stylesheet" type="text/css" href="../assets/themes/catppuccin-latte.css" data-theme-name="catppuccin-latte"/><link class="docs-theme-link" rel="stylesheet" type="text/css" href="../assets/themes/documenter-dark.css" data-theme-name="documenter-dark" data-theme-primary-dark/><link class="docs-theme-link" rel="stylesheet" type="text/css" href="../assets/themes/documenter-light.css" data-theme-name="documenter-light" data-theme-primary/><script src="../assets/themeswap.js"></script></head><body><div id="documenter"><nav class="docs-sidebar"><div class="docs-package-name"><span class="docs-autofit"><a href="../">HYPRE.jl</a></span></div><button class="docs-search-query input is-rounded is-small is-clickable my-2 mx-auto py-1 px-2" id="documenter-search-query">Search docs (Ctrl + /)</button><ul class="docs-menu"><li><a class="tocitem" href="../">Home</a></li><li><a class="tocitem" href="../matrix-vector/">Matrix/vector representation</a></li><li><a class="tocitem" href="../solvers-preconditioners/">Solvers and preconditioners</a></li><li><a class="tocitem" href="../libhypre/">LibHYPRE C API</a></li><li class="is-active"><a class="tocitem" href>API</a><ul class="internal"><li><a class="tocitem" href="#Initialization-and-configuration"><span>Initialization and configuration</span></a></li><li><a class="tocitem" href="#Matrix/vector-creation"><span>Matrix/vector creation</span></a></li><li><a class="tocitem" href="#Solvers-and-preconditioners"><span>Solvers and preconditioners</span></a></li></ul></li></ul><div class="docs-version-selector field has-addons"><div class="control"><span class="docs-label button is-static is-size-7">Version</span></div><div class="docs-selector control is-expanded"><div class="select is-fullwidth is-size-7"><select id="documenter-version-selector"></select></div></div></div></nav><div class="docs-main"><header class="docs-navbar"><a class="docs-sidebar-button docs-navbar-link fa-solid fa-bars is-hidden-desktop" id="documenter-sidebar-button" href="#"></a><nav class="breadcrumb"><ul class="is-hidden-mobile"><li class="is-active"><a href>API</a></li></ul><ul class="is-hidden-tablet"><li class="is-active"><a href>API</a></li></ul></nav><div class="docs-right"><a class="docs-navbar-link" href="https://github.com/fredrikekre/HYPRE.jl" title="View the repository on GitHub"><span class="docs-icon fa-brands"></span><span class="docs-label is-hidden-touch">GitHub</span></a><a class="docs-navbar-link" href="https://github.com/fredrikekre/HYPRE.jl/blob/master/docs/src/api.md" title="Edit source on GitHub"><span class="docs-icon fa-solid"></span></a><a class="docs-settings-button docs-navbar-link fa-solid fa-gear" id="documenter-settings-button" href="#" title="Settings"></a><a class="docs-article-toggle-button fa-solid fa-chevron-up" id="documenter-article-toggle-button" href="javascript:;" title="Collapse all docstrings"></a></div></header><article class="content" id="documenter-page"><h1 id="API"><a class="docs-heading-anchor" href="#API">API</a><a id="API-1"></a><a class="docs-heading-anchor-permalink" href="#API" title="Permalink"></a></h1><h2 id="Initialization-and-configuration"><a class="docs-heading-anchor" href="#Initialization-and-configuration">Initialization and configuration</a><a id="Initialization-and-configuration-1"></a><a class="docs-heading-anchor-permalink" href="#Initialization-and-configuration" title="Permalink"></a></h2><article class="docstring"><header><a class="docstring-article-toggle-button fa-solid fa-chevron-down" href="javascript:;" title="Collapse docstring"></a><a class="docstring-binding" id="HYPRE.Init" href="#HYPRE.Init"><code>HYPRE.Init</code></a><span class="docstring-category">Function</span><span class="is-flex-grow-1 docstring-article-toggle-button" title="Collapse docstring"></span></header><section><div><pre><code class="language-julia hljs">Init(; finalize_atexit=true)</code></pre><p>Wrapper around <code>HYPRE_Init</code>. If <code>finalize_atexit</code> is <code>true</code> a Julia exit hook is added, which calls <code>HYPRE_Finalize</code>. This method will also call <code>MPI.Init</code> unless MPI is already initialized.</p><p><strong>Note</strong>: This function <em>must</em> be called before using HYPRE functions.</p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/fredrikekre/HYPRE.jl/blob/6d5cb517e69443acd2a03260ef1b3d7b38abe9f5/src/HYPRE.jl#L19-L27">source</a></section></article><h2 id="Matrix/vector-creation"><a class="docs-heading-anchor" href="#Matrix/vector-creation">Matrix/vector creation</a><a id="Matrix/vector-creation-1"></a><a class="docs-heading-anchor-permalink" href="#Matrix/vector-creation" title="Permalink"></a></h2><article class="docstring"><header><a class="docstring-article-toggle-button fa-solid fa-chevron-down" href="javascript:;" title="Collapse docstring"></a><a class="docstring-binding" id="HYPRE.start_assemble!" href="#HYPRE.start_assemble!"><code>HYPRE.start_assemble!</code></a><span class="docstring-category">Function</span><span class="is-flex-grow-1 docstring-article-toggle-button" title="Collapse docstring"></span></header><section><div><pre><code class="language-julia hljs">HYPRE.start_assemble!(A::HYPREMatrix) -&gt; HYPREMatrixAssembler
HYPRE.start_assemble!(b::HYPREVector) -&gt; HYPREVectorAssembler
HYPRE.start_assemble!(A::HYPREMatrix, b::HYPREVector) -&gt; HYPREAssembler</code></pre><p>Initialize a new assembly for matrix <code>A</code>, vector <code>b</code>, or for both. This zeroes out any previous data in the arrays. Return a <code>HYPREAssembler</code> with allocated data buffers needed to perform the assembly efficiently.</p><p>See also: <a href="#HYPRE.assemble!"><code>HYPRE.assemble!</code></a>, <a href="#HYPRE.finish_assemble!"><code>HYPRE.finish_assemble!</code></a>.</p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/fredrikekre/HYPRE.jl/blob/6d5cb517e69443acd2a03260ef1b3d7b38abe9f5/src/HYPRE.jl#L269-L279">source</a></section></article><article class="docstring"><header><a class="docstring-article-toggle-button fa-solid fa-chevron-down" href="javascript:;" title="Collapse docstring"></a><a class="docstring-binding" id="HYPRE.assemble!" href="#HYPRE.assemble!"><code>HYPRE.assemble!</code></a><span class="docstring-category">Function</span><span class="is-flex-grow-1 docstring-article-toggle-button" title="Collapse docstring"></span></header><section><div><pre><code class="language-julia hljs">HYPRE.assemble!(A::HYPREMatrixAssembler, i, j, a::Matrix)
HYPRE.assemble!(A::HYPREVectorAssembler, i, b::Vector)
HYPRE.assemble!(A::HYPREAssembler, ij, a::Matrix, b::Vector)</code></pre><p>Assemble (by adding) matrix contribution <code>a</code>, vector contribution <code>b</code>, into the underlying array(s) of the assembler at global row indices <code>i</code> and column indices <code>j</code>.</p><p>This is roughly equivalent to:</p><pre><code class="language-julia hljs"># A.A::HYPREMatrix
A.A[i, j] += a
# A.b::HYPREVector
A.b[i] += b</code></pre><p>See also: <a href="#HYPRE.start_assemble!"><code>HYPRE.start_assemble!</code></a>, <a href="#HYPRE.finish_assemble!"><code>HYPRE.finish_assemble!</code></a>.</p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/fredrikekre/HYPRE.jl/blob/6d5cb517e69443acd2a03260ef1b3d7b38abe9f5/src/HYPRE.jl#L312-L330">source</a></section></article><article class="docstring"><header><a class="docstring-article-toggle-button fa-solid fa-chevron-down" href="javascript:;" title="Collapse docstring"></a><a class="docstring-binding" id="HYPRE.finish_assemble!" href="#HYPRE.finish_assemble!"><code>HYPRE.finish_assemble!</code></a><span class="docstring-category">Function</span><span class="is-flex-grow-1 docstring-article-toggle-button" title="Collapse docstring"></span></header><section><div><pre><code class="language-julia hljs">HYPRE.finish_assemble!(A::HYPREMatrixAssembler)
HYPRE.finish_assemble!(A::HYPREVectorAssembler)
HYPRE.finish_assemble!(A::HYPREAssembler)</code></pre><p>Finish the assembly. This synchronizes the data between processors.</p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/fredrikekre/HYPRE.jl/blob/6d5cb517e69443acd2a03260ef1b3d7b38abe9f5/src/HYPRE.jl#L387-L393">source</a></section></article><h2 id="Solvers-and-preconditioners"><a class="docs-heading-anchor" href="#Solvers-and-preconditioners">Solvers and preconditioners</a><a id="Solvers-and-preconditioners-1"></a><a class="docs-heading-anchor-permalink" href="#Solvers-and-preconditioners" title="Permalink"></a></h2><article class="docstring"><header><a class="docstring-article-toggle-button fa-solid fa-chevron-down" href="javascript:;" title="Collapse docstring"></a><a class="docstring-binding" id="HYPRE.solve!" href="#HYPRE.solve!"><code>HYPRE.solve!</code></a><span class="docstring-category">Function</span><span class="is-flex-grow-1 docstring-article-toggle-button" title="Collapse docstring"></span></header><section><div><pre><code class="language-julia hljs">solve!(solver::HYPRESolver, x::HYPREVector, A::HYPREMatrix, b::HYPREVector)</code></pre><p>Solve the linear system <code>A x = b</code> using <code>solver</code> with <code>x</code> as the initial guess. The approximate solution is stored in <code>x</code>.</p><p>See also <a href="#HYPRE.solve"><code>solve</code></a>.</p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/fredrikekre/HYPRE.jl/blob/6d5cb517e69443acd2a03260ef1b3d7b38abe9f5/src/solvers.jl#L43-L50">source</a></section></article><article class="docstring"><header><a class="docstring-article-toggle-button fa-solid fa-chevron-down" href="javascript:;" title="Collapse docstring"></a><a class="docstring-binding" id="HYPRE.solve" href="#HYPRE.solve"><code>HYPRE.solve</code></a><span class="docstring-category">Function</span><span class="is-flex-grow-1 docstring-article-toggle-button" title="Collapse docstring"></span></header><section><div><pre><code class="language-julia hljs">solve(solver::HYPRESolver, A::HYPREMatrix, b::HYPREVector) -&gt; HYPREVector</code></pre><p>Solve the linear system <code>A x = b</code> using <code>solver</code> and return the approximate solution.</p><p>This method allocates an initial guess/output vector <code>x</code>, initialized to 0.</p><p>See also <a href="#HYPRE.solve!"><code>solve!</code></a>.</p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/fredrikekre/HYPRE.jl/blob/6d5cb517e69443acd2a03260ef1b3d7b38abe9f5/src/solvers.jl#L32-L40">source</a></section></article><article class="docstring"><header><a class="docstring-article-toggle-button fa-solid fa-chevron-down" href="javascript:;" title="Collapse docstring"></a><a class="docstring-binding" id="HYPRE.HYPRESolver" href="#HYPRE.HYPRESolver"><code>HYPRE.HYPRESolver</code></a><span class="docstring-category">Type</span><span class="is-flex-grow-1 docstring-article-toggle-button" title="Collapse docstring"></span></header><section><div><pre><code class="language-julia hljs">HYPRESolver</code></pre><p>Abstract super type of all the wrapped HYPRE solvers.</p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/fredrikekre/HYPRE.jl/blob/6d5cb517e69443acd2a03260ef1b3d7b38abe9f5/src/solvers.jl#L3-L7">source</a></section></article><article class="docstring"><header><a class="docstring-article-toggle-button fa-solid fa-chevron-down" href="javascript:;" title="Collapse docstring"></a><a class="docstring-binding" id="HYPRE.BiCGSTAB" href="#HYPRE.BiCGSTAB"><code>HYPRE.BiCGSTAB</code></a><span class="docstring-category">Type</span><span class="is-flex-grow-1 docstring-article-toggle-button" title="Collapse docstring"></span></header><section><div><pre><code class="language-julia hljs">BiCGSTAB(; settings...)</code></pre><p>Create a <code>BiCGSTAB</code> solver. See HYPRE API reference for details and supported settings.</p><p><strong>External links</strong></p><ul><li><a href="https://hypre.readthedocs.io/en/latest/api-sol-parcsr.html#breathe-section-title-parcsr-bicgstab-solver">BiCGSTAB API reference</a></li></ul></div><a class="docs-sourcelink" target="_blank" href="https://github.com/fredrikekre/HYPRE.jl/blob/6d5cb517e69443acd2a03260ef1b3d7b38abe9f5/src/solvers.jl#L63-L70">source</a></section></article><article class="docstring"><header><a class="docstring-article-toggle-button fa-solid fa-chevron-down" href="javascript:;" title="Collapse docstring"></a><a class="docstring-binding" id="HYPRE.BoomerAMG" href="#HYPRE.BoomerAMG"><code>HYPRE.BoomerAMG</code></a><span class="docstring-category">Type</span><span class="is-flex-grow-1 docstring-article-toggle-button" title="Collapse docstring"></span></header><section><div><pre><code class="language-julia hljs">BoomerAMG(; settings...)</code></pre><p>Create a <code>BoomerAMG</code> solver/preconditioner. See HYPRE API reference for details and supported settings.</p><p><strong>External links</strong></p><ul><li><a href="https://hypre.readthedocs.io/en/latest/solvers-boomeramg.html">BoomerAMG documentation</a></li><li><a href="https://hypre.readthedocs.io/en/latest/api-sol-parcsr.html#breathe-section-title-parcsr-boomeramg-solver-and-preconditioner">BoomerAMG API reference</a></li></ul></div><a class="docs-sourcelink" target="_blank" href="https://github.com/fredrikekre/HYPRE.jl/blob/6d5cb517e69443acd2a03260ef1b3d7b38abe9f5/src/solvers.jl#L113-L122">source</a></section></article><article class="docstring"><header><a class="docstring-article-toggle-button fa-solid fa-chevron-down" href="javascript:;" title="Collapse docstring"></a><a class="docstring-binding" id="HYPRE.FlexGMRES" href="#HYPRE.FlexGMRES"><code>HYPRE.FlexGMRES</code></a><span class="docstring-category">Type</span><span class="is-flex-grow-1 docstring-article-toggle-button" title="Collapse docstring"></span></header><section><div><pre><code class="language-julia hljs">FlexGMRES(; settings...)</code></pre><p>Create a <code>FlexGMRES</code> solver. See HYPRE API reference for details and supported settings.</p><p><strong>External links</strong></p><ul><li><a href="https://hypre.readthedocs.io/en/latest/api-sol-parcsr.html#breathe-section-title-parcsr-flexgmres-solver">FlexGMRES API reference</a></li></ul></div><a class="docs-sourcelink" target="_blank" href="https://github.com/fredrikekre/HYPRE.jl/blob/6d5cb517e69443acd2a03260ef1b3d7b38abe9f5/src/solvers.jl#L158-L165">source</a></section></article><article class="docstring"><header><a class="docstring-article-toggle-button fa-solid fa-chevron-down" href="javascript:;" title="Collapse docstring"></a><a class="docstring-binding" id="HYPRE.GMRES" href="#HYPRE.GMRES"><code>HYPRE.GMRES</code></a><span class="docstring-category">Type</span><span class="is-flex-grow-1 docstring-article-toggle-button" title="Collapse docstring"></span></header><section><div><pre><code class="language-julia hljs">GMRES(; settings...)</code></pre><p>Create a <code>GMRES</code> solver. See HYPRE API reference for details and supported settings.</p><p><strong>External links</strong></p><ul><li><a href="https://hypre.readthedocs.io/en/latest/api-sol-parcsr.html#breathe-section-title-parcsr-gmres-solver">GMRES API reference</a></li></ul></div><a class="docs-sourcelink" target="_blank" href="https://github.com/fredrikekre/HYPRE.jl/blob/6d5cb517e69443acd2a03260ef1b3d7b38abe9f5/src/solvers.jl#L243-L250">source</a></section></article><article class="docstring"><header><a class="docstring-article-toggle-button fa-solid fa-chevron-down" href="javascript:;" title="Collapse docstring"></a><a class="docstring-binding" id="HYPRE.Hybrid" href="#HYPRE.Hybrid"><code>HYPRE.Hybrid</code></a><span class="docstring-category">Type</span><span class="is-flex-grow-1 docstring-article-toggle-button" title="Collapse docstring"></span></header><section><div><pre><code class="language-julia hljs">Hybrid(; settings...)</code></pre><p>Create a <code>Hybrid</code> solver. See HYPRE API reference for details and supported settings.</p><p><strong>External links</strong></p><ul><li><a href="https://hypre.readthedocs.io/en/latest/solvers-hybrid.html">Hybrid documentation</a></li><li><a href="https://hypre.readthedocs.io/en/latest/api-sol-parcsr.html#breathe-section-title-parcsr-hybrid-solver">Hybrid API reference</a></li></ul></div><a class="docs-sourcelink" target="_blank" href="https://github.com/fredrikekre/HYPRE.jl/blob/6d5cb517e69443acd2a03260ef1b3d7b38abe9f5/src/solvers.jl#L291-L299">source</a></section></article><article class="docstring"><header><a class="docstring-article-toggle-button fa-solid fa-chevron-down" href="javascript:;" title="Collapse docstring"></a><a class="docstring-binding" id="HYPRE.ILU" href="#HYPRE.ILU"><code>HYPRE.ILU</code></a><span class="docstring-category">Type</span><span class="is-flex-grow-1 docstring-article-toggle-button" title="Collapse docstring"></span></header><section><div><pre><code class="language-julia hljs">ILU(; settings...)</code></pre><p>Create a <code>ILU</code> solver/preconditioner. See HYPRE API reference for details and supported settings.</p><p><strong>External links</strong></p><ul><li><a href="https://hypre.readthedocs.io/en/latest/solvers-hypre-ilu.html">ILU documentation</a></li><li><a href="https://hypre.readthedocs.io/en/latest/api-sol-parcsr.html#breathe-section-title-parcsr-ilu-solver">ILU API reference</a></li></ul></div><a class="docs-sourcelink" target="_blank" href="https://github.com/fredrikekre/HYPRE.jl/blob/6d5cb517e69443acd2a03260ef1b3d7b38abe9f5/src/solvers.jl#L341-L350">source</a></section></article><article class="docstring"><header><a class="docstring-article-toggle-button fa-solid fa-chevron-down" href="javascript:;" title="Collapse docstring"></a><a class="docstring-binding" id="HYPRE.PCG" href="#HYPRE.PCG"><code>HYPRE.PCG</code></a><span class="docstring-category">Type</span><span class="is-flex-grow-1 docstring-article-toggle-button" title="Collapse docstring"></span></header><section><div><pre><code class="language-julia hljs">PCG(; settings...)</code></pre><p>Create a <code>PCG</code> solver. See HYPRE API reference for details and supported settings.</p><p><strong>External links</strong></p><ul><li><a href="https://hypre.readthedocs.io/en/latest/api-sol-parcsr.html#breathe-section-title-parcsr-pcg-solver">PCG API reference</a></li></ul></div><a class="docs-sourcelink" target="_blank" href="https://github.com/fredrikekre/HYPRE.jl/blob/6d5cb517e69443acd2a03260ef1b3d7b38abe9f5/src/solvers.jl#L423-L430">source</a></section></article><article class="docstring"><header><a class="docstring-article-toggle-button fa-solid fa-chevron-down" href="javascript:;" title="Collapse docstring"></a><a class="docstring-binding" id="HYPRE.ParaSails" href="#HYPRE.ParaSails"><code>HYPRE.ParaSails</code></a><span class="docstring-category">Type</span><span class="is-flex-grow-1 docstring-article-toggle-button" title="Collapse docstring"></span></header><section><div><pre><code class="language-julia hljs">ParaSails(comm=MPI.COMM_WORLD; settings...)</code></pre><p>Create a <code>ParaSails</code> preconditioner. See HYPRE API reference for details and supported settings.</p><p><strong>External links</strong></p><ul><li><a href="https://hypre.readthedocs.io/en/latest/solvers-parasails.html">ParaSails documentation</a></li><li><a href="https://hypre.readthedocs.io/en/latest/api-sol-parcsr.html#breathe-section-title-parcsr-parasails-preconditioner">ParaSails API reference</a></li></ul></div><a class="docs-sourcelink" target="_blank" href="https://github.com/fredrikekre/HYPRE.jl/blob/6d5cb517e69443acd2a03260ef1b3d7b38abe9f5/src/solvers.jl#L386-L395">source</a></section></article><article class="docstring"><header><a class="docstring-article-toggle-button fa-solid fa-chevron-down" href="javascript:;" title="Collapse docstring"></a><a class="docstring-binding" id="HYPRE.GetNumIterations" href="#HYPRE.GetNumIterations"><code>HYPRE.GetNumIterations</code></a><span class="docstring-category">Function</span><span class="is-flex-grow-1 docstring-article-toggle-button" title="Collapse docstring"></span></header><section><div><pre><code class="language-julia hljs">HYPRE.GetNumIterations(s::HYPRESolver)</code></pre><p>Return number of iterations during the last solve with solver <code>s</code>.</p><p>This function dispatches on the solver to the corresponding C API wrapper <code>LibHYPRE.HYPRE_$(Solver)GetNumIterations</code>.</p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/fredrikekre/HYPRE.jl/blob/6d5cb517e69443acd2a03260ef1b3d7b38abe9f5/src/solvers.jl#L503-L510">source</a></section></article><article class="docstring"><header><a class="docstring-article-toggle-button fa-solid fa-chevron-down" href="javascript:;" title="Collapse docstring"></a><a class="docstring-binding" id="HYPRE.GetFinalRelativeResidualNorm" href="#HYPRE.GetFinalRelativeResidualNorm"><code>HYPRE.GetFinalRelativeResidualNorm</code></a><span class="docstring-category">Function</span><span class="is-flex-grow-1 docstring-article-toggle-button" title="Collapse docstring"></span></header><section><div><pre><code class="language-julia hljs">HYPRE.GetFinalRelativeResidualNorm(s::HYPRESolver)</code></pre><p>Return the final relative residual norm from the last solve with solver <code>s</code>.</p><p>This function dispatches on the solver to the corresponding C API wrapper <code>LibHYPRE.HYPRE_$(Solver)GetFinalRelativeResidualNorm</code>.</p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/fredrikekre/HYPRE.jl/blob/6d5cb517e69443acd2a03260ef1b3d7b38abe9f5/src/solvers.jl#L473-L480">source</a></section></article></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../libhypre/">« LibHYPRE C API</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.7.0 on <span class="colophon-date" title="Wednesday 9 October 2024 21:17">Wednesday 9 October 2024</span>. Using Julia version 1.11.0.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>