8000 No warning on np.remainder(1.0%0.0) on macos · Issue #16220 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

No warning on np.remainder(1.0%0.0) on macos #16220

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

Closed
anirudh2290 opened this issue May 13, 2020 · 1 comment
Closed

No warning on np.remainder(1.0%0.0) on macos #16220

anirudh2290 opened this issue May 13, 2020 · 1 comment

Comments

@anirudh2290
Copy link
Member

On mac:

>>> import numpy as np
>>> np.remainder(1.0, 0.0)
nan

On linux it is:

>>> np.remainder(1.0, 0.0)
<stdin>:1: RuntimeWarning: invalid value encountered in remainder
nan
>>>
@anirudh2290
Copy link
Member Author

This is a compiler limitation with clang, not something we can do much about. Closing this for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0