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>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
194
199
left unimplemented. It should implement the classical Gram-Schmidt
195
200
algorithm above, using Numpy slice notation so that only one Python
196
-
for loop is used. The function should work “in place” by changing
197
-
the values in <spanclass="math notranslate nohighlight">\(A\)</span>, without introducing additional intermediate
198
-
arrays (you will need to create a new array to store <spanclass="math notranslate nohighlight">\(R\)</span>). The test
199
-
script <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
200
-
this function.</p>
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>
<h2><spanclass="section-number">2.3. </span>Projector interpretation of Gram-Schmidt<aclass="headerlink" href="#projector-interpretation-of-gram-schmidt" title="Permalink to this headline">¶</a></h2>
algorithm above, using Numpy slice notation where possible.
308
313
What is the minimal number of Python
309
314
for loops possible?</p>
310
-
<p>The function should work “in place” by changing the values of <spanclass="math notranslate nohighlight">\(A\)</span>,
311
-
without introducing additional intermediate arrays. The test script
315
+
<p>The function should work “in place” by making a
316
+
copy of <spanclass="math notranslate nohighlight">\(A\)</span> and then changing those values, without introducing
317
+
additional intermediate arrays. The test script
312
318
<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 internal" href="cla_utils.html#cla_utils.exercises3.householder" title="cla_utils.exercises3.householder"><codeclass="xref py py-func docutils literal notranslate"><spanclass="pre">cla_utils.exercises3.householder()</span></code></a> to use the <codeclass="docutils literal notranslate"><spanclass="pre">kmax</span></code>
683
689
argument. You may make use of the built-in triangular solve
triangular matrix algorithms briefly later). The test script
686
692
<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 test this
687
693
function.</p>
@@ -793,7 +799,7 @@ <h2><span class="section-number">2.7. </span>Application: Least squares problems
<aclass="reference external" href="http://scipy.github.io/devdocs/reference/generated/scipy.linalg.solve_triangular.html#scipy.linalg.solve_triangular" title="(in SciPy v1.8.0.dev0+1859.14341ea)"><codeclass="xref py py-func docutils literal notranslate"><spanclass="pre">scipy.linalg.solve_triangular()</span></code></a> to solve the resulting upper triangular
802
+
<aclass="reference external" href="http://scipy.github.io/devdocs/reference/generated/scipy.linalg.solve_triangular.html#scipy.linalg.solve_triangular" title="(in SciPy v1.8.0.dev0+1987.d7fa27f)"><codeclass="xref py py-func docutils literal notranslate"><spanclass="pre">scipy.linalg.solve_triangular()</span></code></a> to solve the resulting upper triangular
797
803
system, before returning the solution <spanclass="math notranslate nohighlight">\(x\)</span>. The test script
798
804
<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 test this
0 commit comments