Skip to content

Commit d020403

Browse files
committed
Website build
1 parent 59c64ef commit d020403

File tree

6 files changed

+31
-24
lines changed

6 files changed

+31
-24
lines changed
1 Byte
Binary file not shown.

L2_QR_factorisation.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -195,14 +195,14 @@ <h2><span class="section-number">2.2. </span>QR factorisation by classical Gram-
195195
<span class="proof-type">Exercise 2.4</span>
196196

197197
</div><div class="proof-content">
198-
<p><span class="math notranslate nohighlight">\((\ddagger)\)</span> The <a class="reference internal" href="cla_utils.html#cla_utils.exercises2.GS_classical" title="cla_utils.exercises2.GS_classical"><code class="xref py py-func docutils literal notranslate"><span class="pre">cla_utils.exercises2.GS_classical()</span></code></a> function has been
199-
left unimplemented. It should implement the classical Gram-Schmidt
200-
algorithm above, using Numpy slice notation so that only one Python
201-
for loop is used. The function should work “in place” by making a
202-
copy of <span class="math notranslate nohighlight">\(A\)</span> and then changing the values in the copy, without
203-
introducing additional intermediate arrays (you will need to create
204-
a new array to store <span class="math notranslate nohighlight">\(R\)</span>). The test script <code class="docutils literal notranslate"><span class="pre">test_exercises2.py</span></code>
205-
in the <code class="docutils literal notranslate"><span class="pre">test</span></code> directory will test this function.</p>
198+
<p><span class="math notranslate nohighlight">\((\ddagger)\)</span> The <a class="reference internal" href="cla_utils.html#cla_utils.exercises2.GS_classical" title="cla_utils.exercises2.GS_classical"><code class="xref py py-func docutils literal notranslate"><span class="pre">cla_utils.exercises2.GS_classical()</span></code></a> function
199+
has been left unimplemented. It should implement the classical
200+
Gram-Schmidt algorithm above, using Numpy slice notation so that
201+
only one Python for loop is used. The function should work “in
202+
place” by changing the values in <span class="math notranslate nohighlight">\(A\)</span>, without introducing
203+
additional intermediate arrays (you will need to create a new array
204+
to store <span class="math notranslate nohighlight">\(R\)</span>). The test script <code class="docutils literal notranslate"><span class="pre">test_exercises2.py</span></code> in the
205+
<code class="docutils literal notranslate"><span class="pre">test</span></code> directory will test this function.</p>
206206
</div></div><div class="admonition hint">
207207
<p class="admonition-title">Hint</p>
208208
<p>The <span class="math notranslate nohighlight">\((\ddagger)\)</span> symbol in an exercise indicates that the code for
@@ -321,9 +321,9 @@ <h2><span class="section-number">2.4. </span>Modified Gram-Schmidt<a class="head
321321
algorithm above, using Numpy slice notation where possible.
322322
What is the minimal number of Python
323323
for loops possible?</p>
324-
<p>The function should work “in place” by making a
325-
copy of <span class="math notranslate nohighlight">\(A\)</span> and then changing those values, without introducing
326-
additional intermediate arrays. The test script
324+
<p>The function should work “in place” by changing the values in <span class="math notranslate nohighlight">\(A\)</span>,
325+
without introducing additional intermediate arrays (you will need
326+
to create a new array to store <span class="math notranslate nohighlight">\(R\)</span>). The test script
327327
<code class="docutils literal notranslate"><span class="pre">test_exercises2.py</span></code> in the <code class="docutils literal notranslate"><span class="pre">test</span></code> directory will test this
328328
function.</p>
329329
</div></div><div class="proof proof-type-exercise" id="id6">
@@ -836,7 +836,7 @@ <h2><span class="section-number">2.7. </span>Application: Least squares problems
836836
by forming an appropriate augmented matrix <span class="math notranslate nohighlight">\(\hat{A}\)</span>, calling
837837
<a class="reference internal" href="cla_utils.html#cla_utils.exercises3.householder" title="cla_utils.exercises3.householder"><code class="xref py py-func docutils literal notranslate"><span class="pre">cla_utils.exercises3.householder()</span></code></a> and extracting appropriate
838838
subarrays using slice notation, before using
839-
<a class="reference external" href="http://scipy.github.io/devdocs/reference/generated/scipy.linalg.solve_triangular.html#scipy.linalg.solve_triangular" title="(in SciPy v1.10.0.dev0+2025.74946d2)"><code class="xref py py-func docutils literal notranslate"><span class="pre">scipy.linalg.solve_triangular()</span></code></a> to solve the resulting upper
839+
<a class="reference external" href="http://scipy.github.io/devdocs/reference/generated/scipy.linalg.solve_triangular.html#scipy.linalg.solve_triangular" title="(in SciPy v1.10.0.dev0+2059.a082eb4)"><code class="xref py py-func docutils literal notranslate"><span class="pre">scipy.linalg.solve_triangular()</span></code></a> to solve the resulting upper
840840
triangular system, before returning the solution <span class="math notranslate nohighlight">\(x\)</span>. The test
841841
script <code class="docutils literal notranslate"><span class="pre">test_exercises3.py</span></code> in the <code class="docutils literal notranslate"><span class="pre">test</span></code> directory will also
842842
test this function.</p>

