Skip to main content

scores_from_hamming

Function scores_from_hamming 

Source
pub fn scores_from_hamming(
    kernel: HammingKernel,
    query: &[u8],
    db: &[u8],
    byte_len: usize,
    dim_bits: usize,
    scores: &mut [f32],
)
Expand description

Batch Hamming scoring with a caller-resolved kernel.

Scans that already hold a HammingKernel (leaf scanning, Lloyd assignment) use this to keep feature detection out of the loop entirely.