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