pub struct GmresConfig<R> {
pub max_iterations: usize,
pub restart: usize,
pub tolerance: R,
pub print_interval: usize,
}Expand description
GMRES solver configuration
Fields§
§max_iterations: usizeMaximum number of outer iterations (restarts)
restart: usizeRestart parameter (number of inner iterations before restart)
tolerance: RRelative tolerance for convergence
print_interval: usizePrint progress every N iterations (0 = no output)
Implementations§
Source§impl<R> GmresConfig<R>where
R: Float + FromPrimitive,
impl<R> GmresConfig<R>where
R: Float + FromPrimitive,
Sourcepub fn for_small_problems() -> GmresConfig<R>
pub fn for_small_problems() -> GmresConfig<R>
Create config for small problems
Sourcepub fn with_restart(restart: usize) -> GmresConfig<R>where
GmresConfig<R>: Default,
pub fn with_restart(restart: usize) -> GmresConfig<R>where
GmresConfig<R>: Default,
Create config with specific restart parameter
Trait Implementations§
Source§impl<R> Clone for GmresConfig<R>where
R: Clone,
impl<R> Clone for GmresConfig<R>where
R: Clone,
Source§fn clone(&self) -> GmresConfig<R>
fn clone(&self) -> GmresConfig<R>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<R> Debug for GmresConfig<R>where
R: Debug,
impl<R> Debug for GmresConfig<R>where
R: Debug,
Source§impl Default for GmresConfig<f32>
impl Default for GmresConfig<f32>
Auto Trait Implementations§
impl<R> Freeze for GmresConfig<R>where
R: Freeze,
impl<R> RefUnwindSafe for GmresConfig<R>where
R: RefUnwindSafe,
impl<R> Send for GmresConfig<R>where
R: Send,
impl<R> Sync for GmresConfig<R>where
R: Sync,
impl<R> Unpin for GmresConfig<R>where
R: Unpin,
impl<R> UnsafeUnpin for GmresConfig<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for GmresConfig<R>where
R: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more