Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .translate/state/need_for_speed.md.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
source-sha: c0a74f003dd77fc52558b7b402b0f058b6b31bf7
synced-at: "2026-04-12"
source-sha: 06af1a96c7a831653842bc655bbff3192f0b6f82
synced-at: "2026-05-05"
model: claude-sonnet-4-6
mode: UPDATE
section-count: 5
Expand Down
3 changes: 2 additions & 1 deletion lectures/need_for_speed.md
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,9 @@ with qe.Timer():
以下向量化代码使用 NumPy(我们将很快深入研究)来实现同样的功能:

```{code-cell} ipython
rng = np.random.default_rng()
with qe.Timer():
x = np.random.uniform(0, 1, n)
x = rng.uniform(0, 1, n)
y = np.sum(x**2)
```

Expand Down
Loading