pub trait Solver<S: Scalar> {
// Required method
fn solve<Sys: OdeSystem<S>>(
problem: &Sys,
t0: S,
tf: S,
y0: &[S],
options: &SolverOptions<S>,
) -> Result<SolverResult<S>, SolverError>;
}Expand description
Trait for ODE solvers.
Required Methods§
Sourcefn solve<Sys: OdeSystem<S>>(
problem: &Sys,
t0: S,
tf: S,
y0: &[S],
options: &SolverOptions<S>,
) -> Result<SolverResult<S>, SolverError>
fn solve<Sys: OdeSystem<S>>( problem: &Sys, t0: S, tf: S, y0: &[S], options: &SolverOptions<S>, ) -> Result<SolverResult<S>, SolverError>
Solve the ODE problem.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.