pub struct IteratesVectorMut {
pub x: Box<dyn Vector>,
pub s: Box<dyn Vector>,
pub y_c: Box<dyn Vector>,
pub y_d: Box<dyn Vector>,
pub z_l: Box<dyn Vector>,
pub z_u: Box<dyn Vector>,
pub v_l: Box<dyn Vector>,
pub v_u: Box<dyn Vector>,
}Expand description
Owned, mutable variant — used as the working-storage form of an
IteratesVector (typical use: a freshly-allocated solution slot the
solver writes into). Convertible into IteratesVector via freeze.
Fields§
§x: Box<dyn Vector>§s: Box<dyn Vector>§y_c: Box<dyn Vector>§y_d: Box<dyn Vector>§z_l: Box<dyn Vector>§z_u: Box<dyn Vector>§v_l: Box<dyn Vector>§v_u: Box<dyn Vector>Implementations§
Source§impl IteratesVectorMut
impl IteratesVectorMut
Sourcepub fn freeze(self) -> IteratesVector
pub fn freeze(self) -> IteratesVector
Convert into the shareable Rc-backed form.
pub fn amax(&self) -> Number
Sourcepub fn scal(&mut self, alpha: Number)
pub fn scal(&mut self, alpha: Number)
Scale every component by alpha — port of IteratesVector::Scal.
Sourcepub fn axpy(&mut self, alpha: Number, other: &IteratesVector)
pub fn axpy(&mut self, alpha: Number, other: &IteratesVector)
self += alpha * other per component — port of IteratesVector::Axpy.
Sourcepub fn add_one_vector(&mut self, a: Number, other: &IteratesVector, b: Number)
pub fn add_one_vector(&mut self, a: Number, other: &IteratesVector, b: Number)
self = a*self + b*other per component — port of
IteratesVector::AddOneVector (when called on self).
Auto Trait Implementations§
impl !RefUnwindSafe for IteratesVectorMut
impl !Send for IteratesVectorMut
impl !Sync for IteratesVectorMut
impl !UnwindSafe for IteratesVectorMut
impl Freeze for IteratesVectorMut
impl Unpin for IteratesVectorMut
impl UnsafeUnpin for IteratesVectorMut
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T, U> Imply<T> for U
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more