[][src]Struct peroxide::numerical::ode::State

pub struct State<T: Real> {
    pub param: T,
    pub value: Vec<T>,
    pub deriv: Vec<T>,
}

State for ODE

  • param : Parameter of ODE (ex) time)
  • value : Current value of ODE
  • deriv : Current differential of values

Fields

param: Tvalue: Vec<T>deriv: Vec<T>

Methods

impl<T: Real> State<T>[src]

pub fn to_f64(&self) -> State<f64>[src]

pub fn to_dual(&self) -> State<Dual>[src]

pub fn new(param: T, state: Vec<T>, deriv: Vec<T>) -> Self[src]

Trait Implementations

impl<T: Clone + Real> Clone for State<T>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<T: Default + Real> Default for State<T>[src]

impl<T: Debug + Real> Debug for State<T>[src]

Auto Trait Implementations

impl<T> Sync for State<T> where
    T: Sync

impl<T> Send for State<T> where
    T: Send

impl<T> Unpin for State<T> where
    T: Unpin

impl<T> RefUnwindSafe for State<T> where
    T: RefUnwindSafe

impl<T> UnwindSafe for State<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> FromPy<T> for T[src]

impl<T, U> IntoPy<U> for T where
    U: FromPy<T>, 
[src]