RKInfo

Struct RKInfo 

Source
pub struct RKInfo<N: ComplexField, S: DimName, O: DimName>
where DefaultAllocator: Allocator<N, S> + Allocator<N, O> + Allocator<N, O, O>,
{ /* 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: Clone + ComplexField, S: Clone + DimName, O: Clone + DimName> Clone for RKInfo<N, S, O>
where DefaultAllocator: Allocator<N, S> + Allocator<N, O> + Allocator<N, O, O>, N::RealField: Clone,

Source§

fn clone(&self) -> RKInfo<N, S, O>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<N: Debug + ComplexField, S: Debug + DimName, O: Debug + DimName> Debug for RKInfo<N, S, O>
where DefaultAllocator: Allocator<N, S> + Allocator<N, O> + Allocator<N, O, O>, N::RealField: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<N: ComplexField, S: DimName> From<RK23<N, S>> for RKInfo<N, S, U4>
where DefaultAllocator: Allocator<N, S> + Allocator<N, U4> + Allocator<N, S, U4> + Allocator<N, U6, U4> + Allocator<N::RealField, U4>,

Source§

fn from(rk: RK23<N, S>) -> RKInfo<N, S, U4>

Converts to this type from the input type.
Source§

impl<N: ComplexField, S: DimName> From<RK45<N, S>> for RKInfo<N, S, U6>
where DefaultAllocator: Allocator<N, S> + Allocator<N, U6> + Allocator<N, S, U6> + Allocator<N, U6, U6> + Allocator<N::RealField, U6>,

Source§

fn from(rk: RK45<N, S>) -> RKInfo<N, S, U6>

Converts to this type from the input type.
Source§

impl<N: ComplexField, S: DimName, O: DimName> IVPSolver<N, S> for RKInfo<N, S, O>
where DefaultAllocator: Allocator<N, S> + Allocator<N, O> + Allocator<N, O, O> + Allocator<N, S, O>,

Source§

fn step<T: Clone, F: FnMut(N::RealField, &[N], &mut T) -> Result<VectorN<N, S>, String>>( &mut self, f: F, params: &mut T, ) -> Result<IVPStatus<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>

Set the error tolerance for this solver.
Source§

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>

Set the minimum time step for this solver.
Source§

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>

Set the end time for this solver.
Source§

fn with_initial_conditions(self, start: &[N]) -> Result<Self, String>

Set the initial conditions for this solver.
Source§

fn build(self) -> Self

Build this solver.
Source§

fn get_initial_conditions(&self) -> Option<VectorN<N, S>>

Return the initial conditions. Called once at the very start of solving.
Source§

fn get_time(&self) -> Option<N::RealField>

Get the current time of the solver.
Source§

fn check_start(&self) -> Result<(), String>

Make sure that every value that needs to be set is set before the solver starts
Source§

fn solve_ivp<T: Clone, F: FnMut(N::RealField, &[N], &mut T) -> Result<VectorN<N, S>, String>>( self, f: F, params: &mut T, ) -> Result<Vec<(N::RealField, VectorN<N, S>)>, String>

Solve an initial value problem, consuming the solver

Auto Trait Implementations§

§

impl<N, S, O> !Freeze for RKInfo<N, S, O>

§

impl<N, S, O> !RefUnwindSafe for RKInfo<N, S, O>

§

impl<N, S, O> !Send for RKInfo<N, S, O>

§

impl<N, S, O> !Sync for RKInfo<N, S, O>

§

impl<N, S, O> !Unpin for RKInfo<N, S, O>

§

impl<N, S, O> !UnwindSafe for RKInfo<N, S, O>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V