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§
sourcefn mutsmult<U>(self, _s: U)where
U: Copy + PartialOrd,
f64: From<U>,
fn mutsmult<U>(self, _s: U)where
U: Copy + PartialOrd,
f64: From<U>,
mutable multiplication by a scalar
Implementations on Foreign Types§
source§impl MutVecg for &mut [f64]
impl MutVecg for &mut [f64]
Mutable vector operations on &mut [f64]
, where the operand endtype is generic
source§fn mutsmult<U>(self, s: U)where
U: Copy + PartialOrd,
f64: From<U>,
fn mutsmult<U>(self, s: U)where
U: Copy + PartialOrd,
f64: From<U>,
Scalar multiplication of a vector, mutates self
source§fn mutvsub<U>(self, v: &[U])where
U: Copy + PartialOrd,
f64: From<U>,
fn mutvsub<U>(self, v: &[U])where
U: Copy + PartialOrd,
f64: From<U>,
Vector subtraction, mutates self
source§fn mutvadd<U>(self, v: &[U])where
U: Copy + PartialOrd,
f64: From<U>,
fn mutvadd<U>(self, v: &[U])where
U: Copy + PartialOrd,
f64: From<U>,
Vector addition, mutates self