#[non_exhaustive]pub struct RhsEvolutionOptions {
pub times: Vec<f64>,
pub max_step: f64,
pub max_substeps: usize,
pub normalize: bool,
}Expand description
Time grid and explicit-step controls for a caller-defined right-hand side.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.times: Vec<f64>Finite nondecreasing output times.
max_step: f64Maximum Runge–Kutta step.
max_substeps: usizeMaximum integration substeps.
normalize: boolNormalize each returned state.
Implementations§
Source§impl RhsEvolutionOptions
impl RhsEvolutionOptions
Sourcepub fn new(times: impl Into<Vec<f64>>, max_step: f64) -> Self
pub fn new(times: impl Into<Vec<f64>>, max_step: f64) -> Self
Construct callable-RHS integration controls.
Sourcepub fn with_max_substeps(self, max_substeps: usize) -> Self
pub fn with_max_substeps(self, max_substeps: usize) -> Self
Set the maximum number of integration substeps.
Sourcepub fn with_normalization(self, normalize: bool) -> Self
pub fn with_normalization(self, normalize: bool) -> Self
Normalize each accepted output state.
Trait Implementations§
Source§impl Clone for RhsEvolutionOptions
impl Clone for RhsEvolutionOptions
Source§fn clone(&self) -> RhsEvolutionOptions
fn clone(&self) -> RhsEvolutionOptions
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 moreSource§impl Debug for RhsEvolutionOptions
impl Debug for RhsEvolutionOptions
Source§impl PartialEq for RhsEvolutionOptions
impl PartialEq for RhsEvolutionOptions
Source§fn eq(&self, other: &RhsEvolutionOptions) -> bool
fn eq(&self, other: &RhsEvolutionOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RhsEvolutionOptions
Auto Trait Implementations§
impl Freeze for RhsEvolutionOptions
impl RefUnwindSafe for RhsEvolutionOptions
impl Send for RhsEvolutionOptions
impl Sync for RhsEvolutionOptions
impl Unpin for RhsEvolutionOptions
impl UnsafeUnpin for RhsEvolutionOptions
impl UnwindSafe for RhsEvolutionOptions
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,
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.