pub struct CooMatrix<T> {
pub rows: usize,
pub cols: usize,
pub row_indices: Vec<u32>,
pub col_indices: Vec<u32>,
pub values: Vec<T>,
}Expand description
Fields§
§rows: usizeNumber of rows.
cols: usizeNumber of columns.
row_indices: Vec<u32>Row index for each nonzero.
col_indices: Vec<u32>Column index for each nonzero.
values: Vec<T>Value for each nonzero.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for CooMatrix<T>
impl<T> RefUnwindSafe for CooMatrix<T>where
T: RefUnwindSafe,
impl<T> Send for CooMatrix<T>where
T: Send,
impl<T> Sync for CooMatrix<T>where
T: Sync,
impl<T> Unpin for CooMatrix<T>where
T: Unpin,
impl<T> UnsafeUnpin for CooMatrix<T>
impl<T> UnwindSafe for CooMatrix<T>where
T: UnwindSafe,
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