pub trait ODESolver {
// Required method
fn solve<P: ODEProblem>(
&self,
problem: &P,
t_span: (f64, f64),
dt: f64,
initial_conditions: &[f64],
) -> Result<(Vec<f64>, Vec<Vec<f64>>)>;
}
Expand description
Trait for ODE solvers.
Implement this trait to define your own ODE solver.
Required Methods§
fn solve<P: ODEProblem>( &self, problem: &P, t_span: (f64, f64), dt: f64, initial_conditions: &[f64], ) -> Result<(Vec<f64>, Vec<Vec<f64>>)>
Object Safety§
This trait is not object safe.