rocRAND
Public Types | Public Member Functions | List of all members
rocrand_device::threefry2x32_20_engine Class Reference
Inheritance diagram for rocrand_device::threefry2x32_20_engine:
Inheritance graph
[legend]
Collaboration diagram for rocrand_device::threefry2x32_20_engine:
Collaboration graph
[legend]

Public Types

typedef threefry_engine2_base< uint2, unsigned int, 20 >::threefry_state_2 threefry2x32_20_state
 

Public Member Functions

FQUALIFIERS threefry2x32_20_engine (const unsigned long long seed=0, const unsigned long long subsequence=0, const unsigned long long offset=0)
 Initializes the internal state of the PRNG using seed value seed, goes to subsequence -th subsequence, and skips offset random numbers. More...
 
FQUALIFIERS void seed (const unsigned long long seed=0, const unsigned long long subsequence=0, const unsigned long long offset=0)
 Reinitializes the internal state of the PRNG using new seed value seed_value, skips subsequence subsequences and offset random numbers. More...
 
- Public Member Functions inherited from rocrand_device::threefry_engine2_base< uint2, unsigned int, 20 >
FQUALIFIERS void discard (unsigned long long offset)
 
FQUALIFIERS void discard ()
 
FQUALIFIERS void discard_subsequence (unsigned long long subsequence)
 Advances the internal state to skip subsequence subsequences, a subsequence consisting of 2 * (2 ^ b) random numbers, where b is the number of bits of the value type of the generator. More...
 
FQUALIFIERS unsigned int operator() ()
 
FQUALIFIERS unsigned int next ()
 
FQUALIFIERS uint2 next2 ()
 

Additional Inherited Members

- Protected Member Functions inherited from rocrand_device::threefry_engine2_base< uint2, unsigned int, 20 >
FQUALIFIERS uint2 threefry_rounds (uint2 counter, uint2 key)
 
FQUALIFIERS void discard_impl (unsigned long long offset)
 Advances the internal state to skip offset numbers. More...
 
FQUALIFIERS void discard_subsequence_impl (unsigned long long subsequence)
 Does not calculate new values (or update m_state.result).
 
FQUALIFIERS void discard_state (unsigned long long offset)
 Advances the internal state by offset times. More...
 
FQUALIFIERS uint2 interleave (const uint2 prev, const uint2 next) const
 
- Static Protected Member Functions inherited from rocrand_device::threefry_engine2_base< uint2, unsigned int, 20 >
static FQUALIFIERS uint2 bump_counter (uint2 counter)
 
- Protected Attributes inherited from rocrand_device::threefry_engine2_base< uint2, unsigned int, 20 >
threefry_state_2 m_state
 

Constructor & Destructor Documentation

◆ threefry2x32_20_engine()

FQUALIFIERS rocrand_device::threefry2x32_20_engine::threefry2x32_20_engine ( const unsigned long long  seed = 0,
const unsigned long long  subsequence = 0,
const unsigned long long  offset = 0 
)
inline

Initializes the internal state of the PRNG using seed value seed, goes to subsequence -th subsequence, and skips offset random numbers.

A subsequence consists of 2 ^ 33 random numbers.

Member Function Documentation

◆ seed()

FQUALIFIERS void rocrand_device::threefry2x32_20_engine::seed ( const unsigned long long  seed = 0,
const unsigned long long  subsequence = 0,
const unsigned long long  offset = 0 
)
inline

Reinitializes the internal state of the PRNG using new seed value seed_value, skips subsequence subsequences and offset random numbers.

A subsequence consists of 2 ^ 33 random numbers.


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