#[non_exhaustive]pub enum InnerSolver {
Gmres,
Bicgstab,
Lgmres,
}Expand description
The Krylov solver for the Newton corrections.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Gmres
GMRES, one cycle of inner_maxiter steps (SciPy’s method='gmres').
Bicgstab
BiCGSTAB, at most inner_maxiter steps of two products each (method='bicgstab').
Lgmres
LGMRES (SciPy’s default inner solver): one cycle of 30 Krylov steps, augmented by up to 10
earlier Newton corrections, which are kept from one Newton iteration to the next and put
first in the subspace (SciPy’s outer_k=10, prepend_outer_v=True,
store_outer_Av=False). inner_maxiter does not apply.
Trait Implementations§
Source§impl Clone for InnerSolver
impl Clone for InnerSolver
impl Copy for InnerSolver
Source§impl Debug for InnerSolver
impl Debug for InnerSolver
impl Eq for InnerSolver
Source§impl PartialEq for InnerSolver
impl PartialEq for InnerSolver
impl StructuralPartialEq for InnerSolver
Auto Trait Implementations§
impl Freeze for InnerSolver
impl RefUnwindSafe for InnerSolver
impl Send for InnerSolver
impl Sync for InnerSolver
impl Unpin for InnerSolver
impl UnsafeUnpin for InnerSolver
impl UnwindSafe for InnerSolver
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