[−][src]Trait oxygengine_physics_2d::prelude::nalgebra::sparse::CsStorage
Trait for compressed column sparse matrix storage.
Required methods
fn shape(&self) -> (R, C)
The shape of the stored matrix.
unsafe fn row_index_unchecked(&self, i: usize) -> usize
Retrieve the i-th row index of the underlying row index buffer.
No bound-checking is performed.
unsafe fn get_value_unchecked(&self, i: usize) -> &N
The i-th value on the contiguous value buffer of this storage.
No bound-checking is performed.
fn get_value(&self, i: usize) -> &N
The i-th value on the contiguous value buffer of this storage.
fn row_index(&self, i: usize) -> usize
Retrieve the i-th row index of the underlying row index buffer.
fn column_range(&self, i: usize) -> Range<usize>
The value indices for the i
-th column.
fn len(&self) -> usize
The size of the value buffer (i.e. the entries known as possibly being non-zero).
Implementors
impl<N, R, C> CsStorage<N, R, C> for CsVecStorage<N, R, C> where
C: Dim,
N: Scalar,
R: Dim,
DefaultAllocator: Allocator<usize, C, U1>,
[src]
C: Dim,
N: Scalar,
R: Dim,
DefaultAllocator: Allocator<usize, C, U1>,