pub struct EnsembleRunner;Expand description
Ensemble runner for parallel Monte Carlo simulations.
Implementations§
Source§impl EnsembleRunner
impl EnsembleRunner
Sourcepub fn run<S, Sys, Solver>(
system: &Sys,
t0: S,
tf: S,
x0: &[S],
options: &SdeOptions<S>,
n_trajectories: usize,
) -> EnsembleResult<S>
pub fn run<S, Sys, Solver>( system: &Sys, t0: S, tf: S, x0: &[S], options: &SdeOptions<S>, n_trajectories: usize, ) -> EnsembleResult<S>
Run an ensemble of SDE simulations in parallel.
§Arguments
system- The SDE system to simulatet0- Initial timetf- Final timex0- Initial stateoptions- Solver options (seed is used as base seed)n_trajectories- Number of Monte Carlo paths
§Returns
An EnsembleResult containing all trajectory results.
Sourcepub fn run_with_seeds<S, Sys, Solver>(
system: &Sys,
t0: S,
tf: S,
x0: &[S],
options: &SdeOptions<S>,
seeds: &[u64],
) -> EnsembleResult<S>
pub fn run_with_seeds<S, Sys, Solver>( system: &Sys, t0: S, tf: S, x0: &[S], options: &SdeOptions<S>, seeds: &[u64], ) -> EnsembleResult<S>
Run ensemble with custom seeds.
Useful for resuming simulations or specific reproducibility needs.
Sourcepub fn run_sequential<S, Sys, Solver>(
system: &Sys,
t0: S,
tf: S,
x0: &[S],
options: &SdeOptions<S>,
n_trajectories: usize,
) -> EnsembleResult<S>
pub fn run_sequential<S, Sys, Solver>( system: &Sys, t0: S, tf: S, x0: &[S], options: &SdeOptions<S>, n_trajectories: usize, ) -> EnsembleResult<S>
Run ensemble sequentially (for debugging or when parallelism isn’t needed).
Auto Trait Implementations§
impl Freeze for EnsembleRunner
impl RefUnwindSafe for EnsembleRunner
impl Send for EnsembleRunner
impl Sync for EnsembleRunner
impl Unpin for EnsembleRunner
impl UnsafeUnpin for EnsembleRunner
impl UnwindSafe for EnsembleRunner
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> 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