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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* Added the `dpnp.random.Generator` API with `default_rng`, `BitGenerator`, `SeedSequence` and the `Philox4x3210` bit generator, sampling on the device with the oneMKL device RNG API [#3157](https://github.com/IntelPython/dpnp/pull/3157)
* Added the continuous distributions of `numpy.random.Generator`, such as `gamma`, `beta` and `vonmises`, to `dpnp.random.Generator` [#3158](https://github.com/IntelPython/dpnp/pull/3158)
* Added `integers` and the discrete distributions of `numpy.random.Generator`, such as `poisson`, `binomial` and `hypergeometric`, to `dpnp.random.Generator`, along with `noncentral_chisquare` and `noncentral_f` [#3159](https://github.com/IntelPython/dpnp/pull/3159)
* Added the multivariate distributions, `permutation`, `shuffle`, `permuted`, `choice` and `bytes` to `dpnp.random.Generator` [#3160](https://github.com/IntelPython/dpnp/pull/3160)

### Changed

Expand Down
19 changes: 19 additions & 0 deletions doc/reference/random.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ Differences from NumPy
NumPy's rejection test rounds to accepting every sample above ``2**53``,
which makes its tail too heavy for ``a`` close to 1.
* ``hypergeometric`` requires ``ngood`` and ``nbad`` below ``10**9``.
* :meth:`Generator.shuffle` only accepts a :class:`dpnp.ndarray`, as in
CuPy.

Random Generator
----------------
Expand All @@ -75,6 +77,19 @@ Simple random data

Generator.integers
Generator.random
Generator.choice
Generator.bytes

Permutations
^^^^^^^^^^^^

.. autosummary::
:toctree: generated/
:nosignatures:

Generator.shuffle
Generator.permutation
Generator.permuted

Distributions
^^^^^^^^^^^^^
Expand All @@ -86,6 +101,7 @@ Distributions
Generator.beta
Generator.binomial
Generator.chisquare
Generator.dirichlet
Generator.exponential
Generator.f
Generator.gamma
Expand All @@ -96,6 +112,9 @@ Distributions
Generator.logistic
Generator.lognormal
Generator.logseries
Generator.multinomial
Generator.multivariate_hypergeometric
Generator.multivariate_normal
Generator.negative_binomial
Generator.noncentral_chisquare
Generator.noncentral_f
Expand Down
Loading
Loading