Trait sampling::wang_landau::WangLandauEnsemble
source · pub trait WangLandauEnsemble<E>: WangLandau {
// Required methods
fn ensemble(&self) -> &E;
unsafe fn ensemble_mut(&mut self) -> &mut E;
}
Expand description
Required Methods§
sourceunsafe fn ensemble_mut(&mut self) -> &mut E
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.