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
, { ... } }

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

Provided methods

fn mutsmult(self, _s: f64) where
    Self: Sized
[src]

mutable multiplication by a scalar

fn mutvsub(self, _v: &[f64]) where
    Self: Sized
[src]

mutable vector subtraction

fn mutvsubu8(self, _v: &[u8]) where
    Self: Sized
[src]

fn mutvadd(self, _v: &[f64]) where
    Self: Sized
[src]

mutable vector addition

fn mutvaddu8(self, _v: &[u8]) where
    Self: Sized
[src]

fn mutvunit(self) where
    Self: Sized
[src]

mutably makes into a unit vector

fn mutsortf(self) where
    Self: Sized
[src]

sort in place

Loading content...

Implementations on Foreign Types

impl MutVectors for &mut [f64][src]

fn mutsmult(self, s: f64)[src]

Scalar multiplication of a vector, mutates self

fn mutvsub(self, v: &[f64])[src]

Vector subtraction, mutates self

fn mutvsubu8(self, v: &[u8])[src]

Vector subtraction mutates self by subtracting corresponding bytes

fn mutvadd(self, v: &[f64])[src]

Vector addition, mutates self

fn mutvaddu8(self, v: &[u8])[src]

Vector addition, mutates self by adding corresponding bytes

fn mutvunit(self)[src]

Mutate to unit vector

fn mutsortf(self)[src]

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

Loading content...

Implementors

Loading content...