Skip to main content

Module array

Module array 

Source
Expand description

Fixed-size array APIs for bitwise Hamming distance.

Use this module when the vector size is known at compile time (e.g., 1024-bit embeddings stored as [u8; 128]). This is faster than the equivalent slice API.

Functionsยง

batch
Compute Hamming distance from one source to many targets (one-to-many).
distance
Compute the bitwise Hamming distance between two fixed-size byte arrays.