8000 BUG: Fix array_equal for numeric and non-numeric scalar types by eendebakpt · Pull Request #27275 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BUG: Fix array_equal for numeric and non-numeric scalar types #27275

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

Merged
merged 5 commits into from
Aug 26, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
use asanyarray
  • Loading branch information
eendebakpt committed Aug 25, 2024
commit 8ede522b2a95528f7f0b98ce142a80d0c74ee9a9
2 changes: 1 addition & 1 deletion numpy/_core/numeric.py
Original file line number Diff line number Diff line change
Expand Up @@ -2624,7 +2624,7 @@ def array_equiv(a1, a2):
except Exception:
return False

return builtins.bool(asarray(a1 == a2).all())
return builtins.bool(asanyarray(a1 == a2).all())


def _astype_dispatcher(x, dtype, /, *, copy=None, device=None):
Expand Down
0