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
194
left unimplemented. It should implement the classical Gram-Schmidt
195
195
algorithm above, using Numpy slice notation so that only one Python
196
-
for loop is used. The function should work “in place” by making a
197
-
copy of <spanclass="math notranslate nohighlight">\(A\)</span> and then changing the values in the copy, without
198
-
introducing additional intermediate arrays (you will need to create
199
-
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>
200
-
in the <codeclass="docutils literal notranslate"><spanclass="pre">test</span></code> directory will test this function.</p>
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
<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
308
What is the minimal number of Python
309
309
for loops possible?</p>
310
-
<p>The function should work “in place” by making a
311
-
copy of <spanclass="math notranslate nohighlight">\(A\)</span> and then changing those values, without introducing
312
-
additional intermediate arrays. The test script
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
313
312
<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>
684
683
argument. You may make use of the built-in triangular solve
triangular matrix algorithms briefly later). The test script
687
686
<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
688
687
function.</p>
@@ -794,7 +793,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+1767.0785d6f)"><codeclass="xref py py-func docutils literal notranslate"><spanclass="pre">scipy.linalg.solve_triangular()</span></code></a> to solve the resulting upper triangular
796
+
<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
798
797
system, before returning the solution <spanclass="math notranslate nohighlight">\(x\)</span>. The test script
799
798
<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
Copy file name to clipboardExpand all lines: exercises.html
+3-18Lines changed: 3 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -124,24 +124,9 @@ <h2>How to do the computational exercises<a class="headerlink" href="#how-to-do-
124
124
<p>As you do the exercises, <strong>commit your code</strong> to your repository. This
125
125
will build up your computational exercise solution sets. You should
126
126
commit code early and often - small commits are easier to understand
127
-
and debug than large ones. <strong>Never</strong> commit back to the <codeclass="docutils literal notranslate"><spanclass="pre">master</span></code>
128
-
branch of your fork, that should always remain a clean copy of the
129
-
main repository.</p>
130
-
</section>
131
-
<sectionid="pull-requests-for-feedback">
132
-
<h2>Pull requests for feedback<aclass="headerlink" href="#pull-requests-for-feedback" title="Permalink to this headline">¶</a></h2>
133
-
<olclass="arabic simple">
134
-
<li><p>Click on the <codeclass="docutils literal notranslate"><spanclass="pre">New</span><spanclass="pre">pull</span><spanclass="pre">request</span></code> button at the top of your
135
-
repository page on GitHub.</p></li>
136
-
<li><p>Make sure <strong>left</strong> dropdown box (“base”) is set to <codeclass="docutils literal notranslate"><spanclass="pre">master</span></code>.</p></li>
137
-
<li><p>Make sure <strong>right</strong> dropdown box (“compare”) is set to <codeclass="docutils literal notranslate"><spanclass="pre">implementation</span></code>.</p></li>
138
-
<li><p>Type a suitable title in the title box. For example
0 commit comments