Struct dense_mats::StridedVec [] [src]

pub struct StridedVec<N, Storage> where Storage: Deref<Target=[N]> {
    // some fields omitted
}

A simple dense vector

Methods

impl<N, Storage> StridedVec<N, Storage> where Storage: Deref<Target=[N]>

fn iter(&self) -> Map<Chunks<N>, fn(&[N]) -> &N>

Iterate over a dense vector's values by reference

fn data(&self) -> &[N]

The underlying data

fn dim(&self) -> usize

The number of dimensions

fn stride(&self) -> usize

The stride of this vector

impl<N, Storage> StridedVec<N, Storage> where Storage: DerefMut<Target=[N]>

fn iter_mut(&mut self) -> Map<ChunksMut<N>, fn(&mut [N]) -> &mut N>

Iterate over a dense vector's values by mutable reference

fn data_mut(&mut self) -> &mut [N]

The underlying data as a mutable slice

Trait Implementations

Derived Implementations

impl<N: Debug, Storage: Debug> Debug for StridedVec<N, Storage> where Storage: Deref<Target=[N]>, Storage: Debug

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl<N: PartialEq, Storage: PartialEq> PartialEq for StridedVec<N, Storage> where Storage: Deref<Target=[N]>, Storage: PartialEq

fn eq(&self, __arg_0: &StridedVec<N, Storage>) -> bool

fn ne(&self, __arg_0: &StridedVec<N, Storage>) -> bool