Celeritas  0.5.0-56+6b053cd
Public Member Functions | Friends | List of all members
celeritas::CuHipRngEngine Class Reference

Generate random data on device and host. More...

#include <CuHipRngEngine.hh>

Public Types

Type aliases
using result_type = unsigned int
 
using Initializer_t = CuHipRngInitializer
 
using ParamsRef = NativeCRef< CuHipRngParamsData >
 
using StateRef = NativeRef< CuHipRngStateData >
 

Public Member Functions

CELER_FUNCTION CuHipRngEngine (ParamsRef const &params, StateRef const &state, TrackSlotId tid)
 Construct from state.
 
CELER_FUNCTION CuHipRngEngineoperator= (Initializer_t const &)
 Initialize the RNG engine with a seed value.
 
CELER_FUNCTION result_type operator() ()
 Sample a random number.
 

Friends

template<class Generator , class RealType >
class GenerateCanonical
 

Detailed Description

Generate random data on device and host.

The CuHipRngEngine uses a C++11-like interface to generate random data. The sampling of uniform floating point data is done with specializations to the GenerateCanonical class.


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