[][src]Trait rstats::MutVectors

pub trait MutVectors {
    fn mutsmult(self, s: f64);
fn mutvsub(self, v: &[f64]);
fn mutvadd(self, v: &[f64]);
fn mutvunit(self);
fn mutvmag(self) -> f64; }

Mutable primitive vector operations (for efficiency).

Required methods

fn mutsmult(self, s: f64)

mutable multiplication by a scalar

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

mutable vector subtraction

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

mutable vector addition

fn mutvunit(self)

mutably makes into a unit vector

fn mutvmag(self) -> f64

magnitude of a mutable vector (vector unchanged)

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 mutvadd(self, v: &[f64])[src]

Vector addition, mutates self

fn mutvunit(self)[src]

Mutate to unit vector

fn mutvmag(self) -> f64[src]

Vector magnitude duplicated for mutable type

Loading content...

Implementors

Loading content...