Gromacs  2023.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Functions
uniformrealdistribution.h File Reference
#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"
+ Include dependency graph for uniformrealdistribution.h:
+ This graph shows which files directly or indirectly include this file:


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.

Erik Lindahl


class  gmx::UniformRealDistribution< RealType >
 Uniform real distribution. More...
class  gmx::UniformRealDistribution< RealType >::param_type
 Uniform real distribution parameters. More...


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...