Skip to content

Commit

Permalink
[L5-3] Rewrite note about speed-up; correct typo in code comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mesnardo committed Aug 30, 2018
1 parent f4903bd commit f6c1c9d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lessons/05_relax/05_03_Iterate.This.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
" The final relative L2-norm of the difference.\n",
" \"\"\"\n",
" p = p0.copy()\n",
" diff = rtol + 1.0 # intial difference\n",
" diff = rtol + 1.0 # initial difference\n",
" ite = 0 # iteration index\n",
" while diff > rtol and ite < maxiter:\n",
" pn = p.copy()\n",
Expand Down Expand Up @@ -366,7 +366,7 @@
" \"\"\"\n",
" ny, nx = p0.shape\n",
" p = p0.copy()\n",
" diff = rtol + 1.0 # intial difference\n",
" diff = rtol + 1.0 # initial difference\n",
" ite = 0 # iteration index\n",
" while diff > rtol and ite < maxiter:\n",
" pn = p.copy()\n",
Expand Down Expand Up @@ -703,7 +703,7 @@
" ny, nx = p0.shape\n",
" p = p0.copy()\n",
" conv = [] # convergence history\n",
" diff = rtol + 1.0 # intial difference\n",
" diff = rtol + 1.0 # initial difference\n",
" ite = 0 # iteration index\n",
" while diff > rtol and ite < maxiter:\n",
" pn = p.copy()\n",
Expand Down Expand Up @@ -849,7 +849,7 @@
" ny, nx = p0.shape\n",
" p = p0.copy()\n",
" conv = [] # convergence history\n",
" diff = rtol + 1.0 # intial difference\n",
" diff = rtol + 1.0 # initial difference\n",
" ite = 0 # iteration index\n",
" while diff > rtol and ite < maxiter:\n",
" pn = p.copy()\n",
Expand Down Expand Up @@ -920,7 +920,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"We get some speed-up over the Numba version of Jacobi, but not a lot. And you may see quite different results—on some of the machines we tried, we could still not beat the NumPy version of Jacobi. This can be confusing, and hard to explain without getting into the nitty grity of hardware optimizations.\n",
"We get no speed-up over the Numba version of Jacobi, and you may see different results. On some of the machines we tried, we could not beat the NumPy version of Jacobi. This can be confusing, and hard to explain without getting into the nitty grity of hardware optimizations.\n",
"\n",
"Don't lose hope! We have another trick up our sleeve!"
]
Expand Down Expand Up @@ -994,7 +994,7 @@
" ny, nx = p0.shape\n",
" p = p0.copy()\n",
" conv = [] # convergence history\n",
" diff = rtol + 1.0 # intial difference\n",
" diff = rtol + 1.0 # initial difference\n",
" ite = 0 # iteration index\n",
" while diff > rtol and ite < maxiter:\n",
" pn = p.copy()\n",
Expand Down Expand Up @@ -1498,7 +1498,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
"version": "3.6.6"
}
},
"nbformat": 4,
Expand Down

0 comments on commit f6c1c9d

Please sign in to comment.