OpenMPCD
Public Member Functions | List of all members
OpenMPCD::CUDA::Random::Distributions::Uniform0e1e< T > Class Template Reference

The uniform distribution in the open interval \( (0, 1) \). More...

#include <Uniform0e1e.hpp>

Public Member Functions

template<typename RNG >
OPENMPCD_CUDA_DEVICEoperator() (RNG &rng) const
 Generates a random value sampled from the distribution. More...
 

Detailed Description

template<typename T>
class OpenMPCD::CUDA::Random::Distributions::Uniform0e1e< T >

The uniform distribution in the open interval \( (0, 1) \).

Neither \( 0 \) nor \( 1 \) lie within the range of possible values.

Template Parameters
TThe underlying data type, which must be float or double.

Definition at line 30 of file Uniform0e1e.hpp.

Member Function Documentation

◆ operator()()

template<typename T >
template<typename RNG >
OPENMPCD_CUDA_DEVICE T OpenMPCD::CUDA::Random::Distributions::Uniform0e1e< T >::operator() ( RNG rng) const
inline

Generates a random value sampled from the distribution.

Template Parameters
RNGThe random number generator type.
Parameters
[in]rngThe random number generator instance.

Definition at line 42 of file Uniform0e1e.hpp.


The documentation for this class was generated from the following file: