[][src]Trait peroxide::numerical::ode::ODE

pub trait ODE<E: Environment> {
    type Records;
    type Param;
    type ODEMethod;
    pub fn mut_update(&mut self);
pub fn integrate(&mut self) -> Self::Records;
pub fn set_initial_condition<T: Real>(
        &mut self,
        init: State<T>
    ) -> &mut Self;
pub fn set_boundary_condition<T: Real>(
        &mut self,
        bound1: (State<T>, BoundaryCondition),
        bound2: (State<T>, BoundaryCondition)
    ) -> &mut Self;
pub fn set_step_size(&mut self, dt: f64) -> &mut Self;
pub fn set_method(&mut self, method: Self::ODEMethod) -> &mut Self;
pub fn set_stop_condition(&mut self, f: fn(_: &Self) -> bool) -> &mut Self;
pub fn set_times(&mut self, n: usize) -> &mut Self;
pub fn check_enough(&self) -> bool;
pub fn set_env(&mut self, env: E) -> &mut Self; }

ODE solver

  • Records : Type of container to contain results
  • Param : Type of parameter
  • ODEMethod : Explicit or Implicit

Associated Types

Loading content...

Required methods

pub fn mut_update(&mut self)[src]

pub fn integrate(&mut self) -> Self::Records[src]

pub fn set_initial_condition<T: Real>(&mut self, init: State<T>) -> &mut Self[src]

pub fn set_boundary_condition<T: Real>(
    &mut self,
    bound1: (State<T>, BoundaryCondition),
    bound2: (State<T>, BoundaryCondition)
) -> &mut Self
[src]

pub fn set_step_size(&mut self, dt: f64) -> &mut Self[src]

pub fn set_method(&mut self, method: Self::ODEMethod) -> &mut Self[src]

pub fn set_stop_condition(&mut self, f: fn(_: &Self) -> bool) -> &mut Self[src]

pub fn set_times(&mut self, n: usize) -> &mut Self[src]

pub fn check_enough(&self) -> bool[src]

pub fn set_env(&mut self, env: E) -> &mut Self[src]

Loading content...

Implementors

impl<E: Environment> ODE<E> for ExplicitODE<E>[src]

type Records = Matrix

type Param = f64

type ODEMethod = ExMethod

impl<E: Environment> ODE<E> for ImplicitODE<E>[src]

type Records = Matrix

type Param = Dual

type ODEMethod = ImMethod

Loading content...