Skip to content

Commit 1cee5db

Browse files
committed
Website build
1 parent eec64a4 commit 1cee5db

7 files changed

Lines changed: 13 additions & 13 deletions

6_finite_element_problems.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,13 +317,13 @@ <h3><span class="section-number">6.2.4. </span>Sparse matrices<a class="headerli
317317
are avoided.</p>
318318
<div class="admonition hint">
319319
<p class="admonition-title">Hint</p>
320-
<p>The <a class="reference external" href="http://scipy.github.io/devdocs/reference/sparse.html#module-scipy.sparse" title="(in SciPy v1.11.0.dev0+1409.6d43301)"><code class="xref py py-mod docutils literal notranslate"><span class="pre">scipy.sparse</span></code></a> package provides convenient interfaces
320+
<p>The <a class="reference external" href="http://scipy.github.io/devdocs/reference/sparse.html#module-scipy.sparse" title="(in SciPy v1.11.0.dev0+1660.4a6f2d1)"><code class="xref py py-mod docutils literal notranslate"><span class="pre">scipy.sparse</span></code></a> package provides convenient interfaces
321321
which enable Python code to employ a variety of sparse matrix
322322
formats using essentially identical operations to the dense matrix
323323
case. The skeleton code already contains commands to construct
324324
empty sparse matrices and to solve the resulting linear system. You
325325
may, if you wish, experiment with choosing other sparse formats
326-
from <a class="reference external" href="http://scipy.github.io/devdocs/reference/sparse.html#module-scipy.sparse" title="(in SciPy v1.11.0.dev0+1409.6d43301)"><code class="xref py py-mod docutils literal notranslate"><span class="pre">scipy.sparse</span></code></a>, but it is very strongly suggested that
326+
from <a class="reference external" href="http://scipy.github.io/devdocs/reference/sparse.html#module-scipy.sparse" title="(in SciPy v1.11.0.dev0+1660.4a6f2d1)"><code class="xref py py-mod docutils literal notranslate"><span class="pre">scipy.sparse</span></code></a>, but it is very strongly suggested that
327327
you do <strong>not</strong> switch to a dense numpy array; unless, that is, you
328328
particularly enjoy running out of memory on your computer!</p>
329329
</div>

