pub struct ParallelAmgConfig {
pub n_threads: usize,
pub strength_threshold: f64,
pub coarsening: CoarsenMethod,
pub max_levels: usize,
pub min_coarse_size: usize,
pub max_coarsening_ratio: f64,
pub omega: f64,
}Expand description
Configuration for parallel AMG coarsening algorithms
Fields§
§n_threads: usizeNumber of threads for parallel computations
strength_threshold: f64Strength-of-connection threshold (default 0.25)
coarsening: CoarsenMethodCoarsening method to use
max_levels: usizeMaximum number of hierarchy levels
min_coarse_size: usizeMinimum coarse grid size (stop coarsening below this)
max_coarsening_ratio: f64Coarsening ratio target (stop if ratio exceeds this)
omega: f64Jacobi smoothing weight for SA interpolation
Trait Implementations§
Source§impl Clone for ParallelAmgConfig
impl Clone for ParallelAmgConfig
Source§fn clone(&self) -> ParallelAmgConfig
fn clone(&self) -> ParallelAmgConfig
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 ParallelAmgConfig
impl Debug for ParallelAmgConfig
Auto Trait Implementations§
impl Freeze for ParallelAmgConfig
impl RefUnwindSafe for ParallelAmgConfig
impl Send for ParallelAmgConfig
impl Sync for ParallelAmgConfig
impl Unpin for ParallelAmgConfig
impl UnsafeUnpin for ParallelAmgConfig
impl UnwindSafe for ParallelAmgConfig
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