[−][src]Struct shine_graph::smat::CSMatrixMask
Compressed Sparse (Square) Row matrix. Its a variant of the CSR data structure where a dense vector is used to store the offset for the occupied rows.
Methods
impl CSMatrixMask
[src]
pub fn new_with_capacity(
row_capacity: usize,
nnz_capacity: usize
) -> CSMatrixMask
[src]
row_capacity: usize,
nnz_capacity: usize
) -> CSMatrixMask
Creates a new CSMatrixMask with the given capacity
pub fn new() -> CSMatrixMask
[src]
Creates an empty CSMatrixMask
pub fn nnz(&self) -> usize
[src]
Return the row capacity.
pub fn capacity(&self) -> usize
[src]
Return the row capacity.
pub fn increase_capacity_to(&mut self, capacity: usize)
[src]
Increase the row capacity to the given value. If matrix has a bigger capacity, it is not shrunk.
Trait Implementations
impl MatrixMask for CSMatrixMask
[src]
fn clear(&mut self)
[src]
fn add(&mut self, row: usize, column: usize) -> (DataPosition, bool)
[src]
fn remove(
&mut self,
row: usize,
column: usize
) -> Option<(DataPosition, DataRange)>
[src]
&mut self,
row: usize,
column: usize
) -> Option<(DataPosition, DataRange)>
fn get_data_range(&self, row: 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 CSMatrixMask
[src]
Auto Trait Implementations
impl Send for CSMatrixMask
impl Sync for CSMatrixMask
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,