pub struct QuantizedVector {
pub packed_indices: Vec<u8>,
pub norm: f32,
pub bits: u8,
pub dimension: usize,
}Expand description
A quantized vector produced by TurboQuant_mse.
Fields§
§packed_indices: Vec<u8>Packed b-bit indices, one per coordinate.
norm: f32Original vector norm (for rescaling on dequantization).
bits: u8Bit-width used.
dimension: usizeNumber of coordinates (dimension).
Trait Implementations§
Source§impl Clone for QuantizedVector
impl Clone for QuantizedVector
Source§fn clone(&self) -> QuantizedVector
fn clone(&self) -> QuantizedVector
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for QuantizedVector
impl RefUnwindSafe for QuantizedVector
impl Send for QuantizedVector
impl Sync for QuantizedVector
impl Unpin for QuantizedVector
impl UnsafeUnpin for QuantizedVector
impl UnwindSafe for QuantizedVector
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more