pub struct History<S: Scalar, H: Fn(S) -> Vec<S>> { /* private fields */ }Expand description
History storage for DDE solver.
Stores computed solution steps and provides interpolation for accessing y(t - τ) at arbitrary past times.
Implementations§
Source§impl<S: Scalar, H: Fn(S) -> Vec<S>> History<S, H>
impl<S: Scalar, H: Fn(S) -> Vec<S>> History<S, H>
Sourcepub fn new(initial_history: H, t0: S, dim: usize) -> Self
pub fn new(initial_history: H, t0: S, dim: usize) -> Self
Create a new history with initial function.
Sourcepub fn evaluate_derivative(&self, t: S) -> Vec<S>
pub fn evaluate_derivative(&self, t: S) -> Vec<S>
Get the derivative at time t using interpolation.
Sourcepub fn current_time(&self) -> S
pub fn current_time(&self) -> S
Get the current end time of the computed solution.
Auto Trait Implementations§
impl<S, H> Freeze for History<S, H>
impl<S, H> RefUnwindSafe for History<S, H>where
H: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, H> Send for History<S, H>where
H: Send,
impl<S, H> Sync for History<S, H>where
H: Sync,
impl<S, H> Unpin for History<S, H>
impl<S, H> UnsafeUnpin for History<S, H>where
H: UnsafeUnpin,
S: UnsafeUnpin,
impl<S, H> UnwindSafe for History<S, H>where
H: UnwindSafe,
S: 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