Skip to main content

Module implementations

Module implementations 

Source

Structsยง

Cosine
Compute the cosine similarity between two vectors.
CosineNormalized
Compute the cosine similarity between two normalized vectors.
FullL2
Computes the full L2 distance between two vectors.
InnerProduct
Compute the inner product between two vectors.
L1NormFunctor
Compute the L1 norm of a vector.
SquaredL2
Compute the squared L2 distance between two vectors.