pub fn encode_f32(x: &[f32], dims: &[usize], b: f64) -> Vec<u8> ⓘ
Encode x (row-major, shape dims) with |x − x̂| ≤ b everywhere, trying each (α, β) preset and keeping the smallest stream.
x
dims
|x − x̂| ≤ b
(α, β)