pub struct DoPri5Interpolant;Expand description
DoPri5 dense output interpolation.
The free interpolant is a 4th-order polynomial constructed from
the stage values. The coefficients are stored as:
[d0, d1, d2, d3, d4] for each dimension, where the polynomial is:
y(t0 + theta*h) = y0 + h * theta * (d0 + theta*(d1 + theta*(d2 + theta*(d3 + theta*d4))))Implementations§
Source§impl DoPri5Interpolant
impl DoPri5Interpolant
Sourcepub fn build_coefficients<S: Scalar>(
y0: &[S],
y1: &[S],
k: &[S],
h: S,
dim: usize,
) -> Vec<S>
pub fn build_coefficients<S: Scalar>( y0: &[S], y1: &[S], k: &[S], h: S, dim: usize, ) -> Vec<S>
Build the dense output coefficients from DoPri5 stage values.
§Arguments
y0- State at start of stepy1- State at end of stepk- Stage derivatives (k1, k2, …, k7) as a flat arrayh- Step sizedim- Dimension of the system
Returns the coefficients for the dense segment.
Trait Implementations§
Source§impl Clone for DoPri5Interpolant
impl Clone for DoPri5Interpolant
Source§fn clone(&self) -> DoPri5Interpolant
fn clone(&self) -> DoPri5Interpolant
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 DoPri5Interpolant
impl Debug for DoPri5Interpolant
Source§impl Default for DoPri5Interpolant
impl Default for DoPri5Interpolant
Source§fn default() -> DoPri5Interpolant
fn default() -> DoPri5Interpolant
Returns the “default value” for a type. Read more
Source§impl<S: Scalar> DenseInterpolant<S> for DoPri5Interpolant
impl<S: Scalar> DenseInterpolant<S> for DoPri5Interpolant
Source§fn interpolate(&self, segment: &DenseSegment<S>, t: S, y_out: &mut [S])
fn interpolate(&self, segment: &DenseSegment<S>, t: S, y_out: &mut [S])
Evaluate the solution at time t using the dense segment.
Source§fn interpolate_derivative(
&self,
segment: &DenseSegment<S>,
t: S,
dydt_out: &mut [S],
)
fn interpolate_derivative( &self, segment: &DenseSegment<S>, t: S, dydt_out: &mut [S], )
Evaluate the derivative at time t using the dense segment.
Auto Trait Implementations§
impl Freeze for DoPri5Interpolant
impl RefUnwindSafe for DoPri5Interpolant
impl Send for DoPri5Interpolant
impl Sync for DoPri5Interpolant
impl Unpin for DoPri5Interpolant
impl UnsafeUnpin for DoPri5Interpolant
impl UnwindSafe for DoPri5Interpolant
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