Skip to main content

is_zero

Function is_zero 

Source
pub fn is_zero(v: &[f32]) -> bool
Expand description

True when every component is exactly zero: the vector this crate returns for an empty or all-unknown input. Callers should skip semantic search for such a query instead of ranking on cosines that are all 0.