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
8 changes: 4 additions & 4 deletions .translate/state/svd_intro.md.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source-sha: 388b2735bfd3c7757d4ef6a0ecb97183210090d2
synced-at: "2026-07-18"
source-sha: 228d317ac76cd0630f5f7a6ede30a0362f0a25f7
synced-at: "2026-07-31"
model: claude-sonnet-5
mode: RESYNC
mode: UPDATE
section-count: 12
tool-version: 0.17.0
tool-version: 0.24.0
5 changes: 3 additions & 2 deletions lectures/svd_intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ FONTPATH = "fonts/SourceHanSerifSC-SemiBold.otf"
mpl.font_manager.fontManager.addfont(FONTPATH)
plt.rcParams['font.family'] = ['Source Han Serif SC']

rng = np.random.default_rng()
```

导入这些模块后,让我们来看示例。
Expand Down Expand Up @@ -421,7 +422,7 @@ $$

```{code-cell} ipython3
import numpy as np
X = np.random.rand(5,2)
X = rng.random((5, 2))
U, S, V = np.linalg.svd(X,full_matrices=True) # 完整SVD
Uhat, Shat, Vhat = np.linalg.svd(X,full_matrices=False) # 简化SVD
print('U, S, V =')
Expand Down Expand Up @@ -473,7 +474,7 @@ UhatUhatT, UhatTUhat

```{code-cell} ipython3
import numpy as np
X = np.random.rand(2,5)
X = rng.random((2, 5))
U, S, V = np.linalg.svd(X,full_matrices=True) # 完整SVD
Uhat, Shat, Vhat = np.linalg.svd(X,full_matrices=False) # 简化SVD
print('U, S, V = ')
Expand Down
Loading