inducer / pyopencl

OpenCL integration for Python, plus shiny features
http://mathema.tician.de/software/pyopencl
Other
1.05k stars 240 forks source link

Use np.random.default_rng with a seed consistently #593

Closed alexfikl closed 2 years ago

alexfikl commented 2 years ago

Had this lying around from a while back. It changes to the new-ish numpy API for RNGs with seeds everywhere.

alexfikl commented 2 years ago

@inducer Should be ready for another look. ipython-demo.ipynb has a lot of spurious changes because jupyterlab decided to convert it to "format v4", which seemed like a good idea to keep in.

inducer commented 2 years ago

Thanks!