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

The standard normal distribution. More...

#include <StandardNormal.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::StandardNormal< T >

The standard normal distribution.

This is the normal distribution with mean \( 0 \) and variance \( 1 \).

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

Definition at line 29 of file StandardNormal.hpp.

Member Function Documentation

◆ operator()()

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

Generates a random value sampled from the distribution.

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

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