_sources/L2_QR_factorisation.rst.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -161,14 +161,14 @@ for code blocks in pseudo-code in these notes.)
161161

162162
.. proof:exercise::
163163
164-
`(\ddagger)` The :func:`cla_utils.exercises2.GS_classical` function has been
165-
left unimplemented. It should implement the classical Gram-Schmidt
166-
algorithm above, using Numpy slice notation so that only one Python
167-
for loop is used. The function should work "in place" by making a
168-
copy of `A` and then changing the values in the copy, without
169-
introducing additional intermediate arrays (you will need to create
170-
a new array to store `R`). The test script ``test_exercises2.py``
171-
in the ``test`` directory will test this function.
164+
`(\ddagger)` The :func:`cla_utils.exercises2.GS_classical` function
165+
has been left unimplemented. It should implement the classical
166+
Gram-Schmidt algorithm above, using Numpy slice notation so that
167+
only one Python for loop is used. The function should work "in
168+
place" by changing the values in `A`, without introducing
169+
additional intermediate arrays (you will need to create a new array
170+
to store `R`). The test script ``test_exercises2.py`` in the
171+
``test`` directory will test this function.
172172

173173
.. hint::
174174

@@ -321,9 +321,9 @@ in `A` with the `v` s and eventually the `q` s.
321321
What is the minimal number of Python
322322
for loops possible?
323323

324-
The function should work "in place" by making a
325-
copy of `A` and then changing those values, without introducing
326-
additional intermediate arrays. The test script
324+
The function should work "in place" by changing the values in `A`,
325+
without introducing additional intermediate arrays (you will need
326+
to create a new array to store `R`). The test script
327327
``test_exercises2.py`` in the ``test`` directory will test this
328328
function.
329329

_sources/errata.rst.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ Errata for 2022/23
77
Here we'll list all the updates to the exercises and coursework Classroom
88
repositories for Autumn 2022. An up to date version is in the
99
`public repository <https://github.com/comp-lin-alg/comp-lin-alg-course>`_.
10+
11+
* Exercises 2.4 and 2.5: the tests expect you to change the array
12+
provided as input and not make a copy.

errata.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ <h1>Errata for 2022/23<a class="headerlink" href="#errata-for-2022-23" title="Pe
5252
<p>Here we’ll list all the updates to the exercises and coursework Classroom
5353
repositories for Autumn 2022. An up to date version is in the
5454
<a class="reference external" href="https://github.com/comp-lin-alg/comp-lin-alg-course">public repository</a>.</p>
55+
<ul class="simple">
56+
<li><p>Exercises 2.4 and 2.5: the tests expect you to change the array
57+
provided as input and not make a copy.</p></li>
58+
</ul>
5559
</section>
5660

5761

searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)