Skip to main content

encode_f32

Function encode_f32 

Source
pub fn encode_f32(x: &[f32], dims: &[usize], b: f64) -> Vec<u8> ⓘ
Expand description

Encode x (row-major, shape dims) with |x − x̂| ≤ b everywhere, trying each (α, β) preset and keeping the smallest stream.