Gromacs
2024.4
|
#include <cmath>
#include <algorithm>
#include <limits>
#include <memory>
#include <type_traits>
#include "gromacs/math/functions.h"
#include "gromacs/utility/basedefinitions.h"
#include "gromacs/utility/classhelpers.h"
#include "gromacs/utility/gmxassert.h"
#include "gromacs/utility/real.h"
The uniform real distribution.
Portable version of the uniform real that generates the same sequence on all platforms. Since stdlibc++ and libc++ provide different sequences we prefer this one so unit tests produce the same values on all platforms.
Classes | |
class | gmx::UniformRealDistribution< RealType > |
Uniform real distribution. More... | |
class | gmx::UniformRealDistribution< RealType >::param_type |
Uniform real distribution parameters. More... | |
Functions | |
template<class RealType = real, unsigned int Bits, class Rng > | |
RealType | gmx::generateCanonical (Rng &g) |
Generate a floating-point value with specified number of random bits. More... | |