Skip to main content

NormalTrial

Struct NormalTrial 

Source
pub struct NormalTrial {
Show 17 fields pub x: Vec<f64>, pub cost: f64, pub scale_inv: Vec<f64>, pub v: Vec<f64>, pub delta: f64, pub alpha_in: f64, pub alpha_out: f64, pub s: Vec<f64>, pub full_rank: bool, pub step: Vec<f64>, pub x_new: Vec<f64>, pub predicted_reduction: f64, pub actual_reduction: f64, pub delta_new: f64, pub ratio: f64, pub accepted: bool, pub select: SelectTrace,
}
Expand description

Trial diagnostics without storing the large residual or a Jacobian.

Fields§

§x: Vec<f64>§cost: f64§scale_inv: Vec<f64>§v: Vec<f64>§delta: f64§alpha_in: f64§alpha_out: f64

Alpha returned by solve_lsq_trust_region, before the radius rescaling.

§s: Vec<f64>§full_rank: bool§step: Vec<f64>§x_new: Vec<f64>§predicted_reduction: f64§actual_reduction: f64§delta_new: f64§ratio: f64§accepted: bool§select: SelectTrace

Trait Implementations§

Source§

impl Debug for NormalTrial

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for NormalTrial

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ByRef<T> for T

Source§

fn by_ref(&self) -> &T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Imply<T> for U
where T: ?Sized, U: ?Sized,

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.