#[non_exhaustive]pub struct BoundedLeastSquaresResult {
pub x: Vec<f64>,
pub cost: f64,
pub fun: Vec<f64>,
pub grad: Vec<f64>,
pub optimality: f64,
pub active: Vec<i8>,
pub nfev: usize,
pub njev: usize,
pub status: i32,
}Expand description
The result of least_squares_bounded.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.x: Vec<f64>§cost: f64½ Σ ρ(fᵢ²) (with the loss and scale applied).
fun: Vec<f64>The residuals at the solution.
grad: Vec<f64>The gradient of the cost.
optimality: f64The first-order optimality ‖v ∘ g‖∞ with the Coleman-Li scaling v.
active: Vec<i8>§nfev: usize§njev: usize§status: i32SciPy’s status: 1 gtol, 2 ftol, 3 xtol, 4 ftol and xtol, 0 the evaluation limit.
Trait Implementations§
Source§impl Clone for BoundedLeastSquaresResult
impl Clone for BoundedLeastSquaresResult
Auto Trait Implementations§
impl Freeze for BoundedLeastSquaresResult
impl RefUnwindSafe for BoundedLeastSquaresResult
impl Send for BoundedLeastSquaresResult
impl Sync for BoundedLeastSquaresResult
impl Unpin for BoundedLeastSquaresResult
impl UnsafeUnpin for BoundedLeastSquaresResult
impl UnwindSafe for BoundedLeastSquaresResult
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