-
Notifications
You must be signed in to change notification settings - Fork 16
ENH: cov
delegation
#451
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
base: main
Are you sure you want to change the base?
ENH: cov
delegation
#451
Conversation
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.
thanks @adriagarp !
It looks like the tests are reporting some changes in the return dtypes. Could you write a summary about what changes here?
We may want to:
- wrap the output from
xp.cov
to change dtypes - make a breaking change to match the behaviour of the underlying libraries
Either way, it would be nice to add return dtype information to the docstring, once we have decided what to do?
Sure! The test failures are as follows:
For the For the |
This sounds like we should open an upstream issue to ask whether they would consider changing the behaviour, and adding a
We can probably just add a line like array-api-extra/tests/test_funcs.py Line 419 in 747f994
UserWarning too
Could you adjust array-api-extra/tests/test_funcs.py Lines 431 to 432 in 747f994
array-api-extra/tests/test_funcs.py Line 446 in 747f994
dtype=xp.float64 ?
We could consider also adding a
Hmm, I am quite puzzled too. It seems like it isn't under our control, but rather |
# Conflicts: # src/array_api_extra/__init__.py # src/array_api_extra/_delegation.py
@lucascolley I've added explicit dtypes for all tests in Let me know if anything's missing! |
Adds delegation for the
cov
function.All backends (except PyData Sparse) have a
cov
implementation that accepts a single positional argument.