-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
BUG: fix issues with newaxis
and linalg.solve
in numpy.array_api
#25146
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
Conversation
[skip azp] [skip cirrus] [skip circle]
The failure in the OpenSUSE BLAS job is unrelated; I'll have a look at that. |
with errstate(call=_raise_linalgerror_singular, invalid='call', | ||
over='ignore', divide='ignore', under='ignore'): | ||
r = gufunc(a, b, signature=signature, extobj=extobj) | ||
with np.errstate(call=_raise_linalgerror_singular, invalid='call', |
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.
Interesting that the errstate removal did make it? Anyay, LGTM, thanks.
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.
I think the implementation here was added before this was thoroughly tested in the test suite. Maybe the errstate
import was removed and that went unnoticed due to incomplete test coverage.
@@ -125,7 +125,7 @@ | |||
|
|||
__all__ = ["__array_api_version__"] | |||
|
|||
from ._constants import e, inf, nan, pi | |||
from ._constants import e, inf, nan, pi, newaxis | |||
|
|||
__all__ += ["e", "inf", "nan", "pi"] |
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.
Should be added here as well.
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.
Can you make a PR?
Follows up on a post-merge comment in numpygh-25146. [skip ci]
Follows up on a post-merge comment in numpygh-25146. [skip ci]
Looks like this wasn't caught before because of gaps in the test coverage (fixed for
linalg.solve
and fix ready to merge fornewaxis
inarray-api-tests
).[skip azp] [skip cirrus] [skip circle]