-
-
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
Deprecate norm(x,0) #596
Comments
As I said on the other issue, would have to be a LinearAlgebra 2.0 change unless we genuinely believe that no one out there is using this feature. |
I already added the "breaking" label. Is there another way to label 2.0 changes? |
The 2.0 milestone. |
Should the cases |
I think it's okay to allow |
Another option would be to not take the power 1/p for 0<=p<1. Even more breaking, but then the definition for |
It's not a norm and it's not
p
(in the same way asnorm(x,p)
forp>0
). See the discussion in JuliaLang/julia#30631. It currently behaves asnorm(x,p)^p -> norm(x,0)
inp
so it's questionable to bundle this functionality insidenorm(x,p)
. Sure, it can be useful to count the number of non-zeros in an array butcount(!iszero, x)
should be just fine for that.The text was updated successfully, but these errors were encountered: