pub trait CsStorage<T, R, C = U1>: for<'a> CsStorageIter<'a, T, R, C> {
    fn shape(&self) -> (R, C);
    unsafe fn row_index_unchecked(&self, i: usize) -> usize;
    unsafe fn get_value_unchecked(&self, i: usize) -> &T;
    fn get_value(&self, i: usize) -> &T;
    fn row_index(&self, i: usize) -> usize;
    fn column_range(&self, i: usize) -> Range<usize>;
    fn len(&self) -> usize;
}
Expand description

Trait for compressed column sparse matrix storage.

Required Methods

The shape of the stored matrix.

Retrieve the i-th row index of the underlying row index buffer.

Safety

No bound-checking is performed.

The i-th value on the contiguous value buffer of this storage.

Safety

No bound-checking is performed.

The i-th value on the contiguous value buffer of this storage.

Retrieve the i-th row index of the underlying row index buffer.

The value indices for the i-th column.

The size of the value buffer (i.e. the entries known as possibly being non-zero).

Implementors