pub struct CooMatrix<S> {
pub nrows: usize,
pub ncols: usize,
pub rows: Vec<usize>,
pub cols: Vec<usize>,
pub vals: Vec<S>,
}Expand description
Coordinate (triplet) format for assembling sparse matrices.
Good for incremental construction, then convert to CSR for computation.
Fields§
§nrows: usize§ncols: usize§rows: Vec<usize>§cols: Vec<usize>§vals: Vec<S>Implementations§
Source§impl<S: Scalar> CooMatrix<S>
impl<S: Scalar> CooMatrix<S>
Auto Trait Implementations§
impl<S> Freeze for CooMatrix<S>
impl<S> RefUnwindSafe for CooMatrix<S>where
S: RefUnwindSafe,
impl<S> Send for CooMatrix<S>where
S: Send,
impl<S> Sync for CooMatrix<S>where
S: Sync,
impl<S> Unpin for CooMatrix<S>where
S: Unpin,
impl<S> UnsafeUnpin for CooMatrix<S>
impl<S> UnwindSafe for CooMatrix<S>where
S: 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