pub struct StiffnessDetectionConfig<F: IntegrateFloat> {
pub method: StiffnessDetectionMethod,
pub min_steps_before_switch: usize,
pub stiffness_threshold: usize,
pub non_stiffness_threshold: usize,
pub analysis_window: usize,
pub step_size_ratio_threshold: F,
pub error_ratio_threshold: F,
pub use_eigenvalue_estimation: bool,
pub eigenvalue_est_period: usize,
pub indicator_weights: IndicatorWeights<F>,
/* private fields */
}Expand description
Configuration for stiffness detection
Fields§
§method: StiffnessDetectionMethodMethod used for stiffness detection
min_steps_before_switch: usizeMinimum number of steps before considering method switch
stiffness_threshold: usizeMinimum number of indicators needed to detect stiffness
non_stiffness_threshold: usizeMinimum number of indicators needed to detect non-stiffness
analysis_window: usizeWindow size for analyzing error and step size patterns
step_size_ratio_threshold: FThreshold for step size ratio indicating stiffness
error_ratio_threshold: FThreshold for error ratio indicating stiffness
use_eigenvalue_estimation: boolWhether to use eigenvalue estimation (more expensive)
eigenvalue_est_period: usizeMinimum period between eigenvalue estimations
indicator_weights: IndicatorWeights<F>Weight factors for different indicators
Trait Implementations§
Source§impl<F: Clone + IntegrateFloat> Clone for StiffnessDetectionConfig<F>
impl<F: Clone + IntegrateFloat> Clone for StiffnessDetectionConfig<F>
Source§fn clone(&self) -> StiffnessDetectionConfig<F>
fn clone(&self) -> StiffnessDetectionConfig<F>
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<F: Debug + IntegrateFloat> Debug for StiffnessDetectionConfig<F>
impl<F: Debug + IntegrateFloat> Debug for StiffnessDetectionConfig<F>
Source§impl<F: IntegrateFloat> Default for StiffnessDetectionConfig<F>
impl<F: IntegrateFloat> Default for StiffnessDetectionConfig<F>
Auto Trait Implementations§
impl<F> Freeze for StiffnessDetectionConfig<F>where
F: Freeze,
impl<F> RefUnwindSafe for StiffnessDetectionConfig<F>where
F: RefUnwindSafe,
impl<F> Send for StiffnessDetectionConfig<F>where
F: Send,
impl<F> Sync for StiffnessDetectionConfig<F>where
F: Sync,
impl<F> Unpin for StiffnessDetectionConfig<F>where
F: Unpin,
impl<F> UnwindSafe for StiffnessDetectionConfig<F>where
F: 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