Norms and distances

Distances and norms

We provide functions for computing norms and distances.

euclidean_distance(u, v)

Compute ||u-v||₂.


Compute ||u||₂.

infinity_distance(u, v)

Compute the ∞-norm of u-v.


Compute the ∞-norm of z. If z is a complex vector this is more efficient than norm(z, Inf).

fubini_study(x::PVector, y::PVector)

Computes the Fubini-Study distance between x and y.