pub struct ShardEmbedding(pub [f32; 8]);👎Deprecated:
JL projection at m=8 is mathematically unsound (Issue 139). Zero runtime consumers. Use region centroids for shard similarity.
Expand description
Low-dimensional projection of NeuronShard style_weights for fast similarity search. Produced by Johnson-Lindenstrauss random orthogonal projection. 8 × f32 = 32 bytes — fits in cache line, suitable for SIMD cosine similarity.
Plan 230: Shard Embedding Projection — modelless linear weight-to-vector.
§Deprecated
Mathematically unsound at m=8 — violates the JL lower bound by over 200×. See Issue 139 / Plan 230 close-out note.
Tuple Fields§
§0: [f32; 8]👎Deprecated:
JL projection at m=8 is mathematically unsound (Issue 139). Zero runtime consumers. Use region centroids for shard similarity.
Implementations§
Trait Implementations§
Source§impl Clone for ShardEmbedding
impl Clone for ShardEmbedding
Source§fn clone(&self) -> ShardEmbedding
fn clone(&self) -> ShardEmbedding
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 ShardEmbedding
Source§impl Debug for ShardEmbedding
impl Debug for ShardEmbedding
Source§impl Default for ShardEmbedding
impl Default for ShardEmbedding
impl Eq for ShardEmbedding
Source§impl Hash for ShardEmbedding
impl Hash for ShardEmbedding
Source§impl PartialEq for ShardEmbedding
impl PartialEq for ShardEmbedding
impl StructuralPartialEq for ShardEmbedding
Auto Trait Implementations§
impl Freeze for ShardEmbedding
impl RefUnwindSafe for ShardEmbedding
impl Send for ShardEmbedding
impl Sync for ShardEmbedding
impl Unpin for ShardEmbedding
impl UnsafeUnpin for ShardEmbedding
impl UnwindSafe for ShardEmbedding
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> 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