Skip to content

Add interfaces.numpy_random tests#103

Merged
ndgrigorian merged 6 commits intomasterfrom
add-numpy-interface-tests
Mar 19, 2026
Merged

Add interfaces.numpy_random tests#103
ndgrigorian merged 6 commits intomasterfrom
add-numpy-interface-tests

Conversation

@ndgrigorian
Copy link
Collaborator

@ndgrigorian ndgrigorian commented Mar 18, 2026

This PR vendors third party tests from NumPy to test mkl_random NumPy interface

Also updates a few functions for newer NumPy versions and fixes bugs, such as

  • typos in numpy interface arguments
  • hang in zipf when called with np.nan as an argument
  • reliance on size-1 1D arrays being converted to Python scalars

also fixes bugs related to the tests, and updates some functionality
Does not handle float conversion to integer types. Adapt hacks from NumPy source code instead
@ndgrigorian
Copy link
Collaborator Author

@jharlow-intel @antonwolfy
PR is now ready for review, I've made some significant changes to the package to accommodate changes in NumPy

there will need to be follow-up PRs in the future to fix more behavior edge cases

@ndgrigorian ndgrigorian requested a review from antonwolfy March 19, 2026 15:16
@antonwolfy antonwolfy added this to the 1.4.0 release milestone Mar 19, 2026
Copy link
Collaborator

@antonwolfy antonwolfy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @ndgrigorian, LGTM

@ndgrigorian ndgrigorian merged commit 02a46a8 into master Mar 19, 2026
95 of 103 checks passed
@ndgrigorian ndgrigorian deleted the add-numpy-interface-tests branch March 19, 2026 18:43
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