Skip to main content

restore

Function restore 

Source
pub fn restore(quant: Quant, dir: &[f32], norm: f32) -> Vec<f32>
Expand description

What VEMB says about a stored direction, which is the client’s vector back again as near as the quantisation kept it.

The binary form is the exception and it is Redis’s exception: it answers plus and minus one and does not multiply the length back on, because a sign has no length in it to scale.