pub struct IteratesVector {
pub x: Rc<dyn Vector>,
pub s: Rc<dyn Vector>,
pub y_c: Rc<dyn Vector>,
pub y_d: Rc<dyn Vector>,
pub z_l: Rc<dyn Vector>,
pub z_u: Rc<dyn Vector>,
pub v_l: Rc<dyn Vector>,
pub v_u: Rc<dyn Vector>,
}Expand description
Eight-component iterate vector. Cheap to clone via Rc.
Fields§
§x: Rc<dyn Vector>§s: Rc<dyn Vector>§y_c: Rc<dyn Vector>§y_d: Rc<dyn Vector>§z_l: Rc<dyn Vector>§z_u: Rc<dyn Vector>§v_l: Rc<dyn Vector>§v_u: Rc<dyn Vector>Implementations§
Source§impl IteratesVector
impl IteratesVector
Sourcepub fn new(
x: Rc<dyn Vector>,
s: Rc<dyn Vector>,
y_c: Rc<dyn Vector>,
y_d: Rc<dyn Vector>,
z_l: Rc<dyn Vector>,
z_u: Rc<dyn Vector>,
v_l: Rc<dyn Vector>,
v_u: Rc<dyn Vector>,
) -> Self
pub fn new( x: Rc<dyn Vector>, s: Rc<dyn Vector>, y_c: Rc<dyn Vector>, y_d: Rc<dyn Vector>, z_l: Rc<dyn Vector>, z_u: Rc<dyn Vector>, v_l: Rc<dyn Vector>, v_u: Rc<dyn Vector>, ) -> Self
Construct from eight already-allocated component vectors.
Sourcepub fn amax(&self) -> Number
pub fn amax(&self) -> Number
Max-norm across all eight components — port of
IteratesVector::Amax() (which itself is CompoundVector::Amax,
the max of per-block Amax).
Sourcepub fn make_new_zeroed(&self) -> IteratesVectorMut
pub fn make_new_zeroed(&self) -> IteratesVectorMut
Allocate a fresh, zero-initialized iterate with the same shape.
Equivalent to upstream MakeNewIteratesVector(true).
Sourcepub fn deep_copy(&self) -> IteratesVectorMut
pub fn deep_copy(&self) -> IteratesVectorMut
Deep copy — equivalent to upstream MakeNewIteratesVectorCopy().
Trait Implementations§
Source§impl Clone for IteratesVector
impl Clone for IteratesVector
Source§fn clone(&self) -> IteratesVector
fn clone(&self) -> IteratesVector
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for IteratesVector
impl !Send for IteratesVector
impl !Sync for IteratesVector
impl !UnwindSafe for IteratesVector
impl Freeze for IteratesVector
impl Unpin for IteratesVector
impl UnsafeUnpin for IteratesVector
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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