[][src]Struct shine_graph::smat::CSMatrixMask

pub struct CSMatrixMask { /* fields omitted */ }

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]

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]

impl Default for CSMatrixMask[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<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> BorrowMut for T where
    T: ?Sized
[src]

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