3
0
mirror of https://github.com/triqs/dft_tools synced 2024-11-01 03:33:50 +01:00
dft_tools/triqs/mc_tools
Olivier Parcollet c996c3ff7d mc_tools : improve treatment of infinite mc ratios
- 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).
2014-03-27 20:33:35 +01:00
..
v1 First commit : triqs libs version 1.0 alpha1 2013-07-17 19:24:07 +02:00
full_update_mechanism.hpp First commit : triqs libs version 1.0 alpha1 2013-07-17 19:24:07 +02:00
generator.hpp First commit : triqs libs version 1.0 alpha1 2013-07-17 19:24:07 +02:00
histograms.hpp First commit : triqs libs version 1.0 alpha1 2013-07-17 19:24:07 +02:00
impl_tools.hpp First commit : triqs libs version 1.0 alpha1 2013-07-17 19:24:07 +02:00
mc_basic_step.hpp mc_tools : add debug print under macro 2013-12-23 23:21:30 +01:00
mc_generic.hpp mc_tools: simplify measure_aux 2014-01-30 20:28:30 +01:00
mc_measure_aux_set.hpp mc_tools: simplify measure_aux 2014-01-30 20:28:30 +01:00
mc_measure_set.hpp shared_ptr<void> can not be constructed directly in c++14 2014-01-07 14:33:57 +01:00
mc_move_set.hpp mc_tools : improve treatment of infinite mc ratios 2014-03-27 20:33:35 +01:00
MersenneRNG.cpp First commit : triqs libs version 1.0 alpha1 2013-07-17 19:24:07 +02:00
MersenneRNG.hpp Fix #20 2013-10-18 13:55:04 +02:00
random_generator.cpp First commit : triqs libs version 1.0 alpha1 2013-07-17 19:24:07 +02:00
random_generator.hpp Fix for clang 1y with gcc lib 2014-01-20 10:50:52 +01:00