Trait peroxide::numerical::ode::ODEIntegrator

source ·
pub trait ODEIntegrator {
    // Required method
    fn step<P: ODEProblem>(
        &self,
        problem: &P,
        t: f64,
        y: &mut [f64],
        dt: f64,
    ) -> Result<f64>;
}
Expand description

Trait for ODE integrators.

Implement this trait to define your own ODE integrator.

Required Methods§

source

fn step<P: ODEProblem>( &self, problem: &P, t: f64, y: &mut [f64], dt: f64, ) -> Result<f64>

Object Safety§

This trait is not object safe.

Implementors§