(&self, q: &Self::Query, v: &Self::Quantized)
| 92 | /// Asymmetric Hamming distance: pre-encoded query bits vs stored candidate. |
| 93 | #[inline] |
| 94 | fn exact_asymmetric_distance(&self, q: &Self::Query, v: &Self::Quantized) -> f32 { |
| 95 | binary::hamming_distance(q, packed_bits_of(v)) as f32 |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | // ── Tests ───────────────────────────────────────────────────────────────────── |