mirror of
https://github.com/triqs/dft_tools
synced 2024-11-01 03:33:50 +01:00
c996c3ff7d
- when the ratio returned by an attempt of a move is infinite, previous code was just throwing TRIQS_RUNTIME_ERROR. - Now when the ratio is infinite, it is replaced by a large number (>1 is enough for metropolis), and the sign is properly updated using std::signbit. - NB : - a double/float in C++ can be : normal/ zero/ nan/ infinite / subnormal. Here, the code will recover only from infinite case. - std::signbit works for infinite (according to standard). |
||
---|---|---|
.. | ||
v1 | ||
full_update_mechanism.hpp | ||
generator.hpp | ||
histograms.hpp | ||
impl_tools.hpp | ||
mc_basic_step.hpp | ||
mc_generic.hpp | ||
mc_measure_aux_set.hpp | ||
mc_measure_set.hpp | ||
mc_move_set.hpp | ||
MersenneRNG.cpp | ||
MersenneRNG.hpp | ||
random_generator.cpp | ||
random_generator.hpp |