Skip to main content

Solver

Trait Solver 

Source
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§

Source

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.

Implementors§

Source§

impl<S: Scalar + SimpleEntity + Conjugate<Canonical = S> + ComplexField> Solver<S> for Bdf

Source§

impl<S: Scalar + SimpleEntity + Conjugate<Canonical = S> + ComplexField> Solver<S> for Esdirk32

Source§

impl<S: Scalar + SimpleEntity + Conjugate<Canonical = S> + ComplexField> Solver<S> for Esdirk43

Source§

impl<S: Scalar + SimpleEntity + Conjugate<Canonical = S> + ComplexField> Solver<S> for Esdirk54

Source§

impl<S: Scalar + SimpleEntity + Conjugate<Canonical = S> + ComplexField> Solver<S> for Radau5

Source§

impl<S: Scalar> Solver<S> for DoPri5

Source§

impl<S: Scalar> Solver<S> for Tsit5

Source§

impl<S: Scalar> Solver<S> for Vern6

Source§

impl<S: Scalar> Solver<S> for Vern7

Source§

impl<S: Scalar> Solver<S> for Vern8