pub trait MutVecg {
// Required methods
fn mutsmult<U: PartialOrd + Into<f64>>(self, _s: U);
fn mutvsub<U: Clone + PartialOrd + Into<f64>>(self, _v: &[U]);
fn mutvadd<U: Clone + PartialOrd + Into<f64>>(self, _v: &[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: PartialOrd + Into<f64>>(self, _s: U)
fn mutsmult<U: PartialOrd + Into<f64>>(self, _s: U)
mutable multiplication by a scalar
Object Safety§
This trait is not object safe.
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