Skip to content

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

Open
Chihiro2000GitHub wants to merge 1 commit into
mainfrom
update-rng-eigen-i
Open

[eigen_I.md] Update np.random → Generator API#735
Chihiro2000GitHub wants to merge 1 commit into
mainfrom
update-rng-eigen-i

Conversation

@Chihiro2000GitHub
Copy link
Copy Markdown

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 257593f
🔍 Latest deploy log https://app.netlify.com/projects/taupe-gaufre-c4e660/deploys/6a05898d6c7c11000826ec18
😎 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
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.

1 participant