pub struct AMGOptions {
pub max_levels: usize,
pub theta: f64,
pub max_coarse_size: usize,
pub interpolation: InterpolationType,
pub smoother: SmootherType,
pub pre_smooth_steps: usize,
pub post_smooth_steps: usize,
pub cycle_type: CycleType,
}
Expand description
Options for the AMG preconditioner
Fields§
§max_levels: usize
Maximum number of levels in the multigrid hierarchy
theta: f64
Strong connection threshold for coarsening (typically 0.25-0.5)
max_coarse_size: usize
Maximum size of coarse grid before switching to direct solver
interpolation: InterpolationType
Interpolation method
smoother: SmootherType
Smoother type
pre_smooth_steps: usize
Number of pre-smoothing steps
post_smooth_steps: usize
Number of post-smoothing steps
cycle_type: CycleType
Cycle type (V-cycle, W-cycle, etc.)
Trait Implementations§
Source§impl Clone for AMGOptions
impl Clone for AMGOptions
Source§fn clone(&self) -> AMGOptions
fn clone(&self) -> AMGOptions
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 AMGOptions
impl Debug for AMGOptions
Auto Trait Implementations§
impl Freeze for AMGOptions
impl RefUnwindSafe for AMGOptions
impl Send for AMGOptions
impl Sync for AMGOptions
impl Unpin for AMGOptions
impl UnwindSafe for AMGOptions
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