Skip to content
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

Induced-Norm Convenience Functions #125

Open
bhgomes opened this issue Apr 20, 2019 · 0 comments
Open

Induced-Norm Convenience Functions #125

bhgomes opened this issue Apr 20, 2019 · 0 comments

Comments

@bhgomes
Copy link

bhgomes commented Apr 20, 2019

It would be nice to be able to get the induced norm from a particular metric space (provided it has a vector-space structure on it). I'm not sure what the API would look like but perhaps evaluating a distance function on only one array runs the norm instead. Something like

v = rand(100)
@assert euclidean(v) == euclidean(v, zero(v))

Right now, running something like euclidean(v, zero(v)) is slower than LinearAlgebra.norm(v), and it would be good to have the possibility to use the Distances API consistently instead of swapping between norm(v) and evaluate(dist, v, 0) for euclidean and other metrics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant