Struct DPIntegrator

Source
pub struct DPIntegrator<S: State> { /* private fields */ }

Implementations§

Source§

impl<S: State> DPIntegrator<S>

Source

pub fn new( default_step: f64, min_step: f64, max_step: f64, max_err: f64, ) -> Self

Source

pub fn reset_default_step(&mut self)

Source

pub fn reset(&mut self)

Trait Implementations§

Source§

impl<S: State> Integrator<S> for DPIntegrator<S>

Source§

fn propagate_in_place<D>( &mut self, start: &mut S, diff_eq: D, step_size: StepSize, )
where D: Fn(&S) -> S::Derivative,

Source§

fn propagate<D>(&mut self, start: &S, diff_eq: D, step: StepSize) -> S
where D: Fn(&S) -> S::Derivative,

Auto Trait Implementations§

§

impl<S> Freeze for DPIntegrator<S>
where <S as State>::Derivative: Freeze,

§

impl<S> RefUnwindSafe for DPIntegrator<S>

§

impl<S> Send for DPIntegrator<S>
where <S as State>::Derivative: Send,

§

impl<S> Sync for DPIntegrator<S>
where <S as State>::Derivative: Sync,

§

impl<S> Unpin for DPIntegrator<S>
where <S as State>::Derivative: Unpin,

§

impl<S> UnwindSafe for DPIntegrator<S>
where <S as State>::Derivative: UnwindSafe,

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> 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, 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.