alpaka
Abstraction Library for Parallel Kernel Acceleration
alpaka::rand::distribution Namespace Reference

The random number generator distribution specifics. More...

Namespaces

 cpu
 
 gpu
 
 trait
 The random number generator distribution trait.
 
 uniform_cuda_hip
 

Functions

template<typename T , typename TRand >
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_HOST_ACC auto createNormalReal (TRand const &rand)
 
template<typename T , typename TRand >
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_HOST_ACC auto createUniformReal (TRand const &rand)
 
template<typename T , typename TRand >
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_HOST_ACC auto createUniformUint (TRand const &rand)
 

Detailed Description

The random number generator distribution specifics.

Function Documentation

◆ createNormalReal()

template<typename T , typename TRand >
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_HOST_ACC auto alpaka::rand::distribution::createNormalReal ( TRand const &  rand)
Returns
A normal float distribution with mean 0.0f and standard deviation 1.0f.

Definition at line 41 of file Traits.hpp.

◆ createUniformReal()

template<typename T , typename TRand >
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_HOST_ACC auto alpaka::rand::distribution::createUniformReal ( TRand const &  rand)
Returns
A uniform floating point distribution [0.0, 1.0).

Definition at line 52 of file Traits.hpp.

◆ createUniformUint()

template<typename T , typename TRand >
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_HOST_ACC auto alpaka::rand::distribution::createUniformUint ( TRand const &  rand)
Returns
A uniform integer distribution [0, UINT_MAX].

Definition at line 63 of file Traits.hpp.