[−][src]Struct shine_graph::smat::SMatrix
Sparse (Square) Row matrix
Methods
impl<M, S> SMatrix<M, S> where
M: MatrixMask,
S: Store,
[src]
M: MatrixMask,
S: Store,
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]
ⓘImportant traits for DataIter<'a, S>
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]
M: MatrixMask,
S: StoreMut,
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]
&mut self,
r: usize,
c: usize,
f: F
) -> Option<S::Item>
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]
ⓘImportant traits for DataIterMut<'a, S>
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]
T: Default,
M: MatrixMask,
S: StoreMut<Item = T>,
Trait Implementations
Auto Trait Implementations
impl<M, S> Send for SMatrix<M, S> where
M: Send,
S: Send,
M: Send,
S: Send,
impl<M, S> Sync for SMatrix<M, S> where
M: Sync,
S: Sync,
M: Sync,
S: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,