mirror of
https://github.com/triqs/dft_tools
synced 2024-12-25 13:53:40 +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). |
||
---|---|---|
.. | ||
arrays | ||
clef | ||
det_manip | ||
gfs | ||
h5 | ||
lattice | ||
mc_tools | ||
parameters | ||
python_tools | ||
statistics | ||
utility | ||
arrays.hpp | ||
clef.hpp | ||
CMakeLists.txt | ||
det_manip.hpp | ||
gfs.hpp | ||
h5.hpp | ||
mc_tools.hpp | ||
parameters.hpp | ||
statistics.hpp | ||
version.hpp.in |