Trait Explicit

Source
pub trait Explicit<Y, U>: OdeSolver<Y, U>
where Self: InterpolateSolution<Y, U>, Y: Tensor, for<'a> &'a Y: Mul<Scalar, Output = Y> + Sub<&'a Y, Output = Y>, U: TensorVec<Item = Y>,
{ const SLOPES: usize; // Provided method fn integrate( &self, function: impl FnMut(Scalar, &Y) -> Result<Y, String>, time: &[Scalar], initial_condition: Y, ) -> Result<(Vector, U, U), IntegrationError> { ... } }
Expand description

Base trait for explicit ordinary differential equation solvers.

Required Associated Constants§

Provided Methods§

Source

fn integrate( &self, function: impl FnMut(Scalar, &Y) -> Result<Y, String>, time: &[Scalar], initial_condition: Y, ) -> Result<(Vector, U, U), IntegrationError>

Solves an initial value problem by explicitly integrating a system of ordinary differential equations.

\frac{dy}{dt} = f(t, y),\quad y(t_0) = y_0

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<Y, U> Explicit<Y, U> for BogackiShampine
where Self: InterpolateSolution<Y, U>, Y: Tensor, for<'a> &'a Y: Mul<Scalar, Output = Y> + Sub<&'a Y, Output = Y>, U: TensorVec<Item = Y>,

Source§

const SLOPES: usize = 4usize

Source§

impl<Y, U> Explicit<Y, U> for DormandPrince
where Self: InterpolateSolution<Y, U>, Y: Tensor, for<'a> &'a Y: Mul<Scalar, Output = Y> + Sub<&'a Y, Output = Y>, U: TensorVec<Item = Y>,

Source§

const SLOPES: usize = 7usize

Source§

impl<Y, U> Explicit<Y, U> for Verner8
where Self: InterpolateSolution<Y, U>, Y: Tensor, for<'a> &'a Y: Mul<Scalar, Output = Y> + Sub<&'a Y, Output = Y>, U: TensorVec<Item = Y>,

Source§

const SLOPES: usize = 13usize

Source§

impl<Y, U> Explicit<Y, U> for Verner9
where Self: InterpolateSolution<Y, U>, Y: Tensor, for<'a> &'a Y: Mul<Scalar, Output = Y> + Sub<&'a Y, Output = Y>, U: TensorVec<Item = Y>,

Source§

const SLOPES: usize = 16usize