Norms and Distances

Distances and norms

We provide functions for computing norms and distances.

euclidean_distance(u, v)

Compute ||u-v||₂.

euclidean_norm(u)

Compute ||u||₂.

infinity_distance(u, v)

Compute the ∞-norm of u-v.

infinity_norm(z)

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

infinity_norm(z₁, z₂)

Compute the ∞-norm of z₁-z₂.

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

Computes the Fubini-Study distance between x and y.