Skip to content

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

Merged
charris merged 1 commit intonumpy:maintenance/1.24.xfrom
charris:backport-22986
Jan 10, 2023
Merged

BUG: Ensure correct loop order in sin, cos, and arctan2#22989
charris merged 1 commit intonumpy:maintenance/1.24.xfrom
charris:backport-22986

Conversation

@charris
Copy link
Copy Markdown
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.

2 participants