Hydra  4.0.1
A header-only templated C++ framework to perform data analysis on massively parallel platforms.
hydra::RngBase Struct Reference
Collaboration diagram for hydra::RngBase:

Public Types

typedef hydra::thrust::normal_distribution< doublenormal_rng_type
 
typedef hydra::thrust::uniform_real_distribution< doubleuniform_rng_type
 

Static Public Member Functions

template<typename Engine >
__hydra_host__ static __hydra_device__ double normal (Engine &rng)
 Returns a pseudo-random numbers normally distributed. More...
 
template<typename Engine >
__hydra_host__ static __hydra_device__ double uniform (Engine &rng)
 Returns pseudo-random numbers uniformly distributed in the [0,1) range. More...
 

Detailed Description

Member Typedef Documentation

◆ normal_rng_type

typedef hydra::thrust::normal_distribution<double> hydra::RngBase::normal_rng_type

◆ uniform_rng_type

typedef hydra::thrust::uniform_real_distribution<double> hydra::RngBase::uniform_rng_type

Member Function Documentation

◆ normal()

template<typename Engine >
__hydra_host__ static __hydra_device__ double hydra::RngBase::normal ( Engine &  rng)
inlinestatic

Returns a pseudo-random numbers normally distributed.

◆ uniform()

template<typename Engine >
__hydra_host__ static __hydra_device__ double hydra::RngBase::uniform ( Engine &  rng)
inlinestatic

Returns pseudo-random numbers uniformly distributed in the [0,1) range.


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