-
Notifications
You must be signed in to change notification settings - Fork 149
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
isapprox
returns wrong results with nans=true
#1135
Comments
I could further trace the issue to this difference in the result of using StaticArrays
using LinearAlgebra
norm([0.0, NaN]) # NaN
norm([NaN, 0.0]) # NaN
norm(SA[0.0, NaN]) # 0.0
norm(SA[NaN, 0.0]) # NaN |
Same with Inf norm([1.0, Inf]) # Inf
norm(SA[1.0, Inf]) # NaN |
The behaviour changed between v1.5.12 and v1.5.13 !!! |
@rmkn85 thanks! I'll open a PR that should solve both cases (NaN and Inf) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: