Finished dopri5, interpolation, and callbacks

This commit is contained in:
Connor Johnstone
2023-03-14 16:55:06 -06:00
parent 75b88f7152
commit 43ec9eb0ac
9 changed files with 228 additions and 73 deletions

View File

@@ -1,13 +1,5 @@
use nalgebra::SVector;
/// A System trait.
///
/// The user will have to define their own system. They are free to add params to their system
/// definition and use those in the derivative function
pub trait SystemTrait<T, const D: usize> {
fn derivative(&self, t: T, y: SVector<T,D>) -> SVector<T,D>;
}
/// The basic ODE object that will be passed around. The type (T) and the size (D) will be
/// determined upon creation of the object
#[derive(Clone, Copy)]