Skip to content

num::energy_difference

Defined in header <stochastic/concepts.hpp>

template <class F, class T = real>
concept energy_difference = field<T> && requires(F &&delta_e, idx site) {
  { delta_e(site) } -> std::convertible_to<T>;
};

Function that returns the energy change \(\Delta E\) of a proposed move.