pub struct Accelerator { /* private fields */ }
Expand description
Index Look-up Acceration
This object caches the previous value of an index lookup. When the subsequent interpolation point falls in the same interval, its index value can be returned immediately.
The performance boost can be significant when continuously evalulating splines around the same area as the previous point. Moreover, the same Accelerator can be shared across multiple Splines, if they are defined over the same x points. This is especially useful in ODE solvers, as the solver’s step size is usually much smaller that the xarray spacing.
See GSL's Acceleration section
.
§Example
let mut acc = Accelerator::new();
Implementations§
Trait Implementations§
Source§impl Debug for Accelerator
impl Debug for Accelerator
Auto Trait Implementations§
impl Freeze for Accelerator
impl RefUnwindSafe for Accelerator
impl Send for Accelerator
impl Sync for Accelerator
impl Unpin for Accelerator
impl UnwindSafe for Accelerator
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