Skip to content

Deprecate norm(x,0) #596

Open
Open
@andreasnoack

Description

@andreasnoack

It's not a norm and it's not p (in the same way as norm(x,p) for p>0). See the discussion in JuliaLang/julia#30631. It currently behaves as norm(x,p)^p -> norm(x,0) in p so it's questionable to bundle this functionality inside norm(x,p). Sure, it can be useful to count the number of non-zeros in an array but count(!iszero, x) should be just fine for that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    breakingThis change will break code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions