pub struct LogQuantizedVector {
pub codes: Vec<u8>,
pub signs: Vec<bool>,
pub max_log: f32,
pub min_magnitude: f32,
}Expand description
Log-scaled int8 quantized vector (in-tree; no ruvector-core).
Fields§
§codes: Vec<u8>Per-dimension codes 0..=255.
signs: Vec<bool>Sign bits packed as true = negative original value.
max_log: f32Shared scale for reconstruction.
min_magnitude: f32Config min magnitude used at encode.
Implementations§
Trait Implementations§
Source§impl Clone for LogQuantizedVector
impl Clone for LogQuantizedVector
Source§impl Debug for LogQuantizedVector
impl Debug for LogQuantizedVector
Source§impl PartialEq for LogQuantizedVector
impl PartialEq for LogQuantizedVector
impl StructuralPartialEq for LogQuantizedVector
Auto Trait Implementations§
impl Freeze for LogQuantizedVector
impl RefUnwindSafe for LogQuantizedVector
impl Send for LogQuantizedVector
impl Sync for LogQuantizedVector
impl Unpin for LogQuantizedVector
impl UnsafeUnpin for LogQuantizedVector
impl UnwindSafe for LogQuantizedVector
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more