Skip to main content

dot_i8_batch

Function dot_i8_batch 

Source
pub fn dot_i8_batch(q: &[i8], rows: &[i8], d: usize, out: &mut [i32])
Expand description

Scores one i8 query against contiguous row-major vectors.

Callers must pre-validate q.len() == d, rows.len() == d * out.len(), and d <= MAX_DOT_I8_DIMENSION; the hot path uses debug_assert! only. A zero dimension deterministically fills out with zero.