pub struct HyperQuantEvalConfig {
pub dim: usize,
pub vectors: usize,
pub seed: u64,
pub scale: f32,
}Expand description
Configuration for deterministic HyperQuant fixture evaluation.
Fields§
§dim: usizeVector dimension.
vectors: usizeNumber of vectors in the synthetic fixture.
seed: u64Deterministic fixture seed.
scale: f32Quantization scale passed to HyperQuant.
Implementations§
Source§impl HyperQuantEvalConfig
impl HyperQuantEvalConfig
Sourcepub fn triangular_fixture() -> Self
pub fn triangular_fixture() -> Self
A small fixture where points lie on the A2 triangular basis.
Trait Implementations§
Source§impl Clone for HyperQuantEvalConfig
impl Clone for HyperQuantEvalConfig
Source§fn clone(&self) -> HyperQuantEvalConfig
fn clone(&self) -> HyperQuantEvalConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HyperQuantEvalConfig
Source§impl Debug for HyperQuantEvalConfig
impl Debug for HyperQuantEvalConfig
Source§impl Default for HyperQuantEvalConfig
impl Default for HyperQuantEvalConfig
Source§impl<'de> Deserialize<'de> for HyperQuantEvalConfig
impl<'de> Deserialize<'de> for HyperQuantEvalConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for HyperQuantEvalConfig
impl PartialEq for HyperQuantEvalConfig
Source§fn eq(&self, other: &HyperQuantEvalConfig) -> bool
fn eq(&self, other: &HyperQuantEvalConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for HyperQuantEvalConfig
impl Serialize for HyperQuantEvalConfig
impl StructuralPartialEq for HyperQuantEvalConfig
Auto Trait Implementations§
impl Freeze for HyperQuantEvalConfig
impl RefUnwindSafe for HyperQuantEvalConfig
impl Send for HyperQuantEvalConfig
impl Sync for HyperQuantEvalConfig
impl Unpin for HyperQuantEvalConfig
impl UnsafeUnpin for HyperQuantEvalConfig
impl UnwindSafe for HyperQuantEvalConfig
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