Skip to content

[eigen_I.md] Update np.random → Generator API#735

Merged
HumphreyYang merged 2 commits into
mainfrom
update-rng-eigen-i
May 21, 2026
Merged

[eigen_I.md] Update np.random → Generator API#735
HumphreyYang merged 2 commits into
mainfrom
update-rng-eigen-i

Conversation

@Chihiro2000GitHub
Copy link
Copy Markdown
Contributor

Summary

This PR migrates the legacy NumPy random API to the Generator API as part of QuantEcon/meta#299.

Details

  • In the solution block for exercise eig1_ex1, replaced np.random.rand(A.shape[1]) with rng = np.random.default_rng() and rng.random(A.shape[1]).
  • rng is defined inside the solution block so the block remains self-contained.
  • No fixed seed was introduced (the original lecture did not use one).
  • No Numba-related code is present in this file.
  • No surrounding prose required updating.

Hi @mmcky and @HumphreyYang, I'd be grateful if you could take a look when you have time.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@netlify
Copy link
Copy Markdown

netlify Bot commented May 14, 2026

Deploy Preview for taupe-gaufre-c4e660 ready!

Name Link
🔨 Latest commit c697439
🔍 Latest deploy log https://app.netlify.com/projects/taupe-gaufre-c4e660/deploys/6a0e9d1920ec9100083abe75
😎 Deploy Preview https://deploy-preview-735--taupe-gaufre-c4e660.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 14, 2026

@github-actions github-actions Bot temporarily deployed to pull request May 14, 2026 08:45 Inactive
@github-actions github-actions Bot temporarily deployed to pull request May 14, 2026 08:45 Inactive
@HumphreyYang
Copy link
Copy Markdown
Member

Many thanks @Chihiro2000GitHub, merging!

@github-actions github-actions Bot temporarily deployed to pull request May 21, 2026 05:58 Inactive
@github-actions github-actions Bot temporarily deployed to pull request May 21, 2026 05:58 Inactive
@HumphreyYang HumphreyYang merged commit e60cf3b into main May 21, 2026
7 checks passed
@HumphreyYang HumphreyYang deleted the update-rng-eigen-i branch May 21, 2026 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants