Skip to content

unique() with isapprox() instead of isequal() #19147

@wsshin

Description

@wsshin

I hope to have the version of unique() that uses isapprox() instead of isequal(). Such a version will be useful, for example, to pick unique floating point numbers. MATLAB has uniquetol() for that purpose.

Instead of creating a separate function, we may generalize unique() such that it accepts an "equality" function as an extra argument. Then we could provide isapprox() or other equality functions as the extra argument.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions