quantize

Quantize a float vector to integer codes with per-group scales.

Return

QuantizedVector containing codes and scales

Parameters

input

Float values (already rotated)

bits

Bits per code (2, 3, 4, or 8)