|
5 | 5 | <meta charset="utf-8" /> |
6 | 6 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" /> |
7 | 7 |
|
8 | | - <title>2. Constructing finite elements — Finite element course 2024.0 documentation</title> |
| 8 | + <title>2. Constructing finite elements — Finite element course 2026.0 documentation</title> |
9 | 9 | <link rel="stylesheet" type="text/css" href="_static/pygments.css?v=03e43079" /> |
10 | 10 | <link rel="stylesheet" type="text/css" href="_static/fenics.css?v=7793b76c" /> |
11 | 11 | <link rel="stylesheet" type="text/css" href="_static/proof.css" /> |
12 | 12 | <link rel="stylesheet" type="text/css" href="_static/sphinx-design.min.css?v=95c83b7e" /> |
13 | | - <script src="_static/documentation_options.js?v=7ff0cb77"></script> |
| 13 | + <script src="_static/documentation_options.js?v=9c5a5fc5"></script> |
14 | 14 | <script src="_static/doctools.js?v=9a2dae69"></script> |
15 | 15 | <script src="_static/sphinx_highlight.js?v=dc90522c"></script> |
16 | 16 | <script src="_static/proof.js"></script> |
@@ -357,7 +357,7 @@ <h2><span class="section-number">2.5. </span>Implementing finite elements in Pyt |
357 | 357 | <code class="docutils literal notranslate"><span class="pre">test/test_04_init_finite_element.py</span></code>.</p> |
358 | 358 | </div></div><div class="admonition hint"> |
359 | 359 | <p class="admonition-title">Hint</p> |
360 | | -<p>The <a class="reference external" href="https://numpy.org/doc/stable/reference/generated/numpy.linalg.inv.html#numpy.linalg.inv" title="(in NumPy v2.2)"><code class="xref py py-func docutils literal notranslate"><span class="pre">numpy.linalg.inv()</span></code></a> function may be |
| 360 | +<p>The <a class="reference external" href="https://numpy.org/doc/stable/reference/generated/numpy.linalg.inv.html#numpy.linalg.inv" title="(in NumPy v2.4)"><code class="xref py py-func docutils literal notranslate"><span class="pre">numpy.linalg.inv()</span></code></a> function may be |
361 | 361 | used to invert the matrix.</p> |
362 | 362 | </div> |
363 | 363 | </section> |
@@ -491,15 +491,15 @@ <h2><span class="section-number">2.8. </span>Gradients of basis functions<a clas |
491 | 491 | <code class="docutils literal notranslate"><span class="pre">test/test_03_vandermonde_matrix.py</span></code>.</p> |
492 | 492 | </div></div><div class="admonition hint"> |
493 | 493 | <p class="admonition-title">Hint</p> |
494 | | -<p>The <a class="reference external" href="https://numpy.org/doc/stable/reference/generated/numpy.ndarray.transpose.html#numpy.ndarray.transpose" title="(in NumPy v2.2)"><code class="xref py py-meth docutils literal notranslate"><span class="pre">transpose()</span></code></a> method of numpy arrays enables |
| 494 | +<p>The <a class="reference external" href="https://numpy.org/doc/stable/reference/generated/numpy.ndarray.transpose.html#numpy.ndarray.transpose" title="(in NumPy v2.4)"><code class="xref py py-meth docutils literal notranslate"><span class="pre">transpose()</span></code></a> method of numpy arrays enables |
495 | 495 | generalised transposes swapping any dimensions.</p> |
496 | 496 | </div> |
497 | 497 | <div class="admonition hint"> |
498 | 498 | <p class="admonition-title">Hint</p> |
499 | 499 | <p>At least one of the natural ways of implementing this function |
500 | 500 | results in a whole load of <code class="xref py py-data docutils literal notranslate"><span class="pre">nan</span></code> values in the generalised |
501 | 501 | Vandermonde matrix. In this case, you might find |
502 | | -<a class="reference external" href="https://numpy.org/doc/stable/reference/generated/numpy.nan_to_num.html#numpy.nan_to_num" title="(in NumPy v2.2)"><code class="xref py py-func docutils literal notranslate"><span class="pre">numpy.nan_to_num()</span></code></a> useful.</p> |
| 502 | +<a class="reference external" href="https://numpy.org/doc/stable/reference/generated/numpy.nan_to_num.html#numpy.nan_to_num" title="(in NumPy v2.4)"><code class="xref py py-func docutils literal notranslate"><span class="pre">numpy.nan_to_num()</span></code></a> useful.</p> |
503 | 503 | </div> |
504 | 504 | <div class="proof proof-type-exercise" id="id14"> |
505 | 505 |
|
@@ -532,7 +532,7 @@ <h2><span class="section-number">2.8. </span>Gradients of basis functions<a clas |
532 | 532 | </div> |
533 | 533 | </details><div class="admonition hint"> |
534 | 534 | <p class="admonition-title">Hint</p> |
535 | | -<p>The <a class="reference external" href="https://numpy.org/doc/stable/reference/generated/numpy.einsum.html#numpy.einsum" title="(in NumPy v2.2)"><code class="xref py py-func docutils literal notranslate"><span class="pre">numpy.einsum()</span></code></a> function implements generalised tensor |
| 535 | +<p>The <a class="reference external" href="https://numpy.org/doc/stable/reference/generated/numpy.einsum.html#numpy.einsum" title="(in NumPy v2.4)"><code class="xref py py-func docutils literal notranslate"><span class="pre">numpy.einsum()</span></code></a> function implements generalised tensor |
536 | 536 | contractions using <a class="reference external" href="http://mathworld.wolfram.com/EinsteinSummation.html">Einstein summation notation</a>. For |
537 | 537 | example:</p> |
538 | 538 | <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">A</span> <span class="o">=</span> <span class="n">numpy</span><span class="o">.</span><span class="n">einsum</span><span class="p">(</span><span class="s2">"ijk,jl->ilk"</span><span class="p">,</span> <span class="n">T</span><span class="p">,</span> <span class="n">C</span><span class="p">)</span> |
@@ -604,7 +604,7 @@ <h2><span class="section-number">2.9. </span>Interpolating functions to the fini |
604 | 604 | <div class="clearer"></div> |
605 | 605 | </div> |
606 | 606 | <div class="footer" role="contentinfo"> |
607 | | - © Copyright 2014-2024, David A. Ham and Colin J. Cotter. |
| 607 | + © Copyright 2014-2026, David A. Ham and Colin J. Cotter. |
608 | 608 | Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.4.7. |
609 | 609 | </div> |
610 | 610 | </body> |
|
0 commit comments