Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
JSchoeberl committed Mar 6, 2024
1 parent aea2ff0 commit 74e5753
Show file tree
Hide file tree
Showing 17 changed files with 1,388 additions and 1,412 deletions.
4 changes: 2 additions & 2 deletions _sources/iterative/Chebyshev.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -434,8 +434,8 @@
"source": [
"errhist = []\n",
"gfu.vec.data = ChebyIteration(a.mat, f.vec, pre, gamma1, gamma2, maxit=500,\n",
" # callback=lambda it,err: print(\"it=\",it,\"err=\",err) \n",
" callback = lambda it,err: errhist.append(err)\n",
" # callback=lambda it,err: print(\"it=\",it,\"err=\",err) \n",
" callback = lambda it,err: errhist.append(err)\n",
" )"
]
},
Expand Down
10 changes: 5 additions & 5 deletions _sources/iterative/Richardson.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"This means the new error is obtained from the old error by the error propagation matrix\n",
"\n",
"$$\n",
"e^{k+1} = (I - \\alpha A) \\, e^k\n",
"e^{k+1} = \\underbrace{(I - \\alpha A)}_{M} \\, e^k\n",
"$$\n",
"\n",
"Two strategies to verify convergence are:\n",
Expand Down Expand Up @@ -82,9 +82,9 @@
"However, if $\\| I - \\alpha A \\| < 1$, then\n",
"\n",
"$$\n",
"\\| e^k \\| \\leq \\| I - \\alpha A \\| \\, \\| e^k \\|,\n",
"\\| e^{k+1} \\| \\leq \\| I - \\alpha A \\| \\, \\| e^k \\|,\n",
"$$\n",
"and the error decreases in every interation step. Note that the matrix norm is the operator norm generated by the vector norm.\n",
"proves that the error decreases in every iteration step. Note that the matrix norm is the operator norm generated by the vector norm.\n",
"\n",
"Some facts:\n",
"* If the norm $\\| \\cdot \\|$ is generated by an inner product $\\left< \\cdot, \\cdot \\right>$ (parallelogram identity), and $M$ is some self adjoint matrix with respect to this inner product, i.e.\n",
Expand All @@ -96,10 +96,10 @@
"\n",
"* If $\\left< \\cdot , \\cdot \\right>$ is the Euklidean inner product, then $M$ is self-adjoint exactly when $M$ is symmetric.\n",
" \n",
"* Every operator operator norm is bounded by the spectral radius. There exists some norm such that the operator norm is arbitrary close to the spectral radius, i.e.\n",
"* The spectral radius is bounded by every operator operator norm. There exists some norm such that the operator norm is arbitrary close to the spectral radius, i.e.\n",
" \n",
" $$\n",
" \\rho(M) = \\sup_{ \\text{norms} \\| \\cdot \\| } \\| M \\|\n",
" \\rho(M) = \\inf_{ \\text{norms} \\| \\cdot \\| } \\| M \\|\n",
" $$"
]
},
Expand Down
40 changes: 7 additions & 33 deletions _sources/iterative/conjugategradients.ipynb

Large diffs are not rendered by default.

29 changes: 5 additions & 24 deletions _sources/iterative/gradientmethod.ipynb

Large diffs are not rendered by default.

