diff options
author | Sebastian Berg <sebastianb@nvidia.com> | 2023-01-10 16:17:05 +0100 |
---|---|---|
committer | Sebastian Berg <sebastianb@nvidia.com> | 2023-01-10 16:19:58 +0100 |
commit | f809fdd8e9b20b993a9a694f4c27f8c6daa07708 (patch) | |
tree | f0b2badc2da4d493406f7b1cbba7315bcd94b967 /numpy/array_api/_array_object.py | |
parent | df1ee34c7faea1cfc2aef0719444b6fa43887b42 (diff) | |
download | numpy-f809fdd8e9b20b993a9a694f4c27f8c6daa07708.tar.gz |
BUG: Ensure correct loop order in sin, cos, and arctan2
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
Diffstat (limited to 'numpy/array_api/_array_object.py')
0 files changed, 0 insertions, 0 deletions