#[non_exhaustive]pub struct LsmrOptions {
pub damp: f64,
pub atol: f64,
pub btol: f64,
pub conlim: f64,
pub max_iterations: Option<usize>,
}Expand description
Options for lsmr, with SciPy’s defaults.
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.damp: f64The damping λ in min ‖A x − b‖² + λ² ‖x‖².
atol: f64Relative error in A: stop when ‖Aᵀr‖ ≤ atol ‖A‖ ‖r‖.
btol: f64Relative error in b: stop when ‖r‖ ≤ btol ‖b‖ + atol ‖A‖ ‖x‖.
conlim: f64Stop when the condition estimate exceeds this.
max_iterations: Option<usize>Default min(m, n).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LsmrOptions
impl RefUnwindSafe for LsmrOptions
impl Send for LsmrOptions
impl Sync for LsmrOptions
impl Unpin for LsmrOptions
impl UnsafeUnpin for LsmrOptions
impl UnwindSafe for LsmrOptions
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