Struct eom::explicit::Euler

source ·
pub struct Euler<F: Explicit> { /* private fields */ }

Trait Implementations§

source§

impl<F: Clone + Explicit> Clone for Euler<F>where F::Scalar: Clone, F::Dim: Clone,

source§

fn clone(&self) -> Euler<F>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<F: Debug + Explicit> Debug for Euler<F>where F::Scalar: Debug, F::Dim: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<F: Explicit> ModelSpec for Euler<F>

§

type Scalar = <F as ModelSpec>::Scalar

§

type Dim = <F as ModelSpec>::Dim

source§

fn model_size(&self) -> <Self::Dim as Dimension>::Pattern

Number of scalars to describe the system state.
source§

impl<F: Explicit> Scheme for Euler<F>

§

type Core = F

source§

fn new(f: F, dt: Self::Time) -> Self

Initialize with a core implementation
source§

fn core(&self) -> &Self::Core

Get immutable core
source§

fn core_mut(&mut self) -> &mut Self::Core

Get mutable core
source§

impl<F: Explicit> TimeEvolution for Euler<F>

source§

fn iterate<'a, S>( &mut self, x: &'a mut ArrayBase<S, F::Dim> ) -> &'a mut ArrayBase<S, Self::Dim>where S: DataMut<Elem = Self::Scalar>,

calculate next step
source§

fn iterate_n<'a, S>( &mut self, a: &'a mut ArrayBase<S, Self::Dim>, n: usize ) -> &'a mut ArrayBase<S, Self::Dim>where S: DataMut<Elem = Self::Scalar>,

calculate n-step
source§

impl<A: Scalar, F: Explicit<Scalar = A>> TimeStep for Euler<F>

§

type Time = <A as Scalar>::Real

source§

fn get_dt(&self) -> Self::Time

source§

fn set_dt(&mut self, dt: Self::Time)

Auto Trait Implementations§

§

impl<F> RefUnwindSafe for Euler<F>where F: RefUnwindSafe, <F as ModelSpec>::Dim: RefUnwindSafe, <<F as ModelSpec>::Scalar as Scalar>::Real: RefUnwindSafe, <F as ModelSpec>::Scalar: RefUnwindSafe,

§

impl<F> Send for Euler<F>where F: Send, <<F as ModelSpec>::Scalar as Scalar>::Real: Send, <F as ModelSpec>::Scalar: Send,

§

impl<F> Sync for Euler<F>where F: Sync, <<F as ModelSpec>::Scalar as Scalar>::Real: Sync, <F as ModelSpec>::Scalar: Sync,

§

impl<F> Unpin for Euler<F>where F: Unpin, <F as ModelSpec>::Dim: Unpin, <<F as ModelSpec>::Scalar as Scalar>::Real: Unpin,

§

impl<F> UnwindSafe for Euler<F>where F: UnwindSafe, <F as ModelSpec>::Dim: UnwindSafe, <<F as ModelSpec>::Scalar as Scalar>::Real: UnwindSafe, <F as ModelSpec>::Scalar: RefUnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<A, D, TEO> LinearApprox<A, D, TEO> for TEOwhere A: Scalar + Lapack, D: Dimension, TEO: TimeEvolution<Scalar = A, Dim = D>,

source§

fn lin_approx<'jac>( &'jac mut self, x: ArrayBase<OwnedRepr<A>, D>, alpha: <A as Scalar>::Real ) -> Jacobian<'jac, A, D, TEO>where TEO: 'jac,

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

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

§

fn vzip(self) -> V