-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mod(n, range) for integers #32628
mod(n, range) for integers #32628
Conversation
Ok, this looks great but there are some test failures which of course need to be dealt with. It seems like a simple one: |
Sorry about the I also just realised this originally allowed some ranges which it shouldn't:
So I have restricted it to And I have also added a docstring, and a line to NEWS.md. Hope that's not excessive. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is cool — yet another nice case where removing implicit vecorization has allowed us to do something better. 👍
Co-Authored-By: Matt Bauman <mbauman@gmail.com>
The test failures look unrelated. Thanks! |
Implements #32571.