|
Celeritas 0.7.0-dev.162+develop.12e60fa0f
|
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 ¶ms, StateRef const &state, TrackSlotId tid) |
| Construct from state. | |
| CELER_FUNCTION CuHipRngEngine & | operator= (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 > | |
| struct | GenerateCanonical |
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.