9_mixed_problems.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ <h3><span class="section-number">9.4.1. </span>Assembling block systems<a class=
380380
</div>
381381
<p>This means that one can first create a full vector of length <span class="math notranslate nohighlight">\(n+m\)</span> and then
382382
slice it to create subvectors that can be used for assembly.</p>
383-
<p>Conversely, <a class="reference external" href="http://scipy.github.io/devdocs/reference/sparse.html#module-scipy.sparse" title="(in SciPy v1.11.0.dev0+1409.6d43301)"><code class="xref py py-mod docutils literal notranslate"><span class="pre">scipy.sparse</span></code></a> provides the <a class="reference external" href="http://scipy.github.io/devdocs/reference/generated/scipy.sparse.bmat.html#scipy.sparse.bmat" title="(in SciPy v1.11.0.dev0+1409.6d43301)"><code class="xref py py-func docutils literal notranslate"><span class="pre">bmat()</span></code></a>
383+
<p>Conversely, <a class="reference external" href="http://scipy.github.io/devdocs/reference/sparse.html#module-scipy.sparse" title="(in SciPy v1.11.0.dev0+1660.4a6f2d1)"><code class="xref py py-mod docutils literal notranslate"><span class="pre">scipy.sparse</span></code></a> provides the <a class="reference external" href="http://scipy.github.io/devdocs/reference/generated/scipy.sparse.bmat.html#scipy.sparse.bmat" title="(in SciPy v1.11.0.dev0+1660.4a6f2d1)"><code class="xref py py-func docutils literal notranslate"><span class="pre">bmat()</span></code></a>
384384
function which will stitch together a larger sparse matrix from blocks. In
385385
order to have the full indexing options you are likely to want for imposing the
386386
boundary conditions, you will probably want to specify that the resulting
@@ -408,15 +408,15 @@ <h3><span class="section-number">9.4.3. </span>Solving the matrix system<a class
408408
<p>The block matrix system that you eventually produce will be larger than many of
409409
those we have previously encountered, and will have non-zero entries further
410410
from the diagonal. This can cause the matrix solver to become expensive in both
411-
time and memory. Fortunately, <a class="reference external" href="http://scipy.github.io/devdocs/reference/sparse.linalg.html#module-scipy.sparse.linalg" title="(in SciPy v1.11.0.dev0+1409.6d43301)"><code class="xref py py-mod docutils literal notranslate"><span class="pre">scipy.sparse.linalg</span></code></a> now incorporates an
411+
time and memory. Fortunately, <a class="reference external" href="http://scipy.github.io/devdocs/reference/sparse.linalg.html#module-scipy.sparse.linalg" title="(in SciPy v1.11.0.dev0+1660.4a6f2d1)"><code class="xref py py-mod docutils literal notranslate"><span class="pre">scipy.sparse.linalg</span></code></a> now incorporates an
412412
interface to <a class="reference external" href="https://portal.nersc.gov/project/sparse/superlu/">SuperLU</a>,
413413
which is a high-performance direct sparse solver. The recommended solution
414414
strategy is therefore:</p>
415415
<ol class="arabic simple">
416-
<li><p>Convert your block matrix to <a class="reference external" href="http://scipy.github.io/devdocs/reference/generated/scipy.sparse.csc_matrix.html#scipy.sparse.csc_matrix" title="(in SciPy v1.11.0.dev0+1409.6d43301)"><code class="xref py py-class docutils literal notranslate"><span class="pre">scipy.sparse.csc_matrix</span></code></a>, which is the
416+
<li><p>Convert your block matrix to <a class="reference external" href="http://scipy.github.io/devdocs/reference/generated/scipy.sparse.csc_matrix.html#scipy.sparse.csc_matrix" title="(in SciPy v1.11.0.dev0+1660.4a6f2d1)"><code class="xref py py-class docutils literal notranslate"><span class="pre">scipy.sparse.csc_matrix</span></code></a>, which is the
417417
format that SuperLU requires.</p></li>
418-
<li><p>Factorise the matrix using <a class="reference external" href="http://scipy.github.io/devdocs/reference/generated/scipy.sparse.linalg.splu.html#scipy.sparse.linalg.splu" title="(in SciPy v1.11.0.dev0+1409.6d43301)"><code class="xref py py-func docutils literal notranslate"><span class="pre">scipy.sparse.linalg.splu()</span></code></a>.</p></li>
419-
<li><p>Use the resulting <a class="reference external" href="http://scipy.github.io/devdocs/reference/generated/scipy.sparse.linalg.SuperLU.html#scipy.sparse.linalg.SuperLU" title="(in SciPy v1.11.0.dev0+1409.6d43301)"><code class="xref py py-class docutils literal notranslate"><span class="pre">SuperLU</span></code></a> object to finally solve
418+
<li><p>Factorise the matrix using <a class="reference external" href="http://scipy.github.io/devdocs/reference/generated/scipy.sparse.linalg.splu.html#scipy.sparse.linalg.splu" title="(in SciPy v1.11.0.dev0+1660.4a6f2d1)"><code class="xref py py-func docutils literal notranslate"><span class="pre">scipy.sparse.linalg.splu()</span></code></a>.</p></li>
419+
<li><p>Use the resulting <a class="reference external" href="http://scipy.github.io/devdocs/reference/generated/scipy.sparse.linalg.SuperLU.html#scipy.sparse.linalg.SuperLU" title="(in SciPy v1.11.0.dev0+1660.4a6f2d1)"><code class="xref py py-class docutils literal notranslate"><span class="pre">SuperLU</span></code></a> object to finally solve
420420
the system.</p></li>
421421
</ol>
422422
</section>

Finiteelementcourse.pdf

-6 Bytes
Binary file not shown.

L4_feprobs.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ <h2><span class="section-number">4.1. </span>Finite element spaces and other Hil
420420
<p><span class="math notranslate nohighlight">\(L\)</span> bounded <span class="math notranslate nohighlight">\(\implies L(u)\leq C\|u\|_{H} \implies |L(u)-L(v)| = |L(u-v)| \leq C\|u-v\|_{H} \, \forall u,v\in H,\)</span> i.e. <span class="math notranslate nohighlight">\(L\)</span> is continuous.</p>
421421
<p>On the other hand, <span class="math notranslate nohighlight">\(L\)</span> continuous <span class="math notranslate nohighlight">\(\implies |L(u-v)| \leq C\|u-v\|_{H}
422422
\quad \forall u,v\in H\)</span>. Pick <span class="math notranslate nohighlight">\(v=0\)</span>, then <span class="math notranslate nohighlight">\(|L(u)| = |L(u-0)| \leq
423-
C|u-0|_H = C|u|_H\)</span>, i.e. <span class="math notranslate nohighlight">\(L\)</span> is bounded.</p>
423+
C\|u-0\|_H = C\|u\|_H\)</span>, i.e. <span class="math notranslate nohighlight">\(L\)</span> is bounded.</p>
424424
</div></div><p>We can also interpret bounded linear functionals as elements of a vector space.</p>
425425
<div class="proof proof-type-definition" id="id20">
426426

