pub enum SparseFormat {
CSR,
CSC,
COO,
}Expand description
Sparse tensor storage format.
Variants§
CSR
Compressed Sparse Row (CSR) - efficient for row-wise operations
CSC
Compressed Sparse Column (CSC) - efficient for column-wise operations
COO
Coordinate (COO) - flexible for construction
Implementations§
Source§impl SparseFormat
impl SparseFormat
Trait Implementations§
Source§impl Clone for SparseFormat
impl Clone for SparseFormat
Source§fn clone(&self) -> SparseFormat
fn clone(&self) -> SparseFormat
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 SparseFormat
impl Debug for SparseFormat
Source§impl<'de> Deserialize<'de> for SparseFormat
impl<'de> Deserialize<'de> for SparseFormat
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 Hash for SparseFormat
impl Hash for SparseFormat
Source§impl PartialEq for SparseFormat
impl PartialEq for SparseFormat
Source§impl Serialize for SparseFormat
impl Serialize for SparseFormat
impl Copy for SparseFormat
impl Eq for SparseFormat
impl StructuralPartialEq for SparseFormat
Auto Trait Implementations§
impl Freeze for SparseFormat
impl RefUnwindSafe for SparseFormat
impl Send for SparseFormat
impl Sync for SparseFormat
impl Unpin for SparseFormat
impl UnwindSafe for SparseFormat
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