20 changes: 19 additions & 1 deletion _sources/iterative/preconditioning.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -501,10 +501,28 @@
"$$\n"
]
},
{
"cell_type": "markdown",
"id": "88f9e839-3b46-4488-a3c8-a85bf4d8a74a",
"metadata": {},
"source": [
"**Exercise:**\n",
"Repeat the experiments with the forward-backward Gauss-Seidel preconditioner. You get it via\n",
"`pre = a.mat.CreateSmoother(GS=True)`. What do you observe for the spectral radius of $C^{-1} A$ ? "
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "f9d7aeb3-fbd8-430d-806d-a4e5cdc89565",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"id": "completed-lotus",
"id": "6256435d-c0e2-4e5e-bc89-9b6ce2dafff6",
"metadata": {},
"outputs": [],
"source": []
Expand Down
2 changes: 1 addition & 1 deletion genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<link rel="stylesheet" type="text/css" href="_static/styles/sphinx-book-theme.css?v=384b581d" />
<link rel="stylesheet" type="text/css" href="_static/togglebutton.css?v=13237357" />
<link rel="stylesheet" type="text/css" href="_static/copybutton.css?v=76b2166b" />
<link rel="stylesheet" type="text/css" href="_static/mystnb.4510f1fc1dee50b3e5859aac5469c37c29e427902b24a333a5f9fcb2f0b3ac41.css" />
<link rel="stylesheet" type="text/css" href="_static/mystnb.4510f1fc1dee50b3e5859aac5469c37c29e427902b24a333a5f9fcb2f0b3ac41.css?v=be8a1c11" />
<link rel="stylesheet" type="text/css" href="_static/sphinx-thebe.css?v=4fa983c6" />
<link rel="stylesheet" type="text/css" href="_static/design-style.1e8bd061cd6da7fc9cf755528e8ffc24.min.css?v=0a3b3ea7" />

Expand Down
2 changes: 1 addition & 1 deletion intro.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<link rel="stylesheet" type="text/css" href="_static/styles/sphinx-book-theme.css?v=384b581d" />
<link rel="stylesheet" type="text/css" href="_static/togglebutton.css?v=13237357" />
<link rel="stylesheet" type="text/css" href="_static/copybutton.css?v=76b2166b" />
<link rel="stylesheet" type="text/css" href="_static/mystnb.4510f1fc1dee50b3e5859aac5469c37c29e427902b24a333a5f9fcb2f0b3ac41.css" />
<link rel="stylesheet" type="text/css" href="_static/mystnb.4510f1fc1dee50b3e5859aac5469c37c29e427902b24a333a5f9fcb2f0b3ac41.css?v=be8a1c11" />
<link rel="stylesheet" type="text/css" href="_static/sphinx-thebe.css?v=4fa983c6" />
<link rel="stylesheet" type="text/css" href="_static/design-style.1e8bd061cd6da7fc9cf755528e8ffc24.min.css?v=0a3b3ea7" />

Expand Down
18 changes: 9 additions & 9 deletions iterative/Chebyshev.html

Large diffs are not rendered by default.

2,628 changes: 1,314 additions & 1,314 deletions iterative/Richardson.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions iterative/conjugategradients.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion iterative/gradientmethod.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<link rel="stylesheet" type="text/css" href="../_static/styles/sphinx-book-theme.css?v=384b581d" />
<link rel="stylesheet" type="text/css" href="../_static/togglebutton.css?v=13237357" />
<link rel="stylesheet" type="text/css" href="../_static/copybutton.css?v=76b2166b" />
<link rel="stylesheet" type="text/css" href="../_static/mystnb.4510f1fc1dee50b3e5859aac5469c37c29e427902b24a333a5f9fcb2f0b3ac41.css" />
<link rel="stylesheet" type="text/css" href="../_static/mystnb.4510f1fc1dee50b3e5859aac5469c37c29e427902b24a333a5f9fcb2f0b3ac41.css?v=be8a1c11" />
<link rel="stylesheet" type="text/css" href="../_static/sphinx-thebe.css?v=4fa983c6" />
<link rel="stylesheet" type="text/css" href="../_static/design-style.1e8bd061cd6da7fc9cf755528e8ffc24.min.css?v=0a3b3ea7" />

Expand Down
29 changes: 16 additions & 13 deletions iterative/preconditioning.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<link rel="stylesheet" type="text/css" href="../_static/styles/sphinx-book-theme.css?v=384b581d" />
<link rel="stylesheet" type="text/css" href="../_static/togglebutton.css?v=13237357" />
<link rel="stylesheet" type="text/css" href="../_static/copybutton.css?v=76b2166b" />
<link rel="stylesheet" type="text/css" href="../_static/mystnb.4510f1fc1dee50b3e5859aac5469c37c29e427902b24a333a5f9fcb2f0b3ac41.css" />
<link rel="stylesheet" type="text/css" href="../_static/mystnb.4510f1fc1dee50b3e5859aac5469c37c29e427902b24a333a5f9fcb2f0b3ac41.css?v=be8a1c11" />
<link rel="stylesheet" type="text/css" href="../_static/sphinx-thebe.css?v=4fa983c6" />
<link rel="stylesheet" type="text/css" href="../_static/design-style.1e8bd061cd6da7fc9cf755528e8ffc24.min.css?v=0a3b3ea7" />

Expand Down Expand Up @@ -590,25 +590,25 @@ <h2><span class="section-number">47.1. </span>The preconditioned Richardson iter
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>0.5628463859901822
1.3004844587339313
1.3642450612653387
1.4017278282832693
1.3004844587339315
1.3642450612653385
1.4017278282832695
1.428927912054942
1.4511979272962623
1.4709697187344926
1.489456390475471
1.451197927296262
1.4709697187344923
1.4894563904754712
1.5072557909082451
1.5246072026789994
1.5415208146951107
1.557860994429892
1.5578609944298918
1.5734139487420604
1.5879473334387257
1.601258905051369
1.6132090247120108
1.587947333438726
1.6012589050513686
1.613209024712011
1.6237346368041081
1.632846787976177
1.6328467879761772
1.6406169867162068
1.6471585575973842
1.6471585575973837
</pre></div>
</div>
</div>
Expand Down Expand Up @@ -876,6 +876,9 @@ <h2><span class="section-number">47.3. </span>Jacobi and Gauss Seidel Preconditi
\[
\left&lt; M_{FGS} x, M_{FGS} x \right&gt;_A = \left&lt; M_{BGS} M_{FGS} x, x \right&gt;_A \leq \| M_{FBGS} \|_A \| x \|_A^2
\]</div>
<p><strong>Exercise:</strong>
Repeat the experiments with the forward-backward Gauss-Seidel preconditioner. You get it via
<code class="docutils literal notranslate"><span class="pre">pre</span> <span class="pre">=</span> <span class="pre">a.mat.CreateSmoother(GS=True)</span></code>. What do you observe for the spectral radius of <span class="math notranslate nohighlight">\(C^{-1} A\)</span> ?</p>
</section>
</section>

Expand Down
2 changes: 1 addition & 1 deletion iterative/simple.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<link rel="stylesheet" type="text/css" href="../_static/styles/sphinx-book-theme.css?v=384b581d" />
<link rel="stylesheet" type="text/css" href="../_static/togglebutton.css?v=13237357" />
<link rel="stylesheet" type="text/css" href="../_static/copybutton.css?v=76b2166b" />
<link rel="stylesheet" type="text/css" href="../_static/mystnb.4510f1fc1dee50b3e5859aac5469c37c29e427902b24a333a5f9fcb2f0b3ac41.css" />
<link rel="stylesheet" type="text/css" href="../_static/mystnb.4510f1fc1dee50b3e5859aac5469c37c29e427902b24a333a5f9fcb2f0b3ac41.css?v=be8a1c11" />
<link rel="stylesheet" type="text/css" href="../_static/sphinx-thebe.css?v=4fa983c6" />
<link rel="stylesheet" type="text/css" href="../_static/design-style.1e8bd061cd6da7fc9cf755528e8ffc24.min.css?v=0a3b3ea7" />

Expand Down
2 changes: 1 addition & 1 deletion mixedelasticity/dynamics.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<link rel="stylesheet" type="text/css" href="../_static/styles/sphinx-book-theme.css?v=384b581d" />
<link rel="stylesheet" type="text/css" href="../_static/togglebutton.css?v=13237357" />
<link rel="stylesheet" type="text/css" href="../_static/copybutton.css?v=76b2166b" />
<link rel="stylesheet" type="text/css" href="../_static/mystnb.4510f1fc1dee50b3e5859aac5469c37c29e427902b24a333a5f9fcb2f0b3ac41.css" />
<link rel="stylesheet" type="text/css" href="../_static/mystnb.4510f1fc1dee50b3e5859aac5469c37c29e427902b24a333a5f9fcb2f0b3ac41.css?v=be8a1c11" />
<link rel="stylesheet" type="text/css" href="../_static/sphinx-thebe.css?v=4fa983c6" />
<link rel="stylesheet" type="text/css" href="../_static/design-style.1e8bd061cd6da7fc9cf755528e8ffc24.min.css?v=0a3b3ea7" />

Expand Down
2 changes: 1 addition & 1 deletion plates/tdnnsplate.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<link rel="stylesheet" type="text/css" href="../_static/styles/sphinx-book-theme.css?v=384b581d" />
<link rel="stylesheet" type="text/css" href="../_static/togglebutton.css?v=13237357" />
<link rel="stylesheet" type="text/css" href="../_static/copybutton.css?v=76b2166b" />
<link rel="stylesheet" type="text/css" href="../_static/mystnb.4510f1fc1dee50b3e5859aac5469c37c29e427902b24a333a5f9fcb2f0b3ac41.css" />
<link rel="stylesheet" type="text/css" href="../_static/mystnb.4510f1fc1dee50b3e5859aac5469c37c29e427902b24a333a5f9fcb2f0b3ac41.css?v=be8a1c11" />
<link rel="stylesheet" type="text/css" href="../_static/sphinx-thebe.css?v=4fa983c6" />
<link rel="stylesheet" type="text/css" href="../_static/design-style.1e8bd061cd6da7fc9cf755528e8ffc24.min.css?v=0a3b3ea7" />

Expand Down
2 changes: 1 addition & 1 deletion search.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<link rel="stylesheet" type="text/css" href="_static/styles/sphinx-book-theme.css?v=384b581d" />
<link rel="stylesheet" type="text/css" href="_static/togglebutton.css?v=13237357" />
<link rel="stylesheet" type="text/css" href="_static/copybutton.css?v=76b2166b" />
<link rel="stylesheet" type="text/css" href="_static/mystnb.4510f1fc1dee50b3e5859aac5469c37c29e427902b24a333a5f9fcb2f0b3ac41.css" />
<link rel="stylesheet" type="text/css" href="_static/mystnb.4510f1fc1dee50b3e5859aac5469c37c29e427902b24a333a5f9fcb2f0b3ac41.css?v=be8a1c11" />
<link rel="stylesheet" type="text/css" href="_static/sphinx-thebe.css?v=4fa983c6" />
<link rel="stylesheet" type="text/css" href="_static/design-style.1e8bd061cd6da7fc9cf755528e8ffc24.min.css?v=0a3b3ea7" />

Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

0 comments on commit 74e5753

Please sign in to comment.