pub struct SymplecticResult<F: IntegrateFloat> {
pub t: Vec<F>,
pub q: Vec<Array1<F>>,
pub p: Vec<Array1<F>>,
pub total_time: F,
pub steps: usize,
pub n_evaluations: usize,
pub energy_relative_error: Option<F>,
}Expand description
Result of symplectic integration containing state history
Fields§
§t: Vec<F>Time points
q: Vec<Array1<F>>Position coordinates at each time point
p: Vec<Array1<F>>Momentum coordinates at each time point
total_time: FTotal integration time
steps: usizeNumber of steps taken
n_evaluations: usizeFunction evaluations
energy_relative_error: Option<F>Relative error in energy conservation (if available)
Trait Implementations§
Source§impl<F: Clone + IntegrateFloat> Clone for SymplecticResult<F>
impl<F: Clone + IntegrateFloat> Clone for SymplecticResult<F>
Source§fn clone(&self) -> SymplecticResult<F>
fn clone(&self) -> SymplecticResult<F>
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 moreAuto Trait Implementations§
impl<F> Freeze for SymplecticResult<F>where
F: Freeze,
impl<F> RefUnwindSafe for SymplecticResult<F>where
F: RefUnwindSafe,
impl<F> Send for SymplecticResult<F>where
F: Send,
impl<F> Sync for SymplecticResult<F>where
F: Sync,
impl<F> Unpin for SymplecticResult<F>where
F: Unpin,
impl<F> UnwindSafe for SymplecticResult<F>where
F: UnwindSafe + RefUnwindSafe,
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