You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p><spanclass="math notranslate nohighlight">\((\ddagger)\)</span> The <aclass="reference internal" href="cla_utils.html#cla_utils.exercises2.GS_classical" title="cla_utils.exercises2.GS_classical"><codeclass="xref py py-func docutils literal notranslate"><spanclass="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 <spanclass="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 <spanclass="math notranslate nohighlight">\(R\)</span>). The test script <codeclass="docutils literal notranslate"><spanclass="pre">test_exercises2.py</span></code>
205
-
in the <codeclass="docutils literal notranslate"><spanclass="pre">test</span></code> directory will test this function.</p>
198
+
<p><spanclass="math notranslate nohighlight">\((\ddagger)\)</span> The <aclass="reference internal" href="cla_utils.html#cla_utils.exercises2.GS_classical" title="cla_utils.exercises2.GS_classical"><codeclass="xref py py-func docutils literal notranslate"><spanclass="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 <spanclass="math notranslate nohighlight">\(A\)</span>, without introducing
203
+
additional intermediate arrays (you will need to create a new array
204
+
to store <spanclass="math notranslate nohighlight">\(R\)</span>). The test script <codeclass="docutils literal notranslate"><spanclass="pre">test_exercises2.py</span></code> in the
205
+
<codeclass="docutils literal notranslate"><spanclass="pre">test</span></code> directory will test this function.</p>
206
206
</div></div><divclass="admonition hint">
207
207
<pclass="admonition-title">Hint</p>
208
208
<p>The <spanclass="math notranslate nohighlight">\((\ddagger)\)</span> symbol in an exercise indicates that the code for
algorithm above, using Numpy slice notation where possible.
322
322
What is the minimal number of Python
323
323
for loops possible?</p>
324
-
<p>The function should work “in place” by making a
325
-
copy of <spanclass="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 <spanclass="math notranslate nohighlight">\(A\)</span>,
325
+
without introducing additional intermediate arrays (you will need
326
+
to create a new array to store <spanclass="math notranslate nohighlight">\(R\)</span>). The test script
327
327
<codeclass="docutils literal notranslate"><spanclass="pre">test_exercises2.py</span></code> in the <codeclass="docutils literal notranslate"><spanclass="pre">test</span></code> directory will test this
<aclass="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)"><codeclass="xref py py-func docutils literal notranslate"><spanclass="pre">scipy.linalg.solve_triangular()</span></code></a> to solve the resulting upper
839
+
<aclass="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)"><codeclass="xref py py-func docutils literal notranslate"><spanclass="pre">scipy.linalg.solve_triangular()</span></code></a> to solve the resulting upper
840
840
triangular system, before returning the solution <spanclass="math notranslate nohighlight">\(x\)</span>. The test
841
841
script <codeclass="docutils literal notranslate"><spanclass="pre">test_exercises3.py</span></code> in the <codeclass="docutils literal notranslate"><spanclass="pre">test</span></code> directory will also
0 commit comments