pub struct ParamsStep {
pub m_min: f64,
pub m_max: f64,
pub m_safety: f64,
pub m_first_reject: f64,
pub h_ini: f64,
pub n_step_max: usize,
pub rel_error_prev_min: f64,
}Expand description
Holds parameters to control the variable stepsize algorithm
Fields§
§m_min: f64Min step multiplier
0.001 ≤ m_min < 0.5 and m_min < m_maxm_max: f64Max step multiplier
0.01 ≤ m_max ≤ 20 and m_max > m_minm_safety: f64Step multiplier safety factor
0.1 ≤ m ≤ 1m_first_reject: f64Coefficient to multiply the stepsize if the first step is rejected
m_first_reject ≥ 0.0If m_first_reject = 0, the solver will use h_new on a rejected step.
h_ini: f64Initial stepsize
h_ini ≥ 1e-8n_step_max: usizeMax number of steps
n_step_max ≥ 1rel_error_prev_min: f64Min value of previous relative error
rel_error_prev_min ≥ 1e-8Trait Implementations§
Source§impl Clone for ParamsStep
impl Clone for ParamsStep
Source§fn clone(&self) -> ParamsStep
fn clone(&self) -> ParamsStep
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ParamsStep
Auto Trait Implementations§
impl Freeze for ParamsStep
impl RefUnwindSafe for ParamsStep
impl Send for ParamsStep
impl Sync for ParamsStep
impl Unpin for ParamsStep
impl UnsafeUnpin for ParamsStep
impl UnwindSafe for ParamsStep
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