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 @@ -15,6 +15,7 @@ This release drops support for Python 3.10, making Python 3.11 the minimum requi
* Added the `dpnp.random.Generator` API with `default_rng`, `BitGenerator`, `SeedSequence` and the `Philox4x3210` bit generator, sampling on the device with the device RNG API of oneMKL or oneMath [#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 @@ -67,6 +67,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.
* Generators and bit generators cannot be pickled or deep-copied, and the
bit generators have no ``advance`` or ``jumped`` method.

Expand Down Expand Up @@ -101,6 +103,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 @@ -112,6 +127,7 @@ Distributions
Generator.beta
Generator.binomial
Generator.chisquare
Generator.dirichlet
Generator.exponential
Generator.f
Generator.gamma
Expand All @@ -122,6 +138,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