pub struct GmresConfig {
pub max_iterations: usize,
pub restart: usize,
pub tolerance: f64,
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) Also known as the Krylov subspace dimension
tolerance: f64Relative tolerance for convergence
print_interval: usizePrint progress every N iterations (0 = no output)
Implementations§
Source§impl GmresConfig
impl GmresConfig
Sourcepub fn for_small_problems() -> Self
pub fn for_small_problems() -> Self
Create config for small problems (uses more memory, faster convergence)
Sourcepub fn for_large_bem() -> Self
pub fn for_large_bem() -> Self
Create config for large BEM problems
Sourcepub fn with_restart(restart: usize) -> Self
pub fn with_restart(restart: usize) -> Self
Create config with specific restart parameter
Trait Implementations§
Source§impl Clone for GmresConfig
impl Clone for GmresConfig
Source§fn clone(&self) -> GmresConfig
fn clone(&self) -> GmresConfig
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 Debug for GmresConfig
impl Debug for GmresConfig
Auto Trait Implementations§
impl Freeze for GmresConfig
impl RefUnwindSafe for GmresConfig
impl Send for GmresConfig
impl Sync for GmresConfig
impl Unpin for GmresConfig
impl UnwindSafe for GmresConfig
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