pub struct OdeSolverConfig {
pub rtol: f64,
pub atol: f64,
pub max_steps: usize,
pub min_step: f64,
pub max_step: f64,
pub dense_output: bool,
}Expand description
Configuration for the adaptive ODE solver.
Fields§
§rtol: f64Relative tolerance (default 1e-4).
atol: f64Absolute tolerance (default 1e-6).
max_steps: usizeMaximum number of integration steps (default 1000).
min_step: f64Minimum allowed step size (default 1e-12).
max_step: f64Maximum allowed step size (default f64::INFINITY).
dense_output: boolWhether to store every accepted step (true) or only the endpoint
(false).
Implementations§
Source§impl OdeSolverConfig
impl OdeSolverConfig
Sourcepub fn max_steps(self, n: usize) -> Self
pub fn max_steps(self, n: usize) -> Self
Set the maximum number of integration steps (builder pattern).
Sourcepub fn no_dense_output(self) -> Self
pub fn no_dense_output(self) -> Self
Disable intermediate state storage (builder pattern).
Trait Implementations§
Source§impl Clone for OdeSolverConfig
impl Clone for OdeSolverConfig
Source§fn clone(&self) -> OdeSolverConfig
fn clone(&self) -> OdeSolverConfig
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 OdeSolverConfig
impl Debug for OdeSolverConfig
Auto Trait Implementations§
impl Freeze for OdeSolverConfig
impl RefUnwindSafe for OdeSolverConfig
impl Send for OdeSolverConfig
impl Sync for OdeSolverConfig
impl Unpin for OdeSolverConfig
impl UnsafeUnpin for OdeSolverConfig
impl UnwindSafe for OdeSolverConfig
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