Skip to content
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

WIP, ENH: remainder() to API standard #162

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tylerjereddy
Copy link
Contributor

* draft the `remainder()` ufunc and turn its matching array API
standad test on in the CI; many of the other changes reflect
those in recent binary ufunc PRs

* note that the implementation of the remainder is actually
rather non-trivial here; for reference, the reviewer may
want to check the following, and perhaps also the NumPy
inner loop implementation:
  - https://stackoverflow.com/a/1907585/2942522
  - https://data-apis.org/array-api/latest/API_specification/generated/array_api.remainder.html
* fix up some of the `remainder()` workunits that were
failing array API standard test

* still needs more work though--for floating type cases
I need to conform to the special cases noted here more closely:
https://data-apis.org/array-api/latest/API_specification/generated/array_api.remainder.html

[skip actions]
@tylerjereddy
Copy link
Contributor Author

This one isn't ready yet--skipping the CI while I iterate on it. In particular, I think that for floating point type workunits I need to more closely obey the special cases noted at: https://data-apis.org/array-api/latest/API_specification/generated/array_api.remainder.html

That is indeed quite messy so will likely take me a while. It is no wonder modulus is not recommended for floating-point types.

@tylerjereddy tylerjereddy changed the title ENH: remainder() to API standard WIP, ENH: remainder() to API standard Jan 21, 2023
@NaderAlAwar NaderAlAwar changed the base branch from develop to main May 24, 2023 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant