pub trait WangLandauEnsemble<E>: WangLandau {
    // Required methods
    fn ensemble(&self) -> &E;
    unsafe fn ensemble_mut(&mut self) -> &mut E;
}
Expand description

Required Methods§

source

fn ensemble(&self) -> &E

return reference to current state of ensemble

source

unsafe fn ensemble_mut(&mut self) -> &mut E

mutable reference to current state
  • Intended for usecases where mutable access allows for a much more efficient calculation of your calculations
Safety

*you should not make any changes, that effect the ‘energy’ state of the system. otherwise the WangLandau simulations will give false results!

  • Note that I only use the unsafe keyword to force the user to acknowledge the above

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<Hist, R, E, S, Res, Energy> WangLandauEnsemble<E> for WangLandau1T<Hist, R, E, S, Res, Energy>

source§

impl<R, E, S, Res, Hist, T> WangLandauEnsemble<E> for WangLandauAdaptive<Hist, R, E, S, Res, T>