[][src]Trait oxygengine_physics_2d::prelude::nalgebra::CsStorage

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

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).

Loading content...

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]

Loading content...