Hydra  4.0.1
A header-only templated C++ framework to perform data analysis on massively parallel platforms.
hydra::detail::RndGauss< T, GRND > Struct Template Reference

#include <RandomUtils.h>

Collaboration diagram for hydra::detail::RndGauss< T, GRND >:

Public Member Functions

 RndGauss (size_t seed, T mean, T sigma)
 
__hydra_host__ __hydra_device__ RndGauss (RndGauss< T, GRND > const &other)
 
__hydra_host__ __hydra_device__operator() (size_t index)
 

Data Fields

fMean
 
size_t fSeed
 
fSigma
 

Detailed Description

template<typename T, typename GRND>
struct hydra::detail::RndGauss< T, GRND >

Constructor & Destructor Documentation

◆ RndGauss() [1/2]

template<typename T , typename GRND >
hydra::detail::RndGauss< T, GRND >::RndGauss ( size_t  seed,
mean,
sigma 
)
inline
Warning
: the implementation of hydra::thrust::random::normal_distribution is different between nvcc and gcc. Do not expect the same numbers event by event. Possible: implement myself ? (que inferno! :0) Refs: hydra/detail/external/hydra_thrust/random/detail/normal_distribution_base.h
template<typename RealType>
struct normal_distribution_base
{
#if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC
typedef normal_distribution_nvcc<RealType> type;
#else
typedef normal_distribution_portable<RealType> type;
#endif
};

◆ RndGauss() [2/2]

template<typename T , typename GRND >
__hydra_host__ __hydra_device__ hydra::detail::RndGauss< T, GRND >::RndGauss ( RndGauss< T, GRND > const &  other)
inline

Member Function Documentation

◆ operator()()

template<typename T , typename GRND >
__hydra_host__ __hydra_device__ T hydra::detail::RndGauss< T, GRND >::operator() ( size_t  index)
inline

Field Documentation

◆ fMean

template<typename T , typename GRND >
T hydra::detail::RndGauss< T, GRND >::fMean

◆ fSeed

template<typename T , typename GRND >
size_t hydra::detail::RndGauss< T, GRND >::fSeed

◆ fSigma

template<typename T , typename GRND >
T hydra::detail::RndGauss< T, GRND >::fSigma

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