Skip to content

Add multivariate distributions and permutations to dpnp.random.Generator - #3160

Open
ndgrigorian wants to merge 1 commit into
feature/device-rng-discretefrom
feature/device-rng-multivariate
Open

ndgrigorian wants to merge 1 commit into
feature/device-rng-discretefrom
feature/device-rng-multivariate

Conversation

@ndgrigorian

@ndgrigorian ndgrigorian commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

This PR completes the NumPy Generator method set in dpnp.random.Generator, as part of the series splitting #3147. It is stacked on #3159

Adds

  • dirichlet, multinomial, multivariate_hypergeometric and multivariate_normal
  • permutation, shuffle and permuted, which argsort random keys
  • choice and bytes

These are built on the kernels of the earlier PRs, so this PR is Python-only

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to an issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • Have you checked performance impact of proposed changes?
  • Have you added documentation for your changes, if necessary?
  • Have you added your changes to the changelog?

Add dirichlet, multinomial, multivariate_hypergeometric,
multivariate_normal, permutation, shuffle, permuted, choice and bytes,
built on the existing kernels.
@ndgrigorian
ndgrigorian force-pushed the feature/device-rng-discrete branch from bb0eae2 to 7918e32 Compare November 4, 2026 19:50
@ndgrigorian
ndgrigorian force-pushed the feature/device-rng-multivariate branch from 742674f to 9c726f8 Compare November 4, 2026 19:50
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Array API standard conformance tests for dpnp=0.22.0dev0=np2py314h8d9cdd5_30 ran successfully.
Passed: 1491
Failed: 0
Skipped: 6

@coveralls

Copy link
Copy Markdown
Collaborator

Coverage Status

Coverage is 82.003% — feature/device-rng-multivariate into feature/device-rng-discrete. No base build found for feature/device-rng-discrete.

@coveralls

Copy link
Copy Markdown
Collaborator

Coverage Status

Coverage is 82.003% — feature/device-rng-multivariate into feature/device-rng-discrete. No base build found for feature/device-rng-discrete.

This branch has not been deployed

No deployments
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.

2 participants