Repository navigation
Commit f4c6bc9
[numba.md] Update np.random → Generator API (#550)
* Update rng usage in numba.md
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
* Address reviewer feedback on rng usage in numba.md
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
* updates
* updates
* Address jstac review: rename parallel fns, qualitative timing, note admonition
- Rename parallel versions to calculate_pi_parallel /
calculate_pi_in_loop_parallel so serial and parallel functions no longer
share a name (removes execution-order fragility)
- Replace hard-coded timing figures (~150x, 2 orders of magnitude, factor of
2 or 3) with qualitative language
- Time calculate_pi_in_loop twice so the second run excludes JIT compilation
- Upgrade numba_ex4 note to a {note} admonition covering both thread-safety
and memory reasons
- Fix formatting nits in the memory paragraph and missing period after
"compare results"
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
* Drop "much"/"very" in data-race spread paragraph
Address jstac review: keep language plain and avoid leaning on a figure
that varies between runs.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
* Replace "dramatically" with "considerably" in JIT section
Keep language plain and academic per jstac review.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
* speed_ex1: add fair end-to-end timing for pre-draw approach
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
---------
Co-authored-by: Claude Sonnet 4.6 <[email protected]>
Co-authored-by: HumphreyYang <[email protected]>
Co-authored-by: Matt McKay <[email protected]>1 parent 0cd62b4 commit f4c6bc9
1 file changed
Lines changed: 290 additions & 23 deletions
0 commit comments