alpaka
Abstraction Library for Parallel Kernel Acceleration
alpaka::rand::distribution::gpu::NormalReal< Acc, T > Class Template Reference

#include <RandDefault.hpp>

Public Member Functions

constexpr ALPAKA_FN_HOST_ACC NormalReal (Acc const &acc)
 
constexpr ALPAKA_FN_HOST_ACC NormalReal (NormalReal const &other)
 
template<typename TEngine >
ALPAKA_FN_HOST_ACC auto operator() (TEngine &engine) -> T
 
constexpr ALPAKA_FN_HOST_ACC auto operator= (NormalReal const &other) -> NormalReal &
 

Detailed Description

template<typename Acc, typename T>
class alpaka::rand::distribution::gpu::NormalReal< Acc, T >

The GPU random number normal distribution.

Note
This type contains state and is not thread-safe: To be used per thread, not shared.
When reproducibility is a concern, each instance of this class should be used with only on random engine instance, or two consecutive number should be generated with each engine used. This is due to the implicit caching of one Gaussian random number.

Definition at line 101 of file RandDefault.hpp.

Constructor & Destructor Documentation

◆ NormalReal() [1/2]

template<typename Acc , typename T >
constexpr ALPAKA_FN_HOST_ACC alpaka::rand::distribution::gpu::NormalReal< Acc, T >::NormalReal ( Acc const &  acc)
inlineconstexpr
Warning
Retains a reference to acc, thus must not outlive it.

Definition at line 111 of file RandDefault.hpp.

◆ NormalReal() [2/2]

template<typename Acc , typename T >
constexpr ALPAKA_FN_HOST_ACC alpaka::rand::distribution::gpu::NormalReal< Acc, T >::NormalReal ( NormalReal< Acc, T > const &  other)
inlineconstexpr

Definition at line 123 of file RandDefault.hpp.

Member Function Documentation

◆ operator()()

template<typename Acc , typename T >
template<typename TEngine >
ALPAKA_FN_HOST_ACC auto alpaka::rand::distribution::gpu::NormalReal< Acc, T >::operator() ( TEngine &  engine) -> T
inline

Definition at line 134 of file RandDefault.hpp.

◆ operator=()

template<typename Acc , typename T >
constexpr ALPAKA_FN_HOST_ACC auto alpaka::rand::distribution::gpu::NormalReal< Acc, T >::operator= ( NormalReal< Acc, T > const &  other) -> NormalReal&
inlineconstexpr

Definition at line 127 of file RandDefault.hpp.


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