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

#include <RandomUtils.h>

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

Public Types

typedef std::conditional< std::is_integral< T >::value, hydra::thrust::uniform_int_distribution< T >, hydra::thrust::uniform_real_distribution< T > >::type distribution_t
 

Public Member Functions

 RndUniform (size_t seed, T min, T max)
 
__hydra_host__ __hydra_device__ RndUniform (RndUniform< T, GRND > const &other)
 
__hydra_host__ __hydra_device__operator() (size_t index)
 
__hydra_host__ __hydra_device__ RndUniform< T, GRND > & operator= (RndUniform< T, GRND > const &other)
 

Data Fields

fMax
 
fMin
 
size_t fSeed
 

Detailed Description

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

Member Typedef Documentation

◆ distribution_t

template<typename T , typename GRND >
typedef std::conditional<std::is_integral<T>::value, hydra::thrust::uniform_int_distribution<T>, hydra::thrust::uniform_real_distribution<T> >::type hydra::detail::RndUniform< T, GRND >::distribution_t

Constructor & Destructor Documentation

◆ RndUniform() [1/2]

template<typename T , typename GRND >
hydra::detail::RndUniform< T, GRND >::RndUniform ( size_t  seed,
min,
max 
)
inline

◆ RndUniform() [2/2]

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

Member Function Documentation

◆ operator()()

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

◆ operator=()

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

Field Documentation

◆ fMax

template<typename T , typename GRND >
T hydra::detail::RndUniform< T, GRND >::fMax

◆ fMin

template<typename T , typename GRND >
T hydra::detail::RndUniform< T, GRND >::fMin

◆ fSeed

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

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