pub struct RKInfo<N, const S: usize, const O: usize>where
N: ComplexField + FromPrimitive,
<N as ComplexField>::RealField: FromPrimitive,{ /* private fields */ }Expand description
Provides an IVPSolver implementation for RungeKuttaSolver, based entirely on the Butch Tableaux coefficients. It is up to the RungeKuttaSolver to set up RKInfo. See RK45 for an example.
Trait Implementations§
source§impl<N, const S: usize, const O: usize> Clone for RKInfo<N, S, O>where
N: ComplexField + FromPrimitive + Clone,
<N as ComplexField>::RealField: FromPrimitive,
N::RealField: Clone,
impl<N, const S: usize, const O: usize> Clone for RKInfo<N, S, O>where N: ComplexField + FromPrimitive + Clone, <N as ComplexField>::RealField: FromPrimitive, N::RealField: Clone,
source§impl<N, const S: usize, const O: usize> Debug for RKInfo<N, S, O>where
N: ComplexField + FromPrimitive + Debug,
<N as ComplexField>::RealField: FromPrimitive,
N::RealField: Debug,
impl<N, const S: usize, const O: usize> Debug for RKInfo<N, S, O>where N: ComplexField + FromPrimitive + Debug, <N as ComplexField>::RealField: FromPrimitive, N::RealField: Debug,
source§impl<N, const S: usize> From<RK23<N, S>> for RKInfo<N, S, 4>where
N: ComplexField + FromPrimitive + Copy,
<N as ComplexField>::RealField: FromPrimitive + Copy,
impl<N, const S: usize> From<RK23<N, S>> for RKInfo<N, S, 4>where N: ComplexField + FromPrimitive + Copy, <N as ComplexField>::RealField: FromPrimitive + Copy,
source§impl<N, const S: usize> From<RK45<N, S>> for RKInfo<N, S, 6>where
N: ComplexField + FromPrimitive,
<N as ComplexField>::RealField: FromPrimitive,
impl<N, const S: usize> From<RK45<N, S>> for RKInfo<N, S, 6>where N: ComplexField + FromPrimitive, <N as ComplexField>::RealField: FromPrimitive,
source§impl<N, const S: usize, const O: usize> IVPSolver<N, S> for RKInfo<N, S, O>where
N: ComplexField + FromPrimitive + Copy,
<N as ComplexField>::RealField: FromPrimitive + Copy,
impl<N, const S: usize, const O: usize> IVPSolver<N, S> for RKInfo<N, S, O>where N: ComplexField + FromPrimitive + Copy, <N as ComplexField>::RealField: FromPrimitive + Copy,
source§fn step<T, F>(
&mut self,
f: F,
params: &mut T
) -> Result<IVPStatus<N, S>, String>where
T: Clone,
F: FnMut(N::RealField, &[N], &mut T) -> Result<SVector<N, S>, String>,
fn step<T, F>( &mut self, f: F, params: &mut T ) -> Result<IVPStatus<N, S>, String>where T: Clone, F: FnMut(N::RealField, &[N], &mut T) -> Result<SVector<N, S>, String>,
Step forward in the solver. Returns if the solver is finished, produced
an acceptable state, or needs to be redone.
source§fn with_tolerance(self, tol: N::RealField) -> Result<Self, String>
fn with_tolerance(self, tol: N::RealField) -> Result<Self, String>
Set the error tolerance for this solver.
source§fn with_dt_max(self, max: N::RealField) -> Result<Self, String>
fn with_dt_max(self, max: N::RealField) -> Result<Self, String>
Set the maximum time step for this solver.
source§fn with_dt_min(self, min: N::RealField) -> Result<Self, String>
fn with_dt_min(self, min: N::RealField) -> Result<Self, String>
Set the minimum time step for this solver.
source§fn with_start(self, t_initial: N::RealField) -> Result<Self, String>
fn with_start(self, t_initial: N::RealField) -> Result<Self, String>
Set the initial time for this solver.
source§fn with_end(self, t_final: N::RealField) -> Result<Self, String>
fn with_end(self, t_final: N::RealField) -> Result<Self, String>
Set the end time for this solver.
source§fn with_initial_conditions(self, start: &[N]) -> Result<Self, String>
fn with_initial_conditions(self, start: &[N]) -> Result<Self, String>
Set the initial conditions for this solver.
source§fn get_initial_conditions(&self) -> Option<SVector<N, S>>
fn get_initial_conditions(&self) -> Option<SVector<N, S>>
Return the initial conditions. Called once at the very start
of solving.
Auto Trait Implementations§
impl<N, const S: usize, const O: usize> RefUnwindSafe for RKInfo<N, S, O>where N: RefUnwindSafe, <N as ComplexField>::RealField: RefUnwindSafe,
impl<N, const S: usize, const O: usize> Send for RKInfo<N, S, O>
impl<N, const S: usize, const O: usize> Sync for RKInfo<N, S, O>
impl<N, const S: usize, const O: usize> Unpin for RKInfo<N, S, O>where N: Unpin, <N as ComplexField>::RealField: Unpin,
impl<N, const S: usize, const O: usize> UnwindSafe for RKInfo<N, S, O>where N: UnwindSafe, <N as ComplexField>::RealField: 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
§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.