pub struct DistAMGConfig {
pub n_workers: usize,
pub max_levels: usize,
pub coarsening_ratio: f64,
pub smoother_iters: usize,
}Expand description
Configuration for the distributed AMG hierarchy.
Fields§
§n_workers: usizeNumber of logical workers (default 4).
max_levels: usizeMaximum number of AMG levels (default 4).
coarsening_ratio: f64Target coarsening ratio: stop coarsening when
n_coarse / n_fine >= coarsening_ratio (default 0.25).
smoother_iters: usizeNumber of pre/post-smoother iterations on each level (default 2).
Trait Implementations§
Source§impl Clone for DistAMGConfig
impl Clone for DistAMGConfig
Source§fn clone(&self) -> DistAMGConfig
fn clone(&self) -> DistAMGConfig
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 DistAMGConfig
impl Debug for DistAMGConfig
Auto Trait Implementations§
impl Freeze for DistAMGConfig
impl RefUnwindSafe for DistAMGConfig
impl Send for DistAMGConfig
impl Sync for DistAMGConfig
impl Unpin for DistAMGConfig
impl UnsafeUnpin for DistAMGConfig
impl UnwindSafe for DistAMGConfig
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