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
np.nan is np.nan behaves differently when jitted #5086
Comments
Thanks for the report. I don't recall the implementation but would imagine that this is because the |
The same issue. Is there any way to check if some value is nan? Maybe some workaround? atr[i] = nantype(atr[i]) -> float64 Thank you! |
@recycletechno |
Hello, I'm having the same problem with the following in nopython mode: np.isnan(data[i:, j]).all() Of course there are several workarounds, but it would be nice if this behaves correctly. |
NaN isn't a singleton, so checking with Proof in numpy:
So don't check NaNs with |
Thanks for your input @joooeey. Checking for I think the issue here is that the |
Reporting a bug
I am using versions
0.47.0
and0.45.1
installed with condaI have included below a minimal working reproducer
Comparison of
np.nan
to itself usingis
behaves differently when jitted:foo()
returnsTrue
jitfoo()
returnsFalse
Obviously it's best to use
np.isnan
where possibleThe text was updated successfully, but these errors were encountered: