pub struct QuantizedProdVector {
pub mse_part: QuantizedVector,
pub qjl_part: QjlResult,
pub residual_norm: f32,
}Expand description
A quantized vector produced by TurboQuant_prod.
Fields§
§mse_part: QuantizedVectorThe MSE-quantized component (b-1 bits per coordinate).
qjl_part: QjlResultQJL sign bits of the residual (1 bit per coordinate).
residual_norm: f32L2 norm of the residual vector (γ in the paper).
Trait Implementations§
Source§impl Clone for QuantizedProdVector
impl Clone for QuantizedProdVector
Source§fn clone(&self) -> QuantizedProdVector
fn clone(&self) -> QuantizedProdVector
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 QuantizedProdVector
impl RefUnwindSafe for QuantizedProdVector
impl Send for QuantizedProdVector
impl Sync for QuantizedProdVector
impl Unpin for QuantizedProdVector
impl UnsafeUnpin for QuantizedProdVector
impl UnwindSafe for QuantizedProdVector
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