Commit 9edc59f
Improve lecture flow and reorganize content
This commit includes pedagogical improvements across three lectures:
**numba.md:**
- Improve sentence flow with better transitions
- Change Wikipedia multithreading link to internal reference
- Add "(multithreading)=" label to Multithreaded Loops section
- Remove "Numba will be a key part of our lectures..." sentence
- Add transition phrase "Beyond speed gains from compilation"
- Clarify NumPy arrays "which have well-defined types"
- Change "For example" to "Notably" for better flow
- Add "Conversely" transition for prange vs range comparison
**numpy.md:**
- Add "### Basics" subheading for better organization
- Emphasize "flat" array concept with bold formatting
- Improve shape attribute explanation with inline comments
- Remove np.asarray vs np.array comparison examples
- Remove np.genfromtxt reference, keep only np.loadtxt
- Remove redundant note about zero-based indices
- Improve searchsorted() description formatting
- Remove redundant NumPy function examples (np.sum, np.mean)
- Simplify matrix multiplication section (remove old Python version notes)
- Simplify @ operator examples, remove redundant demonstrations
- Remove manual for-loop equivalent of broadcasting
- Remove higher-dimensional broadcasting code examples
- Remove higher-dimensional ValueError example
- Add "### Mutability" subheading and improve organization
- Change "Vectorized Functions" to "Universal Functions" heading
- Emphasize terminology with bold: **vectorized functions**, **ufuncs**, **universal functions**
- Add note about JAX's np.vectorize
- Remove "Speed Comparisons" section (moved to numpy_vs_numba_vs_jax.md)
- Remove "Implicit Multithreading in NumPy" section (moved to numpy_vs_numba_vs_jax.md)
**numpy_vs_numba_vs_jax.md:**
- Change title from "Parallelization" to "NumPy vs Numba vs JAX"
- Add jax to pip install command
- Add missing imports: random, mpl_toolkits.mplot3d, matplotlib.cm
- Add "### Speed Comparisons" section (moved from numpy.md)
- Add "### Vectorization vs Loops" section (moved from numpy.md)
- Add "### Universal Functions" section (moved from numpy.md)
- Add "### Implicit Multithreading in NumPy" section (moved from numpy.md)
- Change "some examples" to "an example" in multithreading description
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 2d0c0e3 commit 9edc59f
3 files changed
+224
-313
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
72 | | - | |
| 70 | + | |
73 | 71 | | |
74 | 72 | | |
75 | 73 | | |
| |||
244 | 242 | | |
245 | 243 | | |
246 | 244 | | |
247 | | - | |
| 245 | + | |
248 | 246 | | |
249 | 247 | | |
250 | 248 | | |
| |||
297 | 295 | | |
298 | 296 | | |
299 | 297 | | |
300 | | - | |
| 298 | + | |
301 | 299 | | |
302 | 300 | | |
303 | 301 | | |
| |||
447 | 445 | | |
448 | 446 | | |
449 | 447 | | |
| 448 | + | |
450 | 449 | | |
451 | 450 | | |
452 | 451 | | |
| |||
603 | 602 | | |
604 | 603 | | |
605 | 604 | | |
606 | | - | |
| 605 | + | |
607 | 606 | | |
608 | 607 | | |
609 | 608 | | |
| |||
0 commit comments