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
Add array_equal
#3189
Add array_equal
#3189
Conversation
a = xp.array([1, 2, 3, 4]) | ||
b = xp.array([1, 2, 3]) | ||
return xp.allclose(a, b) | ||
|
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.
Please add tests check
- broadcasts are not allowed
- comparison with ndarrays of different dtypes is allowed
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.
Why is allclose called instead of array_equal?
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.
Oh, I actually copy pasted the tests from allclose
for my convenience and mistakenly left that call unchanged. I think I should've checked it..
I'll edit that soon.
have made all the changes. And all the tests are passing. |
@rushabh-v Could you check that broadcasts are not allowed? |
Added that test. Can you review it again, please? @asi1024 |
I've just checked whether |
Jenkins, test this please. |
Successfully created a job for commit 1eae082: |
Jenkins CI test (for commit 1eae082, target branch master) succeeded! |
LGTM. Thanks for your PR! |
closes #3125