#[non_exhaustive]pub struct LeastSquaresResult<T> {
pub solution: Array1<T>,
pub singular_values: Array1<f64>,
pub rank: usize,
pub residual_sum_of_squares: Option<f64>,
}Expand description
The result of LeastSquaresSvd::least_squares.
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.solution: Array1<T>The minimum-norm minimiser of ‖A x − b‖₂.
singular_values: Array1<f64>§rank: usizeThe numerical rank (singular values above max(m, n) · ε · σ_max).
residual_sum_of_squares: Option<f64>‖A x − b‖² when the system is overdetermined and of full rank.
Trait Implementations§
Source§impl<T: Clone> Clone for LeastSquaresResult<T>
impl<T: Clone> Clone for LeastSquaresResult<T>
Auto Trait Implementations§
impl<T> Freeze for LeastSquaresResult<T>
impl<T> RefUnwindSafe for LeastSquaresResult<T>where
T: RefUnwindSafe,
impl<T> Send for LeastSquaresResult<T>where
T: Send,
impl<T> Sync for LeastSquaresResult<T>where
T: Sync,
impl<T> Unpin for LeastSquaresResult<T>
impl<T> UnsafeUnpin for LeastSquaresResult<T>
impl<T> UnwindSafe for LeastSquaresResult<T>where
T: RefUnwindSafe,
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