pub fn get_codebook(bits: u8, dim: usize) -> Result<Codebook>Expand description
Return a pre-computed Codebook for the given (bits, dim) pair.
Falls back to computing one on the fly if the pair is not in the pre-computed table.
§Errors
Returns TurboQuantError::UnsupportedBits if bits is not 2, 3, or 4.
Pure Integration: delegates validation to validate_bits, lookup to
lookup_static_codebook, and generation to gen::generate_codebook.