pub struct CompositionMethod<F: IntegrateFloat, S: SymplecticIntegrator<F>> { /* private fields */ }Expand description
A symplectic integrator constructed by composition of a base method
Implementations§
Source§impl<F: IntegrateFloat, S: SymplecticIntegrator<F>> CompositionMethod<F, S>
impl<F: IntegrateFloat, S: SymplecticIntegrator<F>> CompositionMethod<F, S>
Sourcepub fn fourth_order(_basemethod: S) -> Self
pub fn fourth_order(_basemethod: S) -> Self
Sourcepub fn sixth_order(_basemethod: S) -> Self
pub fn sixth_order(_basemethod: S) -> Self
Sourcepub fn eighth_order(_basemethod: S) -> Self
pub fn eighth_order(_basemethod: S) -> Self
Trait Implementations§
Source§impl<F: Clone + IntegrateFloat, S: Clone + SymplecticIntegrator<F>> Clone for CompositionMethod<F, S>
impl<F: Clone + IntegrateFloat, S: Clone + SymplecticIntegrator<F>> Clone for CompositionMethod<F, S>
Source§fn clone(&self) -> CompositionMethod<F, S>
fn clone(&self) -> CompositionMethod<F, S>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<F: Debug + IntegrateFloat, S: Debug + SymplecticIntegrator<F>> Debug for CompositionMethod<F, S>
impl<F: Debug + IntegrateFloat, S: Debug + SymplecticIntegrator<F>> Debug for CompositionMethod<F, S>
Source§impl<F: IntegrateFloat, S: SymplecticIntegrator<F>> SymplecticIntegrator<F> for CompositionMethod<F, S>
impl<F: IntegrateFloat, S: SymplecticIntegrator<F>> SymplecticIntegrator<F> for CompositionMethod<F, S>
Source§fn step(
&self,
system: &dyn HamiltonianFn<F>,
t: F,
q: &Array1<F>,
p: &Array1<F>,
dt: F,
) -> IntegrateResult<(Array1<F>, Array1<F>)>
fn step( &self, system: &dyn HamiltonianFn<F>, t: F, q: &Array1<F>, p: &Array1<F>, dt: F, ) -> IntegrateResult<(Array1<F>, Array1<F>)>
Perform a single integration step Read more
Source§fn integrate(
&self,
system: &dyn HamiltonianFn<F>,
t0: F,
tf: F,
dt: F,
q0: Array1<F>,
p0: Array1<F>,
) -> IntegrateResult<SymplecticResult<F>>
fn integrate( &self, system: &dyn HamiltonianFn<F>, t0: F, tf: F, dt: F, q0: Array1<F>, p0: Array1<F>, ) -> IntegrateResult<SymplecticResult<F>>
Integrate the system over a time interval Read more
Auto Trait Implementations§
impl<F, S> Freeze for CompositionMethod<F, S>where
S: Freeze,
impl<F, S> RefUnwindSafe for CompositionMethod<F, S>where
S: RefUnwindSafe,
F: RefUnwindSafe,
impl<F, S> Send for CompositionMethod<F, S>
impl<F, S> Sync for CompositionMethod<F, S>
impl<F, S> Unpin for CompositionMethod<F, S>
impl<F, S> UnwindSafe for CompositionMethod<F, S>where
S: UnwindSafe,
F: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more