Trait rstats::MutVecg

source ·
pub trait MutVecg {
    fn mutsmult<U>(self, _s: U)
    where
        U: Copy + PartialOrd,
        f64: From<U>
; fn mutvsub<U>(self, _v: &[U])
    where
        U: Copy + PartialOrd,
        f64: From<U>
; fn mutvadd<U>(self, _v: &[U])
    where
        U: Copy + PartialOrd,
        f64: From<U>
; fn minvert(self); fn mneg(self); fn munit(self); fn mlintrans(self); }
Expand description

Mutable operations on one generic slice. A few of the essential Vecg methods are reimplemented here to mutate self. This is for efficiency and convenience. For example, in vector iterative methods.

Required Methods

mutable multiplication by a scalar

mutable vector subtraction

mutable vector addition

Invert the magnitude

Negate the vector (all components swap sign)

Make into a unit vector

Linearly transform to interval [0,1]

Implementations on Foreign Types

Mutable vector operations on &mut [f64], where the operand endtype is generic

Scalar multiplication of a vector, mutates self

Vector subtraction, mutates self

Vector addition, mutates self

Vector with inverse magnitude

Unit vector

Linear transform to interval [0,1]

Implementors