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

#include <DistributionSampler.h>

Collaboration diagram for hydra::detail::Sampler< Functor, Engine >:

Public Types

typedef Distribution< Functor >::value_type value_type
 

Public Member Functions

 Sampler ()=delete
 
 Sampler (Functor const &functor, const size_t seed, const size_t jump)
 
__hydra_host__ __hydra_device__ Sampler (Sampler< Functor, Engine > const &other)
 
__hydra_host__ __hydra_device__ value_type operator() (size_t index)
 
__hydra_host__ __hydra_device__ Sampler< Functor, Engine > & operator= (Sampler< Functor, Engine > const &other)
 

Detailed Description

template<typename Functor, typename Engine = hydra::default_random_engine>
struct hydra::detail::Sampler< Functor, Engine >

Member Typedef Documentation

◆ value_type

template<typename Functor , typename Engine = hydra::default_random_engine>
typedef Distribution<Functor>::value_type hydra::detail::Sampler< Functor, Engine >::value_type

Constructor & Destructor Documentation

◆ Sampler() [1/3]

template<typename Functor , typename Engine = hydra::default_random_engine>
hydra::detail::Sampler< Functor, Engine >::Sampler ( )
delete

◆ Sampler() [2/3]

template<typename Functor , typename Engine = hydra::default_random_engine>
hydra::detail::Sampler< Functor, Engine >::Sampler ( Functor const &  functor,
const size_t  seed,
const size_t  jump 
)
inline

◆ Sampler() [3/3]

template<typename Functor , typename Engine = hydra::default_random_engine>
__hydra_host__ __hydra_device__ hydra::detail::Sampler< Functor, Engine >::Sampler ( Sampler< Functor, Engine > const &  other)
inline

Member Function Documentation

◆ operator()()

template<typename Functor , typename Engine = hydra::default_random_engine>
__hydra_host__ __hydra_device__ value_type hydra::detail::Sampler< Functor, Engine >::operator() ( size_t  index)
inline

◆ operator=()

template<typename Functor , typename Engine = hydra::default_random_engine>
__hydra_host__ __hydra_device__ Sampler<Functor, Engine>& hydra::detail::Sampler< Functor, Engine >::operator= ( Sampler< Functor, Engine > const &  other)
inline

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