Module simd_ops

Source
Expand description

Low-level SIMD operations using pulp.

These are the building blocks for all distance metrics. Each function dispatches to the best SIMD ISA available at runtime.

Structsยง

DotProduct ๐Ÿ”’
L2Squared ๐Ÿ”’

Functionsยง

dot_product_simd
Compute the dot product of two float slices using SIMD.
l2_squared_simd
Compute the sum of squared differences between two slices using SIMD.
norm_squared_simd
Compute the squared L2 norm of a float slice using SIMD.