Trait rstats::MutVectors[][src]

pub trait MutVectors {
    fn mutsmult(self, _s: f64)
    where
        Self: Sized
, { ... }
fn mutvsub(self, _v: &[f64])
    where
        Self: Sized
, { ... }
fn mutvsubu8(self, _v: &[u8])
    where
        Self: Sized
, { ... }
fn mutvadd(self, _v: &[f64])
    where
        Self: Sized
, { ... }
fn mutvaddu8(self, _v: &[u8])
    where
        Self: Sized
, { ... }
fn mutvunit(self)
    where
        Self: Sized
, { ... }
fn mutsortf(self)
    where
        Self: Sized
, { ... } }
Expand description

Mutable vector operations. Some of the vectors trait methods reimplemented here for efficiency, to mutate in-place

Provided methods

mutable multiplication by a scalar

mutable vector subtraction

mutable vector addition

mutably makes into a unit vector

sort in place

Implementations on Foreign Types

Scalar multiplication of a vector, mutates self

Vector subtraction, mutates self

Vector subtraction mutates self by subtracting corresponding bytes

Vector addition, mutates self

Vector addition, mutates self by adding corresponding bytes

Mutate to unit vector

Sorts a mutable Vec<f64> in place.
It is the responsibility of the user to ensure that there are no NaNs etc.

Implementors