Skip to main content

est_dot_bit4_batch

Function est_dot_bit4_batch 

Source
pub fn est_dot_bit4_batch(
    query: &Bit4Query,
    codes: &[u8],
    factors: &[Bit4Factors],
    out: &mut [f32],
) -> Result<(), QuantError>
Expand description

Estimates dot products for contiguous packed four-bit rows in one dispatch.

factors and out contain one entry per row. Row validation is performed before entering the dispatched microkernel, and the scalar table remains the bit-exact behavioral oracle on machines without the selected SIMD tier.

ยงErrors

Returns QuantError::OutputLength for a factor/output count mismatch, QuantError::CodeLength for a batch byte-length mismatch, or QuantError::NonZeroPadding for a non-canonical odd-dimension row.