[][src]Struct shine_graph::smat::SMatrix

pub struct SMatrix<M, S> where
    M: MatrixMask,
    S: Store
{ /* fields omitted */ }

Sparse (Square) Row matrix

Methods

impl<M, S> SMatrix<M, S> where
    M: MatrixMask,
    S: Store
[src]

pub fn new(mask: M, store: S) -> Self[src]

pub fn nnz(&self) -> usize[src]

pub fn capacity(&self) -> usize[src]

pub fn contains(&self, r: usize, c: usize) -> bool[src]

pub fn get(&self, r: usize, c: usize) -> Option<&S::Item>[src]

Important traits for DataIter<'a, S>
pub fn data_iter(&self) -> DataIter<S>[src]

pub fn read(&self) -> WrapRowRead<M, S>[src]

pub fn read_row(&self, r: usize) -> RowRead<M, S>[src]

impl<M, S> SMatrix<M, S> where
    M: MatrixMask,
    S: StoreMut
[src]

pub fn clear(&mut self)[src]

pub fn add(&mut self, r: usize, c: usize, value: S::Item) -> Option<S::Item>[src]

pub fn add_with<F: FnOnce() -> S::Item>(
    &mut self,
    r: usize,
    c: usize,
    f: F
) -> Option<S::Item>
[src]

pub fn remove(&mut self, r: usize, c: usize) -> Option<S::Item>[src]

pub fn get_entry(&mut self, r: usize, c: usize) -> Entry<M, S>[src]

pub fn get_mut(&mut self, r: usize, c: usize) -> Option<&mut S::Item>[src]

Important traits for DataIterMut<'a, S>
pub fn data_iter_mut(&mut self) -> DataIterMut<S>[src]

pub fn update(&mut self) -> WrapRowUpdate<M, S>[src]

pub fn write(&mut self) -> WrapRowWrite<M, S>[src]

pub fn update_row(&mut self, r: usize) -> RowUpdate<M, S>[src]

pub fn write_row(&mut self, r: usize) -> RowWrite<M, S>[src]

impl<T, M, S> SMatrix<M, S> where
    T: Default,
    M: MatrixMask,
    S: StoreMut<Item = T>, 
[src]

pub fn add_default(&mut self, r: usize, c: usize) -> Option<S::Item>[src]

Trait Implementations

impl<M, S> Default for SMatrix<M, S> where
    M: Default + MatrixMask,
    S: Default + Store
[src]

Auto Trait Implementations

impl<M, S> Send for SMatrix<M, S> where
    M: Send,
    S: Send

impl<M, S> Sync for SMatrix<M, S> where
    M: Sync,
    S: Sync

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]