Skip to main content

Module utils

Module utils 

Source
Expand description

Utility functions for vector operations.

All functions in this module are SIMD-accelerated when available (AVX2 on x86_64, NEON on aarch64). Runtime feature detection ensures automatic fallback to scalar implementations on systems without SIMD support.

Functionsยง

batch_cosine_similarity
Stable: external consumers may depend on this; breaking changes require a SemVer bump.
batch_dot_product
Stable: external consumers may depend on this; breaking changes require a SemVer bump.
cosine_similarity
Stable: external consumers may depend on this; breaking changes require a SemVer bump.
dot_product
Stable: external consumers may depend on this; breaking changes require a SemVer bump.
euclidean_distance
Stable: external consumers may depend on this; breaking changes require a SemVer bump.
normalize
Stable: external consumers may depend on this; breaking changes require a SemVer bump.