Gromacs  2025.0-dev-20241011-013a99c
 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:

Description

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.

Author
Erik Lindahl erik..nosp@m.lind.nosp@m.ahl@g.nosp@m.mail.nosp@m..com

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