-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
norm(Float64[0,NaN]) == 0 #236
Comments
The basic problem is that @lbenet and @timholy, can you comment on the desired semantics of |
I would strongly encourage making |
See also JuliaLang/julia#7866 |
In fact, this very example is a pretty strong argument for why it should be |
@stevengj Indeed, in JuliaLang/julia#10736 |
fix #12552 (norm should return NaN for NaN inputs)
norm(Float64[0,NaN]) == norm(Float64[0,NaN],2) == norm(Float64[0,NaN],Inf) == 0
, whereas I would expect NaN in this case. The L1 norm gives NaN.Seems to affect both Julia 0.3 and 0.4-dev.
The text was updated successfully, but these errors were encountered: