[−][src]Struct shine_graph::smat::HCSMatrixMask
Compressed Sparse (Square) Row matrix. Its a variant of the CSR data structure where a HashMap is used to store the data ranges for the occupied rows.
Methods
impl HCSMatrixMask
[src]
pub fn new_with_capacity(nnz_capacity: usize) -> HCSMatrixMask
[src]
Creates a new HCSMatrixMask with the given
pub fn new() -> HCSMatrixMask
[src]
Creates an empty HCSMatrixMask
Trait Implementations
impl MatrixMask for HCSMatrixMask
[src]
fn clear(&mut self)
[src]
fn add(&mut self, _major: usize, _minor: usize) -> (DataPosition, bool)
[src]
fn remove(
&mut self,
_major: usize,
_minor: usize
) -> Option<(DataPosition, DataRange)>
[src]
&mut self,
_major: usize,
_minor: usize
) -> Option<(DataPosition, DataRange)>
fn get_data_range(&self, _major: usize) -> DataRange
[src]
fn lower_bound_column_position(
&self,
_column: usize,
_range: DataRange
) -> Option<(usize, DataPosition)>
[src]
&self,
_column: usize,
_range: DataRange
) -> Option<(usize, DataPosition)>
fn get_column_index(&self, _pos: DataPosition) -> usize
[src]
impl Default for HCSMatrixMask
[src]
Auto Trait Implementations
impl Send for HCSMatrixMask
impl Sync for HCSMatrixMask
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
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> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,