From 5e8b0ee155a48ee9d7cd7a570333844d623bc2d1 Mon Sep 17 00:00:00 2001 From: Brandon Gleeson Date: Tue, 6 Aug 2019 14:45:47 -0600 Subject: [PATCH] edits to step-4 commented program pertaining to right-hand-side and dim --- examples/step-4/step-4.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/step-4/step-4.cc b/examples/step-4/step-4.cc index 84b5d02dc4..7cef32e6b3 100644 --- a/examples/step-4/step-4.cc +++ b/examples/step-4/step-4.cc @@ -158,7 +158,7 @@ public: -// For this example, we choose as right hand side function to function +// For this example, we choose as right hand side the function // $4(x^4+y^4)$ in 2D, or $4(x^4+y^4+z^4)$ in 3D. We could write this // distinction using an if-statement on the space dimension, but here is a // simple way that also allows us to use the same function in 1D (or in 4D, if @@ -167,10 +167,10 @@ public: // time when you define the template, the compiler doesn't know the value of // dim, but when it later encounters a statement or declaration // RightHandSide@<2@>, it will take the template, replace all -// occurrences of dim by 2 and compile the resulting function); in other +// occurrences of dim by 2 and compile the resulting function). In other // words, at the time of compiling this function, the number of times the body -// will be executed is known, and the compiler can optimize away the overhead -// needed for the loop and the result will be as fast as if we had used the +// will be executed is known, and the compiler can minimize the overhead +// needed for the loop; the result will be as fast as if we had used the // formulas above right away. // // The last thing to note is that a Point@ denotes a point -- 2.39.5