pub struct SimpleConstantDDE<F: IntegrateFloat> { /* private fields */ }Expand description
A simple DDE system with a single constant delay.
y’(t) = f(t, y(t), y(t - tau))
Implementations§
Source§impl<F: IntegrateFloat> SimpleConstantDDE<F>
impl<F: IntegrateFloat> SimpleConstantDDE<F>
Sourcepub fn new<R, H>(ndim: usize, delay: F, rhs_fn: R, history_fn: H) -> Selfwhere
R: Fn(F, ArrayView1<'_, F>, ArrayView1<'_, F>) -> Array1<F> + Send + Sync + 'static,
H: Fn(F) -> Array1<F> + Send + Sync + 'static,
pub fn new<R, H>(ndim: usize, delay: F, rhs_fn: R, history_fn: H) -> Selfwhere
R: Fn(F, ArrayView1<'_, F>, ArrayView1<'_, F>) -> Array1<F> + Send + Sync + 'static,
H: Fn(F) -> Array1<F> + Send + Sync + 'static,
Create a simple DDE with a single constant delay.
ndim- system dimensiondelay- the constant delay tau > 0rhs_fn- f(t, y, y_delayed)history_fn- phi(t) for t <= t0
Trait Implementations§
Source§impl<F: IntegrateFloat> DDESystem<F> for SimpleConstantDDE<F>
impl<F: IntegrateFloat> DDESystem<F> for SimpleConstantDDE<F>
Source§fn rhs(
&self,
t: F,
y: ArrayView1<'_, F>,
y_delayed: &[Array1<F>],
) -> IntegrateResult<Array1<F>>
fn rhs( &self, t: F, y: ArrayView1<'_, F>, y_delayed: &[Array1<F>], ) -> IntegrateResult<Array1<F>>
Evaluate the right-hand side. Read more
Source§fn state_dependent_delays(&self, _t: F, _y: ArrayView1<'_, F>) -> Vec<F>
fn state_dependent_delays(&self, _t: F, _y: ArrayView1<'_, F>) -> Vec<F>
State-dependent delays: given (t, y), return the delay values.
Default: calls
self.delays() ignoring state.Auto Trait Implementations§
impl<F> Freeze for SimpleConstantDDE<F>where
F: Freeze,
impl<F> !RefUnwindSafe for SimpleConstantDDE<F>
impl<F> Send for SimpleConstantDDE<F>where
F: Send,
impl<F> Sync for SimpleConstantDDE<F>where
F: Sync,
impl<F> Unpin for SimpleConstantDDE<F>where
F: Unpin,
impl<F> UnsafeUnpin for SimpleConstantDDE<F>where
F: UnsafeUnpin,
impl<F> !UnwindSafe for SimpleConstantDDE<F>
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> 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