Skip to content
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

BUG: Ensure correct loop order in sin, cos, and arctan2 #22989

Merged
merged 1 commit into from Jan 10, 2023

Conversation

charris
Copy link
Member

@charris charris commented Jan 10, 2023

Backport of #22986.

These were incorrect afer being vectorized. The commit additional tests these (not arctan2 admittedly) and adds a check to generate_umath to make it a bit less likely that future additions add this type of thing.

Note that the check allows duplicated loops so long they are correctly ordered the first time. This makes results correct, but duplicated loops are not nice anyways and it would be nice to remove them.

We could drop them manually in hindsight even? In any case, that should not be backported, so it is not includedhere.

Closes gh-22984

These were incorrect afer being vectorized.  The commit additional
tests these (not arctan2 admittedly) and adds a check to generate_umath
to make it a bit less likely that future additions add this type of thing.

Note that the check allows duplicated loops so long they are correctly
ordered the *first* time.  This makes results correct, but duplicated
loops are not nice anyways and it would be nice to remove them.

We could drop them manually in hindsight even?  In any case, that should
not be backported, so it is not includedhere.

Closes numpygh-22984
@charris charris added 00 - Bug 08 - Backport Used to tag backport PRs labels Jan 10, 2023
@charris charris added this to the 1.24.2 release milestone Jan 10, 2023
@charris charris merged commit 835d1b9 into numpy:maintenance/1.24.x Jan 10, 2023
@charris charris deleted the backport-22986 branch January 10, 2023 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
00 - Bug 08 - Backport Used to tag backport PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants