pub struct RowScaleBlock {
pub n_rows: usize,
pub fires: bool,
pub n_scaled: usize,
pub min_scale: Number,
pub n_at_floor: usize,
pub n_zero_jac: usize,
}Expand description
One row block’s share of the gradient-based scaling preview.
The equalities (c) and the inequalities (d) are gated separately
upstream: unless some row of the block exceeds the cutoff, the whole
block is left unscaled. So fires is not redundant with n_scaled.
Fields§
§n_rows: usize§fires: boolWhether the block gets a scale vector at all.
n_scaled: usizeRows the block would scale down (factor < 1). Zero when !fires.
min_scale: NumberSmallest factor assigned, or 1.0 when nothing is scaled.
n_at_floor: usizeRows driven all the way to nlp_scaling_min_value.
n_zero_jac: usizeRows whose Jacobian is entirely zero at x0. These are the rows the sample cannot see; they come out at 1.0 whatever their coefficients are.
Trait Implementations§
Source§impl Clone for RowScaleBlock
impl Clone for RowScaleBlock
Source§fn clone(&self) -> RowScaleBlock
fn clone(&self) -> RowScaleBlock
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 moreSource§impl Debug for RowScaleBlock
impl Debug for RowScaleBlock
Source§impl Default for RowScaleBlock
impl Default for RowScaleBlock
Source§fn default() -> RowScaleBlock
fn default() -> RowScaleBlock
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RowScaleBlock
impl RefUnwindSafe for RowScaleBlock
impl Send for RowScaleBlock
impl Sync for RowScaleBlock
impl Unpin for RowScaleBlock
impl UnsafeUnpin for RowScaleBlock
impl UnwindSafe for RowScaleBlock
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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