@@ -462,7 +462,7 @@ <h2><span class="section-number">4.1. </span>Finite element spaces and other Hil
462462
</div><div class="proof-content">
463463
<p>For <span class="math notranslate nohighlight">\(v,w\in H\)</span>, <span class="math notranslate nohighlight">\(\alpha\in\mathbb{R}\)</span> we have</p>
464464
<div class="math notranslate nohighlight">
465-
\[L_u(v+\alpha w) = (u,v+\alpha w) = (u,v) + \alpha(u,v) = L_u(v)
465+
\[L_u(v+\alpha w) = (u,v+\alpha w) = (u,v) + \alpha(u,w) = L_u(v)
466466
+ \alpha L_u(w).\]</div>
467467
<p>Hence <span class="math notranslate nohighlight">\(L_u\)</span> is linear.</p>
468468
<p>We see that <span class="math notranslate nohighlight">\(L_u\)</span> is bounded by Schwarz inequality,</p>

_modules/fe_utils/scripts/plot_interpolate_lagrange.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ <h1>Source code for fe_utils.scripts.plot_interpolate_lagrange</h1><div class="h
9999
<span class="n">z</span> <span class="o">=</span> <span class="n">fe</span><span class="o">.</span><span class="n">tabulate</span><span class="p">(</span><span class="n">x</span><span class="p">)</span>
100100

101101
<span class="n">fig</span> <span class="o">=</span> <span class="n">plt</span><span class="o">.</span><span class="n">figure</span><span class="p">()</span>
102-
<span class="n">ax</span> <span class="o">=</span> <span class="n">fig</span><span class="o">.</span><span class="n">gca</span><span class="p">(</span><span class="n">projection</span><span class="o">=</span><span class="s1">&#39;3d&#39;</span><span class="p">)</span>
102+
<span class="n">ax</span> <span class="o">=</span> <span class="n">fig</span><span class="o">.</span><span class="n">add_subplot</span><span class="p">(</span><span class="n">projection</span><span class="o">=</span><span class="s1">&#39;3d&#39;</span><span class="p">)</span>
103103

104104
<span class="n">ax</span><span class="o">.</span><span class="n">plot_trisurf</span><span class="p">(</span><span class="n">x</span><span class="p">[:,</span> <span class="mi">0</span><span class="p">],</span> <span class="n">x</span><span class="p">[:,</span> <span class="mi">1</span><span class="p">],</span> <span class="n">np</span><span class="o">.</span><span class="n">dot</span><span class="p">(</span><span class="n">z</span><span class="p">,</span> <span class="n">coefs</span><span class="p">),</span> <span class="n">cmap</span><span class="o">=</span><span class="n">cm</span><span class="o">.</span><span class="n">RdBu</span><span class="p">,</span>
105105
<span class="n">linewidth</span><span class="o">=</span><span class="mi">0</span><span class="p">)</span>

_modules/fe_utils/scripts/plot_lagrange_basis_functions.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ <h1>Source code for fe_utils.scripts.plot_lagrange_basis_functions</h1><div clas
8989
<span class="n">z</span> <span class="o">=</span> <span class="n">fe</span><span class="o">.</span><span class="n">tabulate</span><span class="p">(</span><span class="n">x</span><span class="p">)</span>
9090

9191
<span class="n">fig</span> <span class="o">=</span> <span class="n">plt</span><span class="o">.</span><span class="n">figure</span><span class="p">(</span><span class="n">figsize</span><span class="o">=</span><span class="p">(</span><span class="mi">20</span><span class="p">,</span> <span class="mi">4</span><span class="p">))</span>
92-
<span class="n">ax</span> <span class="o">=</span> <span class="n">fig</span><span class="o">.</span><span class="n">gca</span><span class="p">(</span><span class="n">projection</span><span class="o">=</span><span class="s1">&#39;3d&#39;</span><span class="p">)</span>
92+
<span class="n">ax</span> <span class="o">=</span> <span class="n">fig</span><span class="o">.</span><span class="n">add_subplot</span><span class="p">(</span><span class="n">projection</span><span class="o">=</span><span class="s1">&#39;3d&#39;</span><span class="p">)</span>
9393

9494
<span class="n">offsets</span> <span class="o">=</span> <span class="n">fe</span><span class="o">.</span><span class="n">nodes</span> <span class="o">*</span> <span class="n">fe</span><span class="o">.</span><span class="n">degree</span> <span class="o">*</span> <span class="mf">1.1</span>
9595

_sources/L4_feprobs.rst.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ and continuity.
323323

324324
On the other hand, `L` continuous `\implies |L(u-v)| \leq C\|u-v\|_{H}
325325
\quad \forall u,v\in H`. Pick `v=0`, then `|L(u)| = |L(u-0)| \leq
326-
C|u-0|_H = C|u|_H`, i.e. `L` is bounded.
326+
C\|u-0\|_H = C\|u\|_H`, i.e. `L` is bounded.
327327

328328
We can also interpret bounded linear functionals as elements of a vector space.
329329

@@ -359,7 +359,7 @@ There is a simple mapping from `H` to `H'`.
359359

360360
.. math::
361361
362-
L_u(v+\alpha w) = (u,v+\alpha w) = (u,v) + \alpha(u,v) = L_u(v)
362+
L_u(v+\alpha w) = (u,v+\alpha w) = (u,v) + \alpha(u,w) = L_u(v)
363363
+ \alpha L_u(w).
364364
365365
Hence `L_u` is linear.

0 commit comments

Comments
 (0)