alpaka
Abstraction Library for Parallel Kernel Acceleration
alpaka::rand::engine::uniform_cuda_hip::Xor Class Reference

The CUDA/HIP Xor random number generator engine. More...

#include <RandUniformCudaHipRand.hpp>

Public Types

using result_type = decltype(curand(&state))
 

Public Member Functions

 Xor ()=default
 
__device__ Xor (std::uint32_t const &seed, std::uint32_t const &subsequence=0, std::uint32_t const &offset=0)
 
__device__ result_type operator() ()
 

Static Public Member Functions

static constexpr ALPAKA_FN_HOST_ACC result_type max ()
 
static constexpr ALPAKA_FN_HOST_ACC result_type min ()
 

Friends

template<typename T >
class distribution::uniform_cuda_hip::NormalReal
 
template<typename T >
class distribution::uniform_cuda_hip::UniformReal
 
template<typename T >
class distribution::uniform_cuda_hip::UniformUint
 

Detailed Description

The CUDA/HIP Xor random number generator engine.

Definition at line 73 of file RandUniformCudaHipRand.hpp.

Member Typedef Documentation

◆ result_type

Definition at line 112 of file RandUniformCudaHipRand.hpp.

Constructor & Destructor Documentation

◆ Xor() [1/2]

alpaka::rand::engine::uniform_cuda_hip::Xor::Xor ( )
default

◆ Xor() [2/2]

__device__ alpaka::rand::engine::uniform_cuda_hip::Xor::Xor ( std::uint32_t const &  seed,
std::uint32_t const &  subsequence = 0,
std::uint32_t const &  offset = 0 
)
inline

Definition at line 80 of file RandUniformCudaHipRand.hpp.

Member Function Documentation

◆ max()

static constexpr ALPAKA_FN_HOST_ACC result_type alpaka::rand::engine::uniform_cuda_hip::Xor::max ( )
inlinestaticconstexpr

Definition at line 121 of file RandUniformCudaHipRand.hpp.

◆ min()

static constexpr ALPAKA_FN_HOST_ACC result_type alpaka::rand::engine::uniform_cuda_hip::Xor::min ( )
inlinestaticconstexpr

Definition at line 116 of file RandUniformCudaHipRand.hpp.

◆ operator()()

__device__ result_type alpaka::rand::engine::uniform_cuda_hip::Xor::operator() ( )
inline

Definition at line 126 of file RandUniformCudaHipRand.hpp.

Friends And Related Function Documentation

◆ distribution::uniform_cuda_hip::NormalReal

template<typename T >
friend class distribution::uniform_cuda_hip::NormalReal
friend

Definition at line 94 of file RandUniformCudaHipRand.hpp.

◆ distribution::uniform_cuda_hip::UniformReal

template<typename T >
friend class distribution::uniform_cuda_hip::UniformReal
friend

Definition at line 96 of file RandUniformCudaHipRand.hpp.

◆ distribution::uniform_cuda_hip::UniformUint

template<typename T >
friend class distribution::uniform_cuda_hip::UniformUint
friend

Definition at line 98 of file RandUniformCudaHipRand.hpp.


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