Trait sprs::DenseVectorMut[][src]

pub trait DenseVectorMut: DenseVector {
    fn index_mut(&mut self, idx: usize) -> &mut Self::Scalar;
}

Trait for dense vectors that can be modified, useful for expressing algorithms which compute a resulting dense vector, such as solvers.

This trait is sealed, and cannot be implemented outside of the sprs crate.

Required methods

fn index_mut(&mut self, idx: usize) -> &mut Self::Scalar[src]

Random mutable access to an element in the vector.

Panics

If the index is out of bounds

Loading content...

Implementations on Foreign Types

impl<'a, N: 'a + Zero + Clone> DenseVectorMut for [N][src]

impl<'a, N: 'a + Zero + Clone> DenseVectorMut for &'a mut [N][src]

impl<N: Zero + Clone> DenseVectorMut for Vec<N>[src]

impl<'a, N: 'a + Zero + Clone> DenseVectorMut for &'a mut Vec<N>[src]

impl<N, S> DenseVectorMut for ArrayBase<S, Ix1> where
    S: DataMut<Elem = N>,
    N: Zero + Clone
[src]

impl<'a, N, S> DenseVectorMut for &'a mut ArrayBase<S, Ix1> where
    S: DataMut<Elem = N>,
    N: 'a + Zero + Clone
[src]

Loading content...

Implementors

Loading content...