pub struct IntegerSparseMatrix {
pub rows: Vec<i32>,
pub cols: Vec<i32>,
pub vals: Vec<i32>,
pub shape: Shape,
}Expand description
Sparse matrix representation using coordinate format
Fields§
§rows: Vec<i32>Row indices (0-based)
cols: Vec<i32>Column indices (0-based)
vals: Vec<i32>Values at the specified positions
shape: ShapeMatrix dimensions
Implementations§
Trait Implementations§
Source§impl Clone for IntegerSparseMatrix
impl Clone for IntegerSparseMatrix
Source§impl Debug for IntegerSparseMatrix
impl Debug for IntegerSparseMatrix
Source§impl<'de> Deserialize<'de> for IntegerSparseMatrix
impl<'de> Deserialize<'de> for IntegerSparseMatrix
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
Auto Trait Implementations§
impl Freeze for IntegerSparseMatrix
impl RefUnwindSafe for IntegerSparseMatrix
impl Send for IntegerSparseMatrix
impl Sync for IntegerSparseMatrix
impl Unpin for IntegerSparseMatrix
impl UnsafeUnpin for IntegerSparseMatrix
impl UnwindSafe for IntegerSparseMatrix
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