Skip to main content

encode

Function encode 

Source
pub fn encode(values: &[f64]) -> Vec<u8> 
Expand description

Encode a slice of f64 values using ALP compression.

Finds the optimal decimal exponent, converts to integers, stores exceptions for values that don’t round-trip, and bit-packs the integers via FastLanes.