Module l2

Source
Expand description

L2 (Euclidean) distance.

Traits§

L2
Calculate the L2 distance between two vectors.

Functions§

l2
l2_distance
Compute L2 distance between two vectors.
l2_distance_arrow_batch
Compute L2 distance between a vector and a batch of vectors.
l2_distance_batch
Compute L2 distance between a vector and a batch of vectors.
l2_distance_uint_scalar
Calculate L2 distance between two uint8 slices.
l2_scalar
Calculate the L2 distance between two vectors, using scalar operations.