pub enum CompressionEncoding {
Raw,
RunLength,
Delta,
Huffman,
Bitmap,
Hybrid,
}Expand description
Compression encoding schemes for sparse tensor indices
Variants§
Raw
No encoding (raw values)
RunLength
Run-length encoding for consecutive indices
Delta
Delta encoding for sequential indices
Huffman
Huffman encoding for variable-length codes
Bitmap
Bitmap encoding for dense regions
Hybrid
Hybrid encoding combining multiple schemes
Implementations§
Source§impl CompressionEncoding
impl CompressionEncoding
Sourcepub fn expected_compression_ratio(&self) -> f32
pub fn expected_compression_ratio(&self) -> f32
Get the expected compression ratio for typical sparse tensors
Sourcepub fn requires_sorted_indices(&self) -> bool
pub fn requires_sorted_indices(&self) -> bool
Check if encoding requires sorted indices
Trait Implementations§
Source§impl Clone for CompressionEncoding
impl Clone for CompressionEncoding
Source§fn clone(&self) -> CompressionEncoding
fn clone(&self) -> CompressionEncoding
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 moreSource§impl Debug for CompressionEncoding
impl Debug for CompressionEncoding
Source§impl Hash for CompressionEncoding
impl Hash for CompressionEncoding
Source§impl PartialEq for CompressionEncoding
impl PartialEq for CompressionEncoding
impl Copy for CompressionEncoding
impl Eq for CompressionEncoding
impl StructuralPartialEq for CompressionEncoding
Auto Trait Implementations§
impl Freeze for CompressionEncoding
impl RefUnwindSafe for CompressionEncoding
impl Send for CompressionEncoding
impl Sync for CompressionEncoding
impl Unpin for CompressionEncoding
impl UnsafeUnpin for CompressionEncoding
impl UnwindSafe for CompressionEncoding
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