sequince-dev/orng: v0.1.0
Description
orng v0.1.0
First stable release of orng, a unified, cross-backend random number generator built on the Array API standard.
It mirrors a subset of the numpy.random.Generator API:
randomuniformnormalchoicegamma
letting you pick the underlying backend at runtime. The following backends are currently supported:
numpytorchcupyjax
Installation
orng can be installed from PyPI using pip:
pip install orng
Quickstart
from orng import RandomGenerator
rng = RandomGenerator(backend="numpy", seed=42)
samples = rng.normal(loc=0.0, scale=1.0, size=5)
Fucntional API
orng also provides a functional API compatible with jax JIT compilation. See the documentation for more details.
Files
sequince-dev/orng-v0.1.0.zip
Files
(27.2 kB)
| Name | Size | Download all |
|---|---|---|
|
md5:0948795ed1d3a9f2d7a5eb8fd5bbb432
|
27.2 kB | Preview Download |
Additional details
Related works
- Is supplement to
- Software: https://github.com/sequince-dev/orng/tree/v0.1.0 (URL)
Software
- Repository URL
- https://github.com/sequince-dev/orng