rocRAND
|
Macros | |
#define | ROCRAND_LFSR113_DEFAULT_SEED_X 2 |
Default X seed for LFSR113 PRNG. More... | |
#define | ROCRAND_LFSR113_DEFAULT_SEED_Y 8 |
Default Y seed for LFSR113 PRNG. More... | |
#define | ROCRAND_LFSR113_DEFAULT_SEED_Z 16 |
Default Z seed for LFSR113 PRNG. More... | |
#define | ROCRAND_LFSR113_DEFAULT_SEED_W 128 |
Default W seed for LFSR113 PRNG. More... | |
#define | ROCRAND_MRG31K3P_DEFAULT_SEED 12345ULL |
Default seed for MRG31K3P PRNG. | |
#define | ROCRAND_MRG32K3A_DEFAULT_SEED 12345ULL |
Default seed for MRG32K3A PRNG. | |
#define | ROCRAND_PHILOX4x32_DEFAULT_SEED 0xdeadbeefdeadbeefULL |
Default seed for PHILOX4x32 PRNG. | |
#define | FQUALIFIERS __forceinline__ __device__ |
Shorthand for commonly used function qualifiers. | |
#define | ROCRAND_XORWOW_DEFAULT_SEED 0ULL |
Default seed for XORWOW PRNG. | |
Functions | |
FQUALIFIERS unsigned int | rocrand_discrete (rocrand_state_philox4x32_10 *state, const rocrand_discrete_distribution discrete_distribution) |
Returns a discrete distributed unsigned int value. More... | |
FQUALIFIERS uint4 | rocrand_discrete4 (rocrand_state_philox4x32_10 *state, const rocrand_discrete_distribution discrete_distribution) |
Returns four discrete distributed unsigned int values. More... | |
FQUALIFIERS unsigned int | rocrand_discrete (rocrand_state_mrg31k3p *state, const rocrand_discrete_distribution discrete_distribution) |
Returns a discrete distributed unsigned int value. More... | |
FQUALIFIERS unsigned int | rocrand_discrete (rocrand_state_mrg32k3a *state, const rocrand_discrete_distribution discrete_distribution) |
Returns a discrete distributed unsigned int value. More... | |
FQUALIFIERS unsigned int | rocrand_discrete (rocrand_state_xorwow *state, const rocrand_discrete_distribution discrete_distribution) |
Returns a discrete distributed unsigned int value. More... | |
FQUALIFIERS unsigned int | rocrand_discrete (rocrand_state_mtgp32 *state, const rocrand_discrete_distribution discrete_distribution) |
Returns a discrete distributed unsigned int value. More... | |
FQUALIFIERS unsigned int | rocrand_discrete (rocrand_state_sobol32 *state, const rocrand_discrete_distribution discrete_distribution) |
Returns a discrete distributed unsigned int value. More... | |
FQUALIFIERS unsigned int | rocrand_discrete (rocrand_state_scrambled_sobol32 *state, const rocrand_discrete_distribution discrete_distribution) |
Returns a discrete distributed unsigned int value. More... | |
FQUALIFIERS unsigned int | rocrand_discrete (rocrand_state_sobol64 *state, const rocrand_discrete_distribution discrete_distribution) |
Returns a discrete distributed unsigned long long int value. More... | |
FQUALIFIERS unsigned int | rocrand_discrete (rocrand_state_scrambled_sobol64 *state, const rocrand_discrete_distribution discrete_distribution) |
Returns a discrete distributed unsigned long long int value. More... | |
FQUALIFIERS unsigned int | rocrand_discrete (rocrand_state_lfsr113 *state, const rocrand_discrete_distribution discrete_distribution) |
Returns a discrete distributed unsigned int value. More... | |
FQUALIFIERS unsigned int | rocrand_discrete (rocrand_state_threefry2x32_20 *state, const rocrand_discrete_distribution discrete_distribution) |
Returns a discrete distributed unsigned int value. More... | |
FQUALIFIERS unsigned int | rocrand_discrete (rocrand_state_threefry2x64_20 *state, const rocrand_discrete_distribution discrete_distribution) |
Returns a discrete distributed unsigned int value. More... | |
FQUALIFIERS unsigned int | rocrand_discrete (rocrand_state_threefry4x32_20 *state, const rocrand_discrete_distribution discrete_distribution) |
Returns a discrete distributed unsigned int value. More... | |
FQUALIFIERS unsigned int | rocrand_discrete (rocrand_state_threefry4x64_20 *state, const rocrand_discrete_distribution discrete_distribution) |
Returns a discrete distributed unsigned int value. More... | |
FQUALIFIERS void | rocrand_init (const uint4 seed, const unsigned int subsequence, rocrand_state_lfsr113 *state) |
Initializes LFSR113 state. More... | |
FQUALIFIERS unsigned int | rocrand (rocrand_state_lfsr113 *state) |
Returns uniformly distributed random unsigned int value from [0; 2^32 - 1] range. More... | |
FQUALIFIERS float | rocrand_log_normal (rocrand_state_philox4x32_10 *state, float mean, float stddev) |
Returns a log-normally distributed float value. More... | |
FQUALIFIERS float2 | rocrand_log_normal2 (rocrand_state_philox4x32_10 *state, float mean, float stddev) |
Returns two log-normally distributed float values. More... | |
FQUALIFIERS float4 | rocrand_log_normal4 (rocrand_state_philox4x32_10 *state, float mean, float stddev) |
Returns four log-normally distributed float values. More... | |
FQUALIFIERS double | rocrand_log_normal_double (rocrand_state_philox4x32_10 *state, double mean, double stddev) |
Returns a log-normally distributed double values. More... | |
FQUALIFIERS double2 | rocrand_log_normal_double2 (rocrand_state_philox4x32_10 *state, double mean, double stddev) |
Returns two log-normally distributed double values. More... | |
FQUALIFIERS double4 | rocrand_log_normal_double4 (rocrand_state_philox4x32_10 *state, double mean, double stddev) |
Returns four log-normally distributed double values. More... | |
FQUALIFIERS float | rocrand_log_normal (rocrand_state_mrg31k3p *state, float mean, float stddev) |
Returns a log-normally distributed float value. More... | |
FQUALIFIERS float2 | rocrand_log_normal2 (rocrand_state_mrg31k3p *state, float mean, float stddev) |
Returns two log-normally distributed float values. More... | |
FQUALIFIERS double | rocrand_log_normal_double (rocrand_state_mrg31k3p *state, double mean, double stddev) |
Returns a log-normally distributed double value. More... | |
FQUALIFIERS double2 | rocrand_log_normal_double2 (rocrand_state_mrg31k3p *state, double mean, double stddev) |
Returns two log-normally distributed double values. More... | |
FQUALIFIERS float | rocrand_log_normal (rocrand_state_mrg32k3a *state, float mean, float stddev) |
Returns a log-normally distributed float value. More... | |
FQUALIFIERS float2 | rocrand_log_normal2 (rocrand_state_mrg32k3a *state, float mean, float stddev) |
Returns two log-normally distributed float values. More... | |
FQUALIFIERS double | rocrand_log_normal_double (rocrand_state_mrg32k3a *state, double mean, double stddev) |
Returns a log-normally distributed double value. More... | |
FQUALIFIERS double2 | rocrand_log_normal_double2 (rocrand_state_mrg32k3a *state, double mean, double stddev) |
Returns two log-normally distributed double values. More... | |
FQUALIFIERS float | rocrand_log_normal (rocrand_state_xorwow *state, float mean, float stddev) |
Returns a log-normally distributed float value. More... | |
FQUALIFIERS float2 | rocrand_log_normal2 (rocrand_state_xorwow *state, float mean, float stddev) |
Returns two log-normally distributed float values. More... | |
FQUALIFIERS double | rocrand_log_normal_double (rocrand_state_xorwow *state, double mean, double stddev) |
Returns a log-normally distributed double value. More... | |
FQUALIFIERS double2 | rocrand_log_normal_double2 (rocrand_state_xorwow *state, double mean, double stddev) |
Returns two log-normally distributed double values. More... | |
FQUALIFIERS float | rocrand_log_normal (rocrand_state_mtgp32 *state, float mean, float stddev) |
Returns a log-normally distributed float value. More... | |
FQUALIFIERS double | rocrand_log_normal_double (rocrand_state_mtgp32 *state, double mean, double stddev) |
Returns a log-normally distributed double value. More... | |
FQUALIFIERS float | rocrand_log_normal (rocrand_state_sobol32 *state, float mean, float stddev) |
Returns a log-normally distributed float value. More... | |
FQUALIFIERS double | rocrand_log_normal_double (rocrand_state_sobol32 *state, double mean, double stddev) |
Returns a log-normally distributed double value. More... | |
FQUALIFIERS float | rocrand_log_normal (rocrand_state_scrambled_sobol32 *state, float mean, float stddev) |
Returns a log-normally distributed float value. More... | |
FQUALIFIERS double | rocrand_log_normal_double (rocrand_state_scrambled_sobol32 *state, double mean, double stddev) |
Returns a log-normally distributed double value. More... | |
FQUALIFIERS float | rocrand_log_normal (rocrand_state_sobol64 *state, float mean, float stddev) |
Returns a log-normally distributed float value. More... | |
FQUALIFIERS double | rocrand_log_normal_double (rocrand_state_sobol64 *state, double mean, double stddev) |
Returns a log-normally distributed double value. More... | |
FQUALIFIERS float | rocrand_log_normal (rocrand_state_scrambled_sobol64 *state, float mean, float stddev) |
Returns a log-normally distributed float value. More... | |
FQUALIFIERS double | rocrand_log_normal_double (rocrand_state_scrambled_sobol64 *state, double mean, double stddev) |
Returns a log-normally distributed double value. More... | |
FQUALIFIERS float | rocrand_log_normal (rocrand_state_lfsr113 *state, float mean, float stddev) |
Returns a log-normally distributed float value. More... | |
FQUALIFIERS float2 | rocrand_log_normal2 (rocrand_state_lfsr113 *state, float mean, float stddev) |
Returns two log-normally distributed float values. More... | |
FQUALIFIERS double | rocrand_log_normal_double (rocrand_state_lfsr113 *state, double mean, double stddev) |
Returns a log-normally distributed double value. More... | |
FQUALIFIERS double2 | rocrand_log_normal_double2 (rocrand_state_lfsr113 *state, double mean, double stddev) |
Returns two log-normally distributed double values. More... | |
FQUALIFIERS float | rocrand_log_normal (rocrand_state_threefry2x32_20 *state, double mean, double stddev) |
Returns a log-normally distributed float value. More... | |
FQUALIFIERS float2 | rocrand_log_normal2 (rocrand_state_threefry2x32_20 *state, float mean, float stddev) |
Returns two log-normally distributed float values. More... | |
FQUALIFIERS double | rocrand_log_normal_double (rocrand_state_threefry2x32_20 *state, double mean, double stddev) |
Returns a log-normally distributed double value. More... | |
FQUALIFIERS double2 | rocrand_log_normal_double2 (rocrand_state_threefry2x32_20 *state, double mean, double stddev) |
Returns two log-normally distributed double values. More... | |
FQUALIFIERS float | rocrand_log_normal (rocrand_state_threefry2x64_20 *state, double mean, double stddev) |
Returns a log-normally distributed float value. More... | |
FQUALIFIERS float2 | rocrand_log_normal2 (rocrand_state_threefry2x64_20 *state, float mean, float stddev) |
Returns two log-normally distributed float values. More... | |
FQUALIFIERS double | rocrand_log_normal_double (rocrand_state_threefry2x64_20 *state, double mean, double stddev) |
Returns a log-normally distributed double value. More... | |
FQUALIFIERS double2 | rocrand_log_normal_double2 (rocrand_state_threefry2x64_20 *state, double mean, double stddev) |
Returns two log-normally distributed double values. More... | |
FQUALIFIERS float | rocrand_log_normal (rocrand_state_threefry4x32_20 *state, double mean, double stddev) |
Returns a log-normally distributed float value. More... | |
FQUALIFIERS float2 | rocrand_log_normal2 (rocrand_state_threefry4x32_20 *state, float mean, float stddev) |
Returns two log-normally distributed float values. More... | |
FQUALIFIERS double | rocrand_log_normal_double (rocrand_state_threefry4x32_20 *state, double mean, double stddev) |
Returns a log-normally distributed double value. More... | |
FQUALIFIERS double2 | rocrand_log_normal_double2 (rocrand_state_threefry4x32_20 *state, double mean, double stddev) |
Returns two log-normally distributed double values. More... | |
FQUALIFIERS float | rocrand_log_normal (rocrand_state_threefry4x64_20 *state, double mean, double stddev) |
Returns a log-normally distributed float value. More... | |
FQUALIFIERS float2 | rocrand_log_normal2 (rocrand_state_threefry4x64_20 *state, float mean, float stddev) |
Returns two log-normally distributed float values. More... | |
FQUALIFIERS double | rocrand_log_normal_double (rocrand_state_threefry4x64_20 *state, double mean, double stddev) |
Returns a log-normally distributed double value. More... | |
FQUALIFIERS double2 | rocrand_log_normal_double2 (rocrand_state_threefry4x64_20 *state, double mean, double stddev) |
Returns two log-normally distributed double values. More... | |
FQUALIFIERS void | rocrand_init (const unsigned long long seed, const unsigned long long subsequence, const unsigned long long offset, rocrand_state_mrg31k3p *state) |
Initializes MRG31K3P state. More... | |
FQUALIFIERS unsigned int | rocrand (rocrand_state_mrg31k3p *state) |
Returns uniformly distributed random unsigned int value from [0; 2^32 - 1] range. More... | |
FQUALIFIERS void | skipahead (unsigned long long offset, rocrand_state_mrg31k3p *state) |
Updates MRG31K3P state to skip ahead by offset elements. More... | |
FQUALIFIERS void | skipahead_subsequence (unsigned long long subsequence, rocrand_state_mrg31k3p *state) |
Updates MRG31K3P state to skip ahead by subsequence subsequences. More... | |
FQUALIFIERS void | skipahead_sequence (unsigned long long sequence, rocrand_state_mrg31k3p *state) |
Updates MRG31K3P state to skip ahead by sequence sequences. More... | |
FQUALIFIERS void | rocrand_init (const unsigned long long seed, const unsigned long long subsequence, const unsigned long long offset, rocrand_state_mrg32k3a *state) |
Initializes MRG32K3A state. More... | |
FQUALIFIERS unsigned int | rocrand (rocrand_state_mrg32k3a *state) |
Returns uniformly distributed random unsigned int value from [0; 2^32 - 1] range. More... | |
FQUALIFIERS void | skipahead (unsigned long long offset, rocrand_state_mrg32k3a *state) |
Updates MRG32K3A state to skip ahead by offset elements. More... | |
FQUALIFIERS void | skipahead_subsequence (unsigned long long subsequence, rocrand_state_mrg32k3a *state) |
Updates MRG32K3A state to skip ahead by subsequence subsequences. More... | |
FQUALIFIERS void | skipahead_sequence (unsigned long long sequence, rocrand_state_mrg32k3a *state) |
Updates MRG32K3A state to skip ahead by sequence sequences. More... | |
__host__ rocrand_status | rocrand_make_state_mtgp32 (rocrand_state_mtgp32 *d_state, mtgp32_fast_params params[], int n, unsigned long long seed) |
Initializes MTGP32 states. More... | |
__host__ rocrand_status | rocrand_make_constant (const mtgp32_fast_params params[], mtgp32_params *p) |
Loads parameters for MTGP32. More... | |
FQUALIFIERS unsigned int | rocrand (rocrand_state_mtgp32 *state) |
Returns uniformly distributed random unsigned int value from [0; 2^32 - 1] range. More... | |
FQUALIFIERS void | rocrand_mtgp32_block_copy (rocrand_state_mtgp32 *src, rocrand_state_mtgp32 *dest) |
Copies MTGP32 state to another state using block of threads. More... | |
FQUALIFIERS void | rocrand_mtgp32_set_params (rocrand_state_mtgp32 *state, mtgp32_params *params) |
Changes parameters of a MTGP32 state. More... | |
FQUALIFIERS float | rocrand_normal (rocrand_state_philox4x32_10 *state) |
Returns a normally distributed float value. More... | |
FQUALIFIERS float2 | rocrand_normal2 (rocrand_state_philox4x32_10 *state) |
Returns two normally distributed float values. More... | |
FQUALIFIERS float4 | rocrand_normal4 (rocrand_state_philox4x32_10 *state) |
Returns four normally distributed float values. More... | |
FQUALIFIERS double | rocrand_normal_double (rocrand_state_philox4x32_10 *state) |
Returns a normally distributed double value. More... | |
FQUALIFIERS double2 | rocrand_normal_double2 (rocrand_state_philox4x32_10 *state) |
Returns two normally distributed double values. More... | |
FQUALIFIERS double4 | rocrand_normal_double4 (rocrand_state_philox4x32_10 *state) |
Returns four normally distributed double values. More... | |
FQUALIFIERS float | rocrand_normal (rocrand_state_mrg31k3p *state) |
Returns a normally distributed float value. More... | |
FQUALIFIERS float2 | rocrand_normal2 (rocrand_state_mrg31k3p *state) |
Returns two normally distributed float values. More... | |
FQUALIFIERS double | rocrand_normal_double (rocrand_state_mrg31k3p *state) |
Returns a normally distributed double value. More... | |
FQUALIFIERS double2 | rocrand_normal_double2 (rocrand_state_mrg31k3p *state) |
Returns two normally distributed double values. More... | |
FQUALIFIERS float | rocrand_normal (rocrand_state_mrg32k3a *state) |
Returns a normally distributed float value. More... | |
FQUALIFIERS float2 | rocrand_normal2 (rocrand_state_mrg32k3a *state) |
Returns two normally distributed float values. More... | |
FQUALIFIERS double | rocrand_normal_double (rocrand_state_mrg32k3a *state) |
Returns a normally distributed double value. More... | |
FQUALIFIERS double2 | rocrand_normal_double2 (rocrand_state_mrg32k3a *state) |
Returns two normally distributed double values. More... | |
FQUALIFIERS float | rocrand_normal (rocrand_state_xorwow *state) |
Returns a normally distributed float value. More... | |
FQUALIFIERS float2 | rocrand_normal2 (rocrand_state_xorwow *state) |
Returns two normally distributed float values. More... | |
FQUALIFIERS double | rocrand_normal_double (rocrand_state_xorwow *state) |
Returns a normally distributed double value. More... | |
FQUALIFIERS double2 | rocrand_normal_double2 (rocrand_state_xorwow *state) |
Returns two normally distributed double values. More... | |
FQUALIFIERS float | rocrand_normal (rocrand_state_mtgp32 *state) |
Returns a normally distributed float value. More... | |
FQUALIFIERS double | rocrand_normal_double (rocrand_state_mtgp32 *state) |
Returns a normally distributed double value. More... | |
FQUALIFIERS float | rocrand_normal (rocrand_state_sobol32 *state) |
Returns a normally distributed float value. More... | |
FQUALIFIERS double | rocrand_normal_double (rocrand_state_sobol32 *state) |
Returns a normally distributed double value. More... | |
FQUALIFIERS float | rocrand_normal (rocrand_state_scrambled_sobol32 *state) |
Returns a normally distributed float value. More... | |
FQUALIFIERS double | rocrand_normal_double (rocrand_state_scrambled_sobol32 *state) |
Returns a normally distributed double value. More... | |
FQUALIFIERS float | rocrand_normal (rocrand_state_sobol64 *state) |
Returns a normally distributed float value. More... | |
FQUALIFIERS double | rocrand_normal_double (rocrand_state_sobol64 *state) |
Returns a normally distributed double value. More... | |
FQUALIFIERS float | rocrand_normal (rocrand_state_scrambled_sobol64 *state) |
Returns a normally distributed float value. More... | |
FQUALIFIERS double | rocrand_normal_double (rocrand_state_scrambled_sobol64 *state) |
Returns a normally distributed double value. More... | |
FQUALIFIERS float | rocrand_normal (rocrand_state_lfsr113 *state) |
Returns a normally distributed float value. More... | |
FQUALIFIERS float2 | rocrand_normal2 (rocrand_state_lfsr113 *state) |
Returns two normally distributed float values. More... | |
FQUALIFIERS double | rocrand_normal_double (rocrand_state_lfsr113 *state) |
Returns a normally distributed double value. More... | |
FQUALIFIERS double2 | rocrand_normal_double2 (rocrand_state_lfsr113 *state) |
Returns two normally distributed double values. More... | |
FQUALIFIERS float | rocrand_normal (rocrand_state_threefry2x32_20 *state) |
Returns a normally distributed double value. More... | |
FQUALIFIERS float2 | rocrand_normal2 (rocrand_state_threefry2x32_20 *state) |
Returns two normally distributed float values. More... | |
FQUALIFIERS double | rocrand_normal_double (rocrand_state_threefry2x32_20 *state) |
Returns a normally distributed double value. More... | |
FQUALIFIERS double2 | rocrand_normal_double2 (rocrand_state_threefry2x32_20 *state) |
Returns two normally distributed double values. More... | |
FQUALIFIERS float | rocrand_normal (rocrand_state_threefry2x64_20 *state) |
Returns a normally distributed double value. More... | |
FQUALIFIERS float2 | rocrand_normal2 (rocrand_state_threefry2x64_20 *state) |
Returns two normally distributed float values. More... | |
FQUALIFIERS double | rocrand_normal_double (rocrand_state_threefry2x64_20 *state) |
Returns a normally distributed double value. More... | |
FQUALIFIERS double2 | rocrand_normal_double2 (rocrand_state_threefry2x64_20 *state) |
Returns two normally distributed double values. More... | |
FQUALIFIERS float | rocrand_normal (rocrand_state_threefry4x32_20 *state) |
Returns a normally distributed double value. More... | |
FQUALIFIERS float2 | rocrand_normal2 (rocrand_state_threefry4x32_20 *state) |
Returns two normally distributed float values. More... | |
FQUALIFIERS double | rocrand_normal_double (rocrand_state_threefry4x32_20 *state) |
Returns a normally distributed double value. More... | |
FQUALIFIERS double2 | rocrand_normal_double2 (rocrand_state_threefry4x32_20 *state) |
Returns two normally distributed double values. More... | |
FQUALIFIERS float | rocrand_normal (rocrand_state_threefry4x64_20 *state) |
Returns a normally distributed double value. More... | |
FQUALIFIERS float2 | rocrand_normal2 (rocrand_state_threefry4x64_20 *state) |
Returns two normally distributed float values. More... | |
FQUALIFIERS double | rocrand_normal_double (rocrand_state_threefry4x64_20 *state) |
Returns a normally distributed double value. More... | |
FQUALIFIERS double2 | rocrand_normal_double2 (rocrand_state_threefry4x64_20 *state) |
Returns two normally distributed double values. More... | |
FQUALIFIERS void | rocrand_init (const unsigned long long seed, const unsigned long long subsequence, const unsigned long long offset, rocrand_state_philox4x32_10 *state) |
Initializes Philox state. More... | |
FQUALIFIERS unsigned int | rocrand (rocrand_state_philox4x32_10 *state) |
Returns uniformly distributed random unsigned int value from [0; 2^32 - 1] range. More... | |
FQUALIFIERS uint4 | rocrand4 (rocrand_state_philox4x32_10 *state) |
Returns four uniformly distributed random unsigned int values from [0; 2^32 - 1] range. More... | |
FQUALIFIERS void | skipahead (unsigned long long offset, rocrand_state_philox4x32_10 *state) |
Updates Philox state to skip ahead by offset elements. More... | |
FQUALIFIERS void | skipahead_subsequence (unsigned long long subsequence, rocrand_state_philox4x32_10 *state) |
Updates Philox state to skip ahead by subsequence subsequences. More... | |
FQUALIFIERS void | skipahead_sequence (unsigned long long sequence, rocrand_state_philox4x32_10 *state) |
Updates Philox state to skip ahead by sequence sequences. More... | |
FQUALIFIERS unsigned int | rocrand_poisson (rocrand_state_philox4x32_10 *state, double lambda) |
Returns a Poisson-distributed unsigned int using Philox generator. More... | |
FQUALIFIERS uint4 | rocrand_poisson4 (rocrand_state_philox4x32_10 *state, double lambda) |
Returns four Poisson-distributed unsigned int values using Philox generator. More... | |
FQUALIFIERS unsigned int | rocrand_poisson (rocrand_state_mrg31k3p *state, double lambda) |
Returns a Poisson-distributed unsigned int using MRG31k3p generator. More... | |
FQUALIFIERS unsigned int | rocrand_poisson (rocrand_state_mrg32k3a *state, double lambda) |
Returns a Poisson-distributed unsigned int using MRG32k3a generator. More... | |
FQUALIFIERS unsigned int | rocrand_poisson (rocrand_state_xorwow *state, double lambda) |
Returns a Poisson-distributed unsigned int using XORWOW generator. More... | |
FQUALIFIERS unsigned int | rocrand_poisson (rocrand_state_mtgp32 *state, double lambda) |
Returns a Poisson-distributed unsigned int using MTGP32 generator. More... | |
FQUALIFIERS unsigned int | rocrand_poisson (rocrand_state_sobol32 *state, double lambda) |
Returns a Poisson-distributed unsigned int using SOBOL32 generator. More... | |
FQUALIFIERS unsigned int | rocrand_poisson (rocrand_state_scrambled_sobol32 *state, double lambda) |
Returns a Poisson-distributed unsigned int using SCRAMBLED_SOBOL32 generator. More... | |
FQUALIFIERS unsigned long long int | rocrand_poisson (rocrand_state_sobol64 *state, double lambda) |
Returns a Poisson-distributed unsigned long long int using SOBOL64 generator. More... | |
FQUALIFIERS unsigned long long int | rocrand_poisson (rocrand_state_scrambled_sobol64 *state, double lambda) |
Returns a Poisson-distributed unsigned long long int using SCRAMBLED_SOBOL64 generator. More... | |
FQUALIFIERS unsigned int | rocrand_poisson (rocrand_state_lfsr113 *state, double lambda) |
Returns a Poisson-distributed unsigned int using LFSR113 generator. More... | |
FQUALIFIERS unsigned int | rocrand_poisson (rocrand_state_threefry2x32_20 *state, double lambda) |
Returns a Poisson-distributed unsigned int using ThreeFry generator. More... | |
FQUALIFIERS unsigned int | rocrand_poisson (rocrand_state_threefry2x64_20 *state, double lambda) |
Returns a Poisson-distributed unsigned int using ThreeFry generator. More... | |
FQUALIFIERS unsigned int | rocrand_poisson (rocrand_state_threefry4x32_20 *state, double lambda) |
Returns a Poisson-distributed unsigned int using ThreeFry generator. More... | |
FQUALIFIERS unsigned int | rocrand_poisson (rocrand_state_threefry4x64_20 *state, double lambda) |
Returns a Poisson-distributed unsigned int using ThreeFry generator. More... | |
FQUALIFIERS void | rocrand_init (const unsigned int *vectors, const unsigned int scramble_constant, const unsigned int offset, rocrand_state_scrambled_sobol32 *state) |
Initialize scrambled_sobol32 state. More... | |
FQUALIFIERS unsigned int | rocrand (rocrand_state_scrambled_sobol32 *state) |
Returns uniformly distributed random unsigned int value from [0; 2^32 - 1] range. More... | |
FQUALIFIERS void | skipahead (unsigned long long offset, rocrand_state_scrambled_sobol32 *state) |
Updates SCRAMBLED_SOBOL32 state to skip ahead by offset elements. More... | |
FQUALIFIERS void | rocrand_init (const unsigned long long int *vectors, const unsigned long long int scramble_constant, const unsigned int offset, rocrand_state_scrambled_sobol64 *state) |
Initialize scrambled_sobol64 state. More... | |
FQUALIFIERS unsigned long long int | rocrand (rocrand_state_scrambled_sobol64 *state) |
Returns uniformly distributed random unsigned int value from [0; 2^64 - 1] range. More... | |
FQUALIFIERS void | skipahead (unsigned long long offset, rocrand_state_scrambled_sobol64 *state) |
Updates scrambled_sobol64 state to skip ahead by offset elements. More... | |
FQUALIFIERS void | rocrand_init (const unsigned int *vectors, const unsigned int offset, rocrand_state_sobol32 *state) |
Initialize SOBOL32 state. More... | |
FQUALIFIERS unsigned int | rocrand (rocrand_state_sobol32 *state) |
Returns uniformly distributed random unsigned int value from [0; 2^32 - 1] range. More... | |
FQUALIFIERS void | skipahead (unsigned long long offset, rocrand_state_sobol32 *state) |
Updates SOBOL32 state to skip ahead by offset elements. More... | |
FQUALIFIERS void | rocrand_init (const unsigned long long int *vectors, const unsigned int offset, rocrand_state_sobol64 *state) |
Initialize sobol64 state. More... | |
FQUALIFIERS unsigned long long int | rocrand (rocrand_state_sobol64 *state) |
Returns uniformly distributed random unsigned int value from [0; 2^64 - 1] range. More... | |
FQUALIFIERS void | skipahead (unsigned long long int offset, rocrand_state_sobol64 *state) |
Updates sobol64 state to skip ahead by offset elements. More... | |
FQUALIFIERS float | rocrand_uniform (rocrand_state_philox4x32_10 *state) |
Returns a uniformly distributed random float value from (0; 1] range. More... | |
FQUALIFIERS float2 | rocrand_uniform2 (rocrand_state_philox4x32_10 *state) |
Returns two uniformly distributed random float values from (0; 1] range. More... | |
FQUALIFIERS float4 | rocrand_uniform4 (rocrand_state_philox4x32_10 *state) |
Returns four uniformly distributed random float values from (0; 1] range. More... | |
FQUALIFIERS double | rocrand_uniform_double (rocrand_state_philox4x32_10 *state) |
Returns a uniformly distributed random double value from (0; 1] range. More... | |
FQUALIFIERS double2 | rocrand_uniform_double2 (rocrand_state_philox4x32_10 *state) |
Returns two uniformly distributed random double values from (0; 1] range. More... | |
FQUALIFIERS double4 | rocrand_uniform_double4 (rocrand_state_philox4x32_10 *state) |
Returns four uniformly distributed random double values from (0; 1] range. More... | |
FQUALIFIERS float | rocrand_uniform (rocrand_state_mrg31k3p *state) |
Returns a uniformly distributed random float value from (0; 1] range. More... | |
FQUALIFIERS double | rocrand_uniform_double (rocrand_state_mrg31k3p *state) |
Returns a uniformly distributed random double value from (0; 1] range. More... | |
FQUALIFIERS float | rocrand_uniform (rocrand_state_mrg32k3a *state) |
Returns a uniformly distributed random float value from (0; 1] range. More... | |
FQUALIFIERS double | rocrand_uniform_double (rocrand_state_mrg32k3a *state) |
Returns a uniformly distributed random double value from (0; 1] range. More... | |
FQUALIFIERS float | rocrand_uniform (rocrand_state_xorwow *state) |
Returns a uniformly distributed random float value from (0; 1] range. More... | |
FQUALIFIERS double | rocrand_uniform_double (rocrand_state_xorwow *state) |
Returns a uniformly distributed random double value from (0; 1] range. More... | |
FQUALIFIERS float | rocrand_uniform (rocrand_state_mtgp32 *state) |
Returns a uniformly distributed random float value from (0; 1] range. More... | |
FQUALIFIERS double | rocrand_uniform_double (rocrand_state_mtgp32 *state) |
Returns a uniformly distributed random double value from (0; 1] range. More... | |
FQUALIFIERS float | rocrand_uniform (rocrand_state_sobol32 *state) |
Returns a uniformly distributed random float value from (0; 1] range. More... | |
FQUALIFIERS double | rocrand_uniform_double (rocrand_state_sobol32 *state) |
Returns a uniformly distributed random double value from (0; 1] range. More... | |
FQUALIFIERS float | rocrand_uniform (rocrand_state_scrambled_sobol32 *state) |
Returns a uniformly distributed random float value from (0; 1] range. More... | |
FQUALIFIERS double | rocrand_uniform_double (rocrand_state_scrambled_sobol32 *state) |
Returns a uniformly distributed random double value from (0; 1] range. More... | |
FQUALIFIERS float | rocrand_uniform (rocrand_state_sobol64 *state) |
Returns a uniformly distributed random float value from (0; 1] range. More... | |
FQUALIFIERS double | rocrand_uniform_double (rocrand_state_sobol64 *state) |
Returns a uniformly distributed random double value from (0; 1] range. More... | |
FQUALIFIERS float | rocrand_uniform (rocrand_state_scrambled_sobol64 *state) |
Returns a uniformly distributed random float value from (0; 1] range. More... | |
FQUALIFIERS double | rocrand_uniform_double (rocrand_state_scrambled_sobol64 *state) |
Returns a uniformly distributed random double value from (0; 1] range. More... | |
FQUALIFIERS float | rocrand_uniform (rocrand_state_lfsr113 *state) |
Returns a uniformly distributed random float value from (0; 1] range. More... | |
FQUALIFIERS double | rocrand_uniform_double (rocrand_state_lfsr113 *state) |
Returns a uniformly distributed random double value from (0; 1] range. More... | |
FQUALIFIERS float | rocrand_uniform (rocrand_state_threefry2x32_20 *state) |
Returns a uniformly distributed random float value from (0; 1] range. More... | |
FQUALIFIERS double | rocrand_uniform_double (rocrand_state_threefry2x32_20 *state) |
Returns a uniformly distributed random double value from (0; 1] range. More... | |
FQUALIFIERS float | rocrand_uniform (rocrand_state_threefry2x64_20 *state) |
Returns a uniformly distributed random float value from (0; 1] range. More... | |
FQUALIFIERS double | rocrand_uniform_double (rocrand_state_threefry2x64_20 *state) |
Returns a uniformly distributed random double value from (0; 1] range. More... | |
FQUALIFIERS float | rocrand_uniform (rocrand_state_threefry4x32_20 *state) |
Returns a uniformly distributed random float value from (0; 1] range. More... | |
FQUALIFIERS double | rocrand_uniform_double (rocrand_state_threefry4x32_20 *state) |
Returns a uniformly distributed random double value from (0; 1] range. More... | |
FQUALIFIERS float | rocrand_uniform (rocrand_state_threefry4x64_20 *state) |
Returns a uniformly distributed random float value from (0; 1] range. More... | |
FQUALIFIERS double | rocrand_uniform_double (rocrand_state_threefry4x64_20 *state) |
Returns a uniformly distributed random double value from (0; 1] range. More... | |
FQUALIFIERS void | rocrand_init (const unsigned long long seed, const unsigned long long subsequence, const unsigned long long offset, rocrand_state_xorwow *state) |
Initialize XORWOW state. More... | |
FQUALIFIERS unsigned int | rocrand (rocrand_state_xorwow *state) |
Returns uniformly distributed random unsigned int value from [0; 2^32 - 1] range. More... | |
FQUALIFIERS void | skipahead (unsigned long long offset, rocrand_state_xorwow *state) |
Updates XORWOW state to skip ahead by offset elements. More... | |
FQUALIFIERS void | skipahead_subsequence (unsigned long long subsequence, rocrand_state_xorwow *state) |
Updates XORWOW state to skip ahead by subsequence subsequences. More... | |
FQUALIFIERS void | skipahead_sequence (unsigned long long sequence, rocrand_state_xorwow *state) |
Updates XORWOW state to skip ahead by sequence sequences. More... | |
rocrandStateXORWOW_t
- XORWOW PRNG state typerocrandStatePhilox4_32_10_t
- PHILOX PRNG state typerocrandStateMRG32k3a_t
- MRG32k3a PRNG state typerocrandStateMtgp32_t
- MTGP32 PRNG state typerocrandStateSobol32_t
- SOBOL32 QRNG state type #define ROCRAND_LFSR113_DEFAULT_SEED_W 128 |
Default W seed for LFSR113 PRNG.
#define ROCRAND_LFSR113_DEFAULT_SEED_X 2 |
Default X seed for LFSR113 PRNG.
#define ROCRAND_LFSR113_DEFAULT_SEED_Y 8 |
Default Y seed for LFSR113 PRNG.
#define ROCRAND_LFSR113_DEFAULT_SEED_Z 16 |
Default Z seed for LFSR113 PRNG.
FQUALIFIERS unsigned int rocrand | ( | rocrand_state_scrambled_sobol32 * | state | ) |
Returns uniformly distributed random unsigned int
value from [0; 2^32 - 1] range.
Generates and returns uniformly distributed random unsigned int
value from [0; 2^32 - 1] range using scrambled_sobol32 generator in state
. State is incremented by one position.
state | - Pointer to a state to use |
unsigned int
FQUALIFIERS unsigned long long int rocrand | ( | rocrand_state_scrambled_sobol64 * | state | ) |
Returns uniformly distributed random unsigned int
value from [0; 2^64 - 1] range.
Generates and returns uniformly distributed random unsigned int
value from [0; 2^64 - 1] range using scrambled_sobol64 generator in state
. State is incremented by one position.
state | - Pointer to a state to use |
unsigned int
FQUALIFIERS unsigned int rocrand | ( | rocrand_state_sobol32 * | state | ) |
Returns uniformly distributed random unsigned int
value from [0; 2^32 - 1] range.
Generates and returns uniformly distributed random unsigned int
value from [0; 2^32 - 1] range using Sobol32 generator in state
. State is incremented by one position.
state | - Pointer to a state to use |
unsigned int
FQUALIFIERS unsigned long long int rocrand | ( | rocrand_state_sobol64 * | state | ) |
Returns uniformly distributed random unsigned int
value from [0; 2^64 - 1] range.
Generates and returns uniformly distributed random unsigned int
value from [0; 2^64 - 1] range using sobol64 generator in state
. State is incremented by one position.
state | - Pointer to a state to use |
unsigned int
FQUALIFIERS unsigned int rocrand | ( | rocrand_state_lfsr113 * | state | ) |
Returns uniformly distributed random unsigned int
value from [0; 2^32 - 1] range.
Generates and returns uniformly distributed random unsigned int
value from [0; 2^32 - 1] range using LFSR113 generator in state
. State is incremented by one position.
state | - Pointer to a state to use |
unsigned int
FQUALIFIERS unsigned int rocrand | ( | rocrand_state_xorwow * | state | ) |
Returns uniformly distributed random unsigned int
value from [0; 2^32 - 1] range.
Generates and returns uniformly distributed random unsigned int
value from [0; 2^32 - 1] range using XORWOW generator in state
. State is incremented by one position.
state | - Pointer to a state to use |
unsigned int
FQUALIFIERS unsigned int rocrand | ( | rocrand_state_mrg31k3p * | state | ) |
Returns uniformly distributed random unsigned int
value from [0; 2^32 - 1] range.
Generates and returns uniformly distributed random unsigned int
value from [0; 2^32 - 1] range using MRG31K3P generator in state
. State is incremented by one position.
state | - Pointer to a state to use |
unsigned int
FQUALIFIERS unsigned int rocrand | ( | rocrand_state_philox4x32_10 * | state | ) |
Returns uniformly distributed random unsigned int
value from [0; 2^32 - 1] range.
Generates and returns uniformly distributed random unsigned int
value from [0; 2^32 - 1] range using Philox generator in state
. State is incremented by one position.
state | - Pointer to a state to use |
unsigned int
FQUALIFIERS unsigned int rocrand | ( | rocrand_state_mrg32k3a * | state | ) |
Returns uniformly distributed random unsigned int
value from [0; 2^32 - 1] range.
Generates and returns uniformly distributed random unsigned int
value from [0; 2^32 - 1] range using MRG32K3A generator in state
. State is incremented by one position.
state | - Pointer to a state to use |
unsigned int
FQUALIFIERS unsigned int rocrand | ( | rocrand_state_mtgp32 * | state | ) |
Returns uniformly distributed random unsigned int
value from [0; 2^32 - 1] range.
Generates and returns uniformly distributed random unsigned int
value from [0; 2^32 - 1] range using MTGP32 generator in state
. State is incremented by one position.
state | - Pointer to a state to use |
unsigned int
FQUALIFIERS uint4 rocrand4 | ( | rocrand_state_philox4x32_10 * | state | ) |
Returns four uniformly distributed random unsigned int
values from [0; 2^32 - 1] range.
Generates and returns four uniformly distributed random unsigned int
values from [0; 2^32 - 1] range using Philox generator in state
. State is incremented by four positions.
state | - Pointer to a state to use |
uint4
FQUALIFIERS unsigned int rocrand_discrete | ( | rocrand_state_philox4x32_10 * | state, |
const rocrand_discrete_distribution | discrete_distribution | ||
) |
Returns a discrete distributed unsigned int
value.
Returns a unsigned int
distributed according to with discrete distribution discrete_distribution
using Philox generator in state
, and increments the position of the generator by one.
state | - Pointer to a state to use |
discrete_distribution | - Related discrete distribution |
unsigned int
value distributed according to discrete_distribution
FQUALIFIERS unsigned int rocrand_discrete | ( | rocrand_state_mrg31k3p * | state, |
const rocrand_discrete_distribution | discrete_distribution | ||
) |
Returns a discrete distributed unsigned int
value.
Returns a unsigned int
distributed according to with discrete distribution discrete_distribution
using MRG31k3p generator in state
, and increments the position of the generator by one.
state | - Pointer to a state to use |
discrete_distribution | - Related discrete distribution |
unsigned int
value distributed according to discrete_distribution
FQUALIFIERS unsigned int rocrand_discrete | ( | rocrand_state_mrg32k3a * | state, |
const rocrand_discrete_distribution | discrete_distribution | ||
) |
Returns a discrete distributed unsigned int
value.
Returns a unsigned int
distributed according to with discrete distribution discrete_distribution
using MRG32k3a generator in state
, and increments the position of the generator by one.
state | - Pointer to a state to use |
discrete_distribution | - Related discrete distribution |
unsigned int
value distributed according to discrete_distribution
FQUALIFIERS unsigned int rocrand_discrete | ( | rocrand_state_xorwow * | state, |
const rocrand_discrete_distribution | discrete_distribution | ||
) |
Returns a discrete distributed unsigned int
value.
Returns a unsigned int
distributed according to with discrete distribution discrete_distribution
using XORWOW generator in state
, and increments the position of the generator by one.
state | - Pointer to a state to use |
discrete_distribution | - Related discrete distribution |
unsigned int
value distributed according to discrete_distribution
FQUALIFIERS unsigned int rocrand_discrete | ( | rocrand_state_mtgp32 * | state, |
const rocrand_discrete_distribution | discrete_distribution | ||
) |
Returns a discrete distributed unsigned int
value.
Returns a unsigned int
distributed according to with discrete distribution discrete_distribution
using MTGP32 generator in state
, and increments the position of the generator by one.
state | - Pointer to a state to use |
discrete_distribution | - Related discrete distribution |
unsigned int
value distributed according to discrete_distribution
FQUALIFIERS unsigned int rocrand_discrete | ( | rocrand_state_sobol32 * | state, |
const rocrand_discrete_distribution | discrete_distribution | ||
) |
Returns a discrete distributed unsigned int
value.
Returns a unsigned int
distributed according to with discrete distribution discrete_distribution
using SOBOL32 generator in state
, and increments the position of the generator by one.
state | - Pointer to a state to use |
discrete_distribution | - Related discrete distribution |
unsigned int
value distributed according to discrete_distribution
FQUALIFIERS unsigned int rocrand_discrete | ( | rocrand_state_scrambled_sobol32 * | state, |
const rocrand_discrete_distribution | discrete_distribution | ||
) |
Returns a discrete distributed unsigned int
value.
Returns a unsigned int
distributed according to discrete distribution discrete_distribution
using SCRAMBLED_SOBOL32 generator in state
, and increments the position of the generator by one.
state | - Pointer to a state to use |
discrete_distribution | - Related discrete distribution |
unsigned int
value distributed according to discrete_distribution
FQUALIFIERS unsigned int rocrand_discrete | ( | rocrand_state_sobol64 * | state, |
const rocrand_discrete_distribution | discrete_distribution | ||
) |
Returns a discrete distributed unsigned long long int
value.
Returns a unsigned long long int
distributed according to with discrete distribution discrete_distribution
using SOBOL64 generator in state
, and increments the position of the generator by one.
state | - Pointer to a state to use |
discrete_distribution | - Related discrete distribution |
unsigned long long int
value distributed according to discrete_distribution
FQUALIFIERS unsigned int rocrand_discrete | ( | rocrand_state_scrambled_sobol64 * | state, |
const rocrand_discrete_distribution | discrete_distribution | ||
) |
Returns a discrete distributed unsigned long long int
value.
Returns a unsigned long long int
distributed according to with discrete distribution discrete_distribution
using SCRAMBLED_SOBOL64 generator in state
, and increments the position of the generator by one.
state | - Pointer to a state to use |
discrete_distribution | - Related discrete distribution |
unsigned long long int
value distributed according to discrete_distribution
FQUALIFIERS unsigned int rocrand_discrete | ( | rocrand_state_lfsr113 * | state, |
const rocrand_discrete_distribution | discrete_distribution | ||
) |
Returns a discrete distributed unsigned int
value.
Returns a unsigned int
distributed according to with discrete distribution discrete_distribution
using LFSR113 generator in state
, and increments the position of the generator by one.
state | - Pointer to a state to use |
discrete_distribution | - Related discrete distribution |
unsigned int
value distributed according to discrete_distribution
FQUALIFIERS unsigned int rocrand_discrete | ( | rocrand_state_threefry2x32_20 * | state, |
const rocrand_discrete_distribution | discrete_distribution | ||
) |
Returns a discrete distributed unsigned int
value.
Returns a unsigned int
distributed according to with discrete distribution discrete_distribution
using ThreeFry generator in state
, and increments the position of the generator by one.
state | - Pointer to a state to use |
discrete_distribution | - Related discrete distribution |
unsigned int
value distributed according to discrete_distribution
FQUALIFIERS unsigned int rocrand_discrete | ( | rocrand_state_threefry2x64_20 * | state, |
const rocrand_discrete_distribution | discrete_distribution | ||
) |
Returns a discrete distributed unsigned int
value.
Returns a unsigned int
distributed according to with discrete distribution discrete_distribution
using ThreeFry generator in state
, and increments the position of the generator by one.
state | - Pointer to a state to use |
discrete_distribution | - Related discrete distribution |
unsigned int
value distributed according to discrete_distribution
FQUALIFIERS unsigned int rocrand_discrete | ( | rocrand_state_threefry4x32_20 * | state, |
const rocrand_discrete_distribution | discrete_distribution | ||
) |
Returns a discrete distributed unsigned int
value.
Returns a unsigned int
distributed according to with discrete distribution discrete_distribution
using ThreeFry generator in state
, and increments the position of the generator by one.
state | - Pointer to a state to use |
discrete_distribution | - Related discrete distribution |
unsigned int
value distributed according to discrete_distribution
FQUALIFIERS unsigned int rocrand_discrete | ( | rocrand_state_threefry4x64_20 * | state, |
const rocrand_discrete_distribution | discrete_distribution | ||
) |
Returns a discrete distributed unsigned int
value.
Returns a unsigned int
distributed according to with discrete distribution discrete_distribution
using ThreeFry generator in state
, and increments the position of the generator by one.
state | - Pointer to a state to use |
discrete_distribution | - Related discrete distribution |
unsigned int
value distributed according to discrete_distribution
FQUALIFIERS uint4 rocrand_discrete4 | ( | rocrand_state_philox4x32_10 * | state, |
const rocrand_discrete_distribution | discrete_distribution | ||
) |
Returns four discrete distributed unsigned int
values.
Returns four unsigned int
distributed according to with discrete distribution discrete_distribution
using Philox generator in state
, and increments the position of the generator by four.
state | - Pointer to a state to use |
discrete_distribution | - Related discrete distribution |
unsigned int
values distributed according to discrete_distribution
as uint4
FQUALIFIERS void rocrand_init | ( | const unsigned int * | vectors, |
const unsigned int | scramble_constant, | ||
const unsigned int | offset, | ||
rocrand_state_scrambled_sobol32 * | state | ||
) |
Initialize scrambled_sobol32 state.
Initializes the scrambled_sobol32 generator state
with the given direction vectors
and offset
.
vectors | - Direction vectors |
scramble_constant | - Constant used for scrambling the sequence |
offset | - Absolute offset into sequence |
state | - Pointer to state to initialize |
FQUALIFIERS void rocrand_init | ( | const unsigned long long int * | vectors, |
const unsigned long long int | scramble_constant, | ||
const unsigned int | offset, | ||
rocrand_state_scrambled_sobol64 * | state | ||
) |
Initialize scrambled_sobol64 state.
Initializes the scrambled_sobol64 generator state
with the given direction vectors
and offset
.
vectors | - Direction vectors |
scramble_constant | - Constant used for scrambling the sequence |
offset | - Absolute offset into sequence |
state | - Pointer to state to initialize |
FQUALIFIERS void rocrand_init | ( | const unsigned int * | vectors, |
const unsigned int | offset, | ||
rocrand_state_sobol32 * | state | ||
) |
Initialize SOBOL32 state.
Initializes the SOBOL32 generator state
with the given direction vectors
and offset
.
vectors | - Direction vectors |
offset | - Absolute offset into sequence |
state | - Pointer to state to initialize |
FQUALIFIERS void rocrand_init | ( | const unsigned long long int * | vectors, |
const unsigned int | offset, | ||
rocrand_state_sobol64 * | state | ||
) |
Initialize sobol64 state.
Initializes the sobol64 generator state
with the given direction vectors
and offset
.
vectors | - Direction vectors |
offset | - Absolute offset into sequence |
state | - Pointer to state to initialize |
FQUALIFIERS void rocrand_init | ( | const uint4 | seed, |
const unsigned int | subsequence, | ||
rocrand_state_lfsr113 * | state | ||
) |
Initializes LFSR113 state.
Initializes the LFSR113 generator state
with the given seed
, subsequence
, and offset
.
seed | - Value to use as a seed |
subsequence | - Subsequence to start at |
state | - Pointer to state to initialize |
FQUALIFIERS void rocrand_init | ( | const unsigned long long | seed, |
const unsigned long long | subsequence, | ||
const unsigned long long | offset, | ||
rocrand_state_xorwow * | state | ||
) |
Initialize XORWOW state.
Initializes the XORWOW generator state
with the given seed
, subsequence
, and offset
.
seed | - Value to use as a seed |
subsequence | - Subsequence to start at |
offset | - Absolute offset into subsequence |
state | - Pointer to state to initialize |
FQUALIFIERS void rocrand_init | ( | const unsigned long long | seed, |
const unsigned long long | subsequence, | ||
const unsigned long long | offset, | ||
rocrand_state_mrg31k3p * | state | ||
) |
Initializes MRG31K3P state.
Initializes the MRG31K3P generator state
with the given seed
, subsequence
, and offset
.
seed | - Value to use as a seed |
subsequence | - Subsequence to start at |
offset | - Absolute offset into subsequence |
state | - Pointer to state to initialize |
FQUALIFIERS void rocrand_init | ( | const unsigned long long | seed, |
const unsigned long long | subsequence, | ||
const unsigned long long | offset, | ||
rocrand_state_philox4x32_10 * | state | ||
) |
Initializes Philox state.
Initializes the Philox generator state
with the given seed
, subsequence
, and offset
.
seed | - Value to use as a seed |
subsequence | - Subsequence to start at |
offset | - Absolute offset into subsequence |
state | - Pointer to state to initialize |
FQUALIFIERS void rocrand_init | ( | const unsigned long long | seed, |
const unsigned long long | subsequence, | ||
const unsigned long long | offset, | ||
rocrand_state_mrg32k3a * | state | ||
) |
Initializes MRG32K3A state.
Initializes the MRG32K3A generator state
with the given seed
, subsequence
, and offset
.
seed | - Value to use as a seed |
subsequence | - Subsequence to start at |
offset | - Absolute offset into subsequence |
state | - Pointer to state to initialize |
FQUALIFIERS float rocrand_log_normal | ( | rocrand_state_philox4x32_10 * | state, |
float | mean, | ||
float | stddev | ||
) |
Returns a log-normally distributed float
value.
Generates and returns a log-normally distributed float
value using Philox generator in state
, and increments position of the generator by one. The function uses the Box-Muller transform method to generate two normally distributed values, transforms them to log-normally distributed values, returns first of them, and saves the second to be returned on the next call.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
float
value FQUALIFIERS float rocrand_log_normal | ( | rocrand_state_mrg31k3p * | state, |
float | mean, | ||
float | stddev | ||
) |
Returns a log-normally distributed float
value.
Generates and returns a log-normally distributed float
value using MRG31k3p generator in state
, and increments position of the generator by one. The function uses the Box-Muller transform method to generate two normally distributed values, transforms them to log-normally distributed values, returns first of them, and saves the second to be returned on the next call.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
float
value FQUALIFIERS float rocrand_log_normal | ( | rocrand_state_mrg32k3a * | state, |
float | mean, | ||
float | stddev | ||
) |
Returns a log-normally distributed float
value.
Generates and returns a log-normally distributed float
value using MRG32k3a generator in state
, and increments position of the generator by one. The function uses the Box-Muller transform method to generate two normally distributed values, transforms them to log-normally distributed values, returns first of them, and saves the second to be returned on the next call.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
float
value FQUALIFIERS float rocrand_log_normal | ( | rocrand_state_xorwow * | state, |
float | mean, | ||
float | stddev | ||
) |
Returns a log-normally distributed float
value.
Generates and returns a log-normally distributed float
value using XORWOW generator in state
, and increments position of the generator by one. The function uses the Box-Muller transform method to generate two normally distributed values, transforms them to log-normally distributed values, returns first of them, and saves the second to be returned on the next call.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
float
value FQUALIFIERS float rocrand_log_normal | ( | rocrand_state_mtgp32 * | state, |
float | mean, | ||
float | stddev | ||
) |
Returns a log-normally distributed float
value.
Generates and returns a log-normally distributed float
value using MTGP32 generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
float
value FQUALIFIERS float rocrand_log_normal | ( | rocrand_state_sobol32 * | state, |
float | mean, | ||
float | stddev | ||
) |
Returns a log-normally distributed float
value.
Generates and returns a log-normally distributed float
value using SOBOL32 generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
float
value FQUALIFIERS float rocrand_log_normal | ( | rocrand_state_scrambled_sobol32 * | state, |
float | mean, | ||
float | stddev | ||
) |
Returns a log-normally distributed float
value.
Generates and returns a log-normally distributed float
value using SCRAMBLED_SOBOL32 generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
float
value FQUALIFIERS float rocrand_log_normal | ( | rocrand_state_sobol64 * | state, |
float | mean, | ||
float | stddev | ||
) |
Returns a log-normally distributed float
value.
Generates and returns a log-normally distributed float
value using SOBOL64 generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
float
value FQUALIFIERS float rocrand_log_normal | ( | rocrand_state_scrambled_sobol64 * | state, |
float | mean, | ||
float | stddev | ||
) |
Returns a log-normally distributed float
value.
Generates and returns a log-normally distributed float
value using SCRAMBLED_SOBOL64 generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
float
value FQUALIFIERS float rocrand_log_normal | ( | rocrand_state_lfsr113 * | state, |
float | mean, | ||
float | stddev | ||
) |
Returns a log-normally distributed float
value.
Generates and returns a log-normally distributed float
value using LFSR113 generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
float
value FQUALIFIERS float rocrand_log_normal | ( | rocrand_state_threefry2x32_20 * | state, |
double | mean, | ||
double | stddev | ||
) |
Returns a log-normally distributed float
value.
Generates and returns a log-normally distributed float
value using ThreeFry generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
float
value FQUALIFIERS float rocrand_log_normal | ( | rocrand_state_threefry2x64_20 * | state, |
double | mean, | ||
double | stddev | ||
) |
Returns a log-normally distributed float
value.
Generates and returns a log-normally distributed float
value using ThreeFry generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
float
value FQUALIFIERS float rocrand_log_normal | ( | rocrand_state_threefry4x32_20 * | state, |
double | mean, | ||
double | stddev | ||
) |
Returns a log-normally distributed float
value.
Generates and returns a log-normally distributed float
value using ThreeFry generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
float
value FQUALIFIERS float rocrand_log_normal | ( | rocrand_state_threefry4x64_20 * | state, |
double | mean, | ||
double | stddev | ||
) |
Returns a log-normally distributed float
value.
Generates and returns a log-normally distributed float
value using ThreeFry generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
float
value FQUALIFIERS float2 rocrand_log_normal2 | ( | rocrand_state_philox4x32_10 * | state, |
float | mean, | ||
float | stddev | ||
) |
Returns two log-normally distributed float
values.
Generates and returns two log-normally distributed float
values using Philox generator in state
, and increments position of the generator by two. The function uses the Box-Muller transform method to generate two normally distributed values, transforms them to log-normally distributed values, and returns both.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
float
value as float2
FQUALIFIERS float2 rocrand_log_normal2 | ( | rocrand_state_mrg31k3p * | state, |
float | mean, | ||
float | stddev | ||
) |
Returns two log-normally distributed float
values.
Generates and returns two log-normally distributed float
values using MRG31k3p generator in state
, and increments position of the generator by two. The function uses the Box-Muller transform method to generate two normally distributed values, transforms them to log-normally distributed values, and returns both.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
float
value as float2
FQUALIFIERS float2 rocrand_log_normal2 | ( | rocrand_state_mrg32k3a * | state, |
float | mean, | ||
float | stddev | ||
) |
Returns two log-normally distributed float
values.
Generates and returns two log-normally distributed float
values using MRG32k3a generator in state
, and increments position of the generator by two. The function uses the Box-Muller transform method to generate two normally distributed values, transforms them to log-normally distributed values, and returns both.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
float
value as float2
FQUALIFIERS float2 rocrand_log_normal2 | ( | rocrand_state_xorwow * | state, |
float | mean, | ||
float | stddev | ||
) |
Returns two log-normally distributed float
values.
Generates and returns two log-normally distributed float
values using XORWOW generator in state
, and increments position of the generator by two. The function uses the Box-Muller transform method to generate two normally distributed values, transforms them to log-normally distributed values, and returns both.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
float
value as float2
FQUALIFIERS float2 rocrand_log_normal2 | ( | rocrand_state_lfsr113 * | state, |
float | mean, | ||
float | stddev | ||
) |
Returns two log-normally distributed float
values.
Generates and returns two log-normally distributed float
values using LFSR113 generator in state
, and increments position of the generator by two. The function uses the Box-Muller transform method to generate two normally distributed values, transforms them to log-normally distributed values, and returns both.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
float
value as float2
FQUALIFIERS float2 rocrand_log_normal2 | ( | rocrand_state_threefry2x32_20 * | state, |
float | mean, | ||
float | stddev | ||
) |
Returns two log-normally distributed float
values.
Generates and returns two log-normally distributed float
values using Threefry generator in state
, and increments position of the generator by two. The function uses the Box-Muller transform method to generate two normally distributed values, transforms them to log-normally distributed values, and returns both.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
float
value as float2
FQUALIFIERS float2 rocrand_log_normal2 | ( | rocrand_state_threefry2x64_20 * | state, |
float | mean, | ||
float | stddev | ||
) |
Returns two log-normally distributed float
values.
Generates and returns two log-normally distributed float
values using Threefry generator in state
, and increments position of the generator by two. The function uses the Box-Muller transform method to generate two normally distributed values, transforms them to log-normally distributed values, and returns both.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
float
value as float2
FQUALIFIERS float2 rocrand_log_normal2 | ( | rocrand_state_threefry4x32_20 * | state, |
float | mean, | ||
float | stddev | ||
) |
Returns two log-normally distributed float
values.
Generates and returns two log-normally distributed float
values using THREEFRY generator in state
, and increments position of the generator by two. The function uses the Box-Muller transform method to generate two normally distributed values, transforms them to log-normally distributed values, and returns both.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
float
value as float2
FQUALIFIERS float2 rocrand_log_normal2 | ( | rocrand_state_threefry4x64_20 * | state, |
float | mean, | ||
float | stddev | ||
) |
Returns two log-normally distributed float
values.
Generates and returns two log-normally distributed float
values using Threefry generator in state
, and increments position of the generator by two. The function uses the Box-Muller transform method to generate two normally distributed values, transforms them to log-normally distributed values, and returns both.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
float
value as float2
FQUALIFIERS float4 rocrand_log_normal4 | ( | rocrand_state_philox4x32_10 * | state, |
float | mean, | ||
float | stddev | ||
) |
Returns four log-normally distributed float
values.
Generates and returns four log-normally distributed float
values using Philox generator in state
, and increments position of the generator by four. The function uses the Box-Muller transform method to generate four normally distributed values, transforms them to log-normally distributed values, and returns them.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
float
value as float4
FQUALIFIERS double rocrand_log_normal_double | ( | rocrand_state_philox4x32_10 * | state, |
double | mean, | ||
double | stddev | ||
) |
Returns a log-normally distributed double
values.
Generates and returns a log-normally distributed double
value using Philox generator in state
, and increments position of the generator by two. The function uses the Box-Muller transform method to generate two normally distributed double
values, transforms them to log-normally distributed double
values, returns first of them, and saves the second to be returned on the next call.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
double
value FQUALIFIERS double rocrand_log_normal_double | ( | rocrand_state_mrg31k3p * | state, |
double | mean, | ||
double | stddev | ||
) |
Returns a log-normally distributed double
value.
Generates and returns a log-normally distributed double
value using MRG31k3p generator in state
, and increments position of the generator by one. The function uses the Box-Muller transform method to generate two normally distributed double
values, transforms them to log-normally distributed double
values, returns first of them, and saves the second to be returned on the next call.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
double
value FQUALIFIERS double rocrand_log_normal_double | ( | rocrand_state_mrg32k3a * | state, |
double | mean, | ||
double | stddev | ||
) |
Returns a log-normally distributed double
value.
Generates and returns a log-normally distributed double
value using MRG32k3a generator in state
, and increments position of the generator by one. The function uses the Box-Muller transform method to generate two normally distributed double
values, transforms them to log-normally distributed double
values, returns first of them, and saves the second to be returned on the next call.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
double
value FQUALIFIERS double rocrand_log_normal_double | ( | rocrand_state_xorwow * | state, |
double | mean, | ||
double | stddev | ||
) |
Returns a log-normally distributed double
value.
Generates and returns a log-normally distributed double
value using XORWOW generator in state
, and increments position of the generator by two. The function uses the Box-Muller transform method to generate two normally distributed double
values, transforms them to log-normally distributed double
values, returns first of them, and saves the second to be returned on the next call.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
double
value FQUALIFIERS double rocrand_log_normal_double | ( | rocrand_state_mtgp32 * | state, |
double | mean, | ||
double | stddev | ||
) |
Returns a log-normally distributed double
value.
Generates and returns a log-normally distributed double
value using MTGP32 generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
double
value FQUALIFIERS double rocrand_log_normal_double | ( | rocrand_state_sobol32 * | state, |
double | mean, | ||
double | stddev | ||
) |
Returns a log-normally distributed double
value.
Generates and returns a log-normally distributed double
value using SOBOL32 generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
double
value FQUALIFIERS double rocrand_log_normal_double | ( | rocrand_state_scrambled_sobol32 * | state, |
double | mean, | ||
double | stddev | ||
) |
Returns a log-normally distributed double
value.
Generates and returns a log-normally distributed double
value using SCRAMBLED_SOBOL32 generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
double
value FQUALIFIERS double rocrand_log_normal_double | ( | rocrand_state_sobol64 * | state, |
double | mean, | ||
double | stddev | ||
) |
Returns a log-normally distributed double
value.
Generates and returns a log-normally distributed double
value using SOBOL64 generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
double
value FQUALIFIERS double rocrand_log_normal_double | ( | rocrand_state_scrambled_sobol64 * | state, |
double | mean, | ||
double | stddev | ||
) |
Returns a log-normally distributed double
value.
Generates and returns a log-normally distributed double
value using SCRAMBLED_SOBOL64 generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
double
value FQUALIFIERS double rocrand_log_normal_double | ( | rocrand_state_lfsr113 * | state, |
double | mean, | ||
double | stddev | ||
) |
Returns a log-normally distributed double
value.
Generates and returns a log-normally distributed double
value using LFSR113 generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
double
value FQUALIFIERS double rocrand_log_normal_double | ( | rocrand_state_threefry2x32_20 * | state, |
double | mean, | ||
double | stddev | ||
) |
Returns a log-normally distributed double
value.
Generates and returns a log-normally distributed double
value using ThreeFry generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
double
value FQUALIFIERS double rocrand_log_normal_double | ( | rocrand_state_threefry2x64_20 * | state, |
double | mean, | ||
double | stddev | ||
) |
Returns a log-normally distributed double
value.
Generates and returns a log-normally distributed double
value using ThreeFry generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
double
value FQUALIFIERS double rocrand_log_normal_double | ( | rocrand_state_threefry4x32_20 * | state, |
double | mean, | ||
double | stddev | ||
) |
Returns a log-normally distributed double
value.
Generates and returns a log-normally distributed double
value using ThreeFry generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
double
value FQUALIFIERS double rocrand_log_normal_double | ( | rocrand_state_threefry4x64_20 * | state, |
double | mean, | ||
double | stddev | ||
) |
Returns a log-normally distributed double
value.
Generates and returns a log-normally distributed double
value using ThreeFry generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
double
value FQUALIFIERS double2 rocrand_log_normal_double2 | ( | rocrand_state_philox4x32_10 * | state, |
double | mean, | ||
double | stddev | ||
) |
Returns two log-normally distributed double
values.
Generates and returns two log-normally distributed double
values using Philox generator in state
, and increments position of the generator by four. The function uses the Box-Muller transform method to generate two normally distributed values, transforms them to log-normally distributed values, and returns both.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
double
values as double2
FQUALIFIERS double2 rocrand_log_normal_double2 | ( | rocrand_state_mrg31k3p * | state, |
double | mean, | ||
double | stddev | ||
) |
Returns two log-normally distributed double
values.
Generates and returns two log-normally distributed double
values using MRG31k3p generator in state
, and increments position of the generator by two. The function uses the Box-Muller transform method to generate two normally distributed values, transforms them to log-normally distributed values, and returns both.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
double
values as double2
FQUALIFIERS double2 rocrand_log_normal_double2 | ( | rocrand_state_mrg32k3a * | state, |
double | mean, | ||
double | stddev | ||
) |
Returns two log-normally distributed double
values.
Generates and returns two log-normally distributed double
values using MRG32k3a generator in state
, and increments position of the generator by two. The function uses the Box-Muller transform method to generate two normally distributed values, transforms them to log-normally distributed values, and returns both.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
double
values as double2
FQUALIFIERS double2 rocrand_log_normal_double2 | ( | rocrand_state_xorwow * | state, |
double | mean, | ||
double | stddev | ||
) |
Returns two log-normally distributed double
values.
Generates and returns two log-normally distributed double
values using XORWOW generator in state
, and increments position of the generator by four. The function uses the Box-Muller transform method to generate two normally distributed values, transforms them to log-normally distributed values, and returns both.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
double
values as double2
FQUALIFIERS double2 rocrand_log_normal_double2 | ( | rocrand_state_lfsr113 * | state, |
double | mean, | ||
double | stddev | ||
) |
Returns two log-normally distributed double
values.
Generates and returns two log-normally distributed double
values using LFSR113 generator in state
, and increments position of the generator by two. The function uses the Box-Muller transform method to generate two normally distributed values, transforms them to log-normally distributed values, and returns both.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
double
values as double2
FQUALIFIERS double2 rocrand_log_normal_double2 | ( | rocrand_state_threefry2x32_20 * | state, |
double | mean, | ||
double | stddev | ||
) |
Returns two log-normally distributed double
values.
Generates and returns two log-normally distributed double
values using Threefry generator in state
, and increments position of the generator by two. The function uses the Box-Muller transform method to generate two normally distributed values, transforms them to log-normally distributed values, and returns both.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
double
values as double2
FQUALIFIERS double2 rocrand_log_normal_double2 | ( | rocrand_state_threefry2x64_20 * | state, |
double | mean, | ||
double | stddev | ||
) |
Returns two log-normally distributed double
values.
Generates and returns two log-normally distributed double
values using Threefry generator in state
, and increments position of the generator by two. The function uses the Box-Muller transform method to generate two normally distributed values, transforms them to log-normally distributed values, and returns both.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
double
values as double2
FQUALIFIERS double2 rocrand_log_normal_double2 | ( | rocrand_state_threefry4x32_20 * | state, |
double | mean, | ||
double | stddev | ||
) |
Returns two log-normally distributed double
values.
Generates and returns two log-normally distributed double
values using Threefry generator in state
, and increments position of the generator by two. The function uses the Box-Muller transform method to generate two normally distributed values, transforms them to log-normally distributed values, and returns both.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
double
values as double2
FQUALIFIERS double2 rocrand_log_normal_double2 | ( | rocrand_state_threefry4x64_20 * | state, |
double | mean, | ||
double | stddev | ||
) |
Returns two log-normally distributed double
values.
Generates and returns two log-normally distributed double
values using Threefry generator in state
, and increments position of the generator by two. The function uses the Box-Muller transform method to generate two normally distributed values, transforms them to log-normally distributed values, and returns both.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
double
values as double2
FQUALIFIERS double4 rocrand_log_normal_double4 | ( | rocrand_state_philox4x32_10 * | state, |
double | mean, | ||
double | stddev | ||
) |
Returns four log-normally distributed double
values.
Generates and returns four log-normally distributed double
values using Philox generator in state
, and increments position of the generator by eight. The function uses the Box-Muller transform method to generate four normally distributed values, transforms them to log-normally distributed values, and returns them.
state | - Pointer to a state to use |
mean | - Mean of the related log-normal distribution |
stddev | - Standard deviation of the related log-normal distribution |
double
values as double4
|
inline |
Loads parameters for MTGP32.
Loads parameters for use by kernel functions on the host-side and copies the results to the specified location in device memory.
NOTE: Not used as rocrand_make_state_mtgp32 handles loading parameters into state.
params | - Pointer to an array of type mtgp32_fast_params in host memory |
p | - Pointer to a mtgp32_params structure allocated in device memory |
|
inline |
Initializes MTGP32 states.
Initializes MTGP32 states on the host-side by allocating a state array in host memory, initializes that array, and copies the result to device memory.
d_state | - Pointer to an array of states in device memory |
params | - Pointer to an array of type mtgp32_fast_params in host memory |
n | - Number of states to initialize |
seed | - Seed value |
FQUALIFIERS void rocrand_mtgp32_block_copy | ( | rocrand_state_mtgp32 * | src, |
rocrand_state_mtgp32 * | dest | ||
) |
Copies MTGP32 state to another state using block of threads.
Copies a MTGP32 state src
to dest
using a block of threads efficiently. Example usage would be:
src | - Pointer to a state to copy from |
dest | - Pointer to a state to copy to |
FQUALIFIERS void rocrand_mtgp32_set_params | ( | rocrand_state_mtgp32 * | state, |
mtgp32_params * | params | ||
) |
Changes parameters of a MTGP32 state.
state | - Pointer to a MTGP32 state |
params | - Pointer to new parameters |
FQUALIFIERS float rocrand_normal | ( | rocrand_state_philox4x32_10 * | state | ) |
Returns a normally distributed float
value.
Generates and returns a normally distributed float
value using Philox generator in state
, and increments position of the generator by one. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f. The function uses the Box-Muller transform method to generate two normally distributed values, returns first of them, and saves the second to be returned on the next call.
state | - Pointer to a state to use |
float
value FQUALIFIERS float rocrand_normal | ( | rocrand_state_mrg31k3p * | state | ) |
Returns a normally distributed float
value.
Generates and returns a normally distributed float
value using MRG31k3p generator in state
, and increments position of the generator by one. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f. The function uses the Box-Muller transform method to generate two normally distributed values, returns first of them, and saves the second to be returned on the next call.
state | - Pointer to a state to use |
float
value FQUALIFIERS float rocrand_normal | ( | rocrand_state_mrg32k3a * | state | ) |
Returns a normally distributed float
value.
Generates and returns a normally distributed float
value using MRG32k3a generator in state
, and increments position of the generator by one. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f. The function uses the Box-Muller transform method to generate two normally distributed values, returns first of them, and saves the second to be returned on the next call.
state | - Pointer to a state to use |
float
value FQUALIFIERS float rocrand_normal | ( | rocrand_state_xorwow * | state | ) |
Returns a normally distributed float
value.
Generates and returns a normally distributed float
value using XORWOW generator in state
, and increments position of the generator by one. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f. The function uses the Box-Muller transform method to generate two normally distributed values, returns first of them, and saves the second to be returned on the next call.
state | - Pointer to a state to use |
float
value FQUALIFIERS float rocrand_normal | ( | rocrand_state_mtgp32 * | state | ) |
Returns a normally distributed float
value.
Generates and returns a normally distributed float
value using MTGP32 generator in state
, and increments position of the generator by one. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f.
state | - Pointer to a state to use |
float
value FQUALIFIERS float rocrand_normal | ( | rocrand_state_sobol32 * | state | ) |
Returns a normally distributed float
value.
Generates and returns a normally distributed float
value using SOBOL32 generator in state
, and increments position of the generator by one. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f.
state | - Pointer to a state to use |
float
value FQUALIFIERS float rocrand_normal | ( | rocrand_state_scrambled_sobol32 * | state | ) |
Returns a normally distributed float
value.
Generates and returns a normally distributed float
value using SCRAMBLED_SOBOL32 generator in state
, and increments position of the generator by one. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f.
state | - Pointer to a state to use |
float
value FQUALIFIERS float rocrand_normal | ( | rocrand_state_sobol64 * | state | ) |
Returns a normally distributed float
value.
Generates and returns a normally distributed float
value using SOBOL64 generator in state
, and increments position of the generator by one. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f.
state | - Pointer to a state to use |
float
value FQUALIFIERS float rocrand_normal | ( | rocrand_state_scrambled_sobol64 * | state | ) |
Returns a normally distributed float
value.
Generates and returns a normally distributed float
value using SCRAMBLED_SOBOL64 generator in state
, and increments position of the generator by one. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f.
state | - Pointer to a state to use |
float
value FQUALIFIERS float rocrand_normal | ( | rocrand_state_lfsr113 * | state | ) |
Returns a normally distributed float
value.
Generates and returns a normally distributed float
value using LFSR113 generator in state
, and increments position of the generator by one. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f.
state | - Pointer to a state to use |
float
value FQUALIFIERS float rocrand_normal | ( | rocrand_state_threefry2x32_20 * | state | ) |
Returns a normally distributed double
value.
Generates and returns a normally distributed float
value using ThreeFry generator in state
, and increments position of the generator by one. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f.
state | - Pointer to a state to use |
float
value FQUALIFIERS float rocrand_normal | ( | rocrand_state_threefry2x64_20 * | state | ) |
Returns a normally distributed double
value.
Generates and returns a normally distributed float
value using ThreeFry generator in state
, and increments position of the generator by one. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f.
state | - Pointer to a state to use |
float
value FQUALIFIERS float rocrand_normal | ( | rocrand_state_threefry4x32_20 * | state | ) |
Returns a normally distributed double
value.
Generates and returns a normally distributed float
value using ThreeFry generator in state
, and increments position of the generator by one. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f.
state | - Pointer to a state to use |
float
value FQUALIFIERS float rocrand_normal | ( | rocrand_state_threefry4x64_20 * | state | ) |
Returns a normally distributed double
value.
Generates and returns a normally distributed float
value using ThreeFry generator in state
, and increments position of the generator by one. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f.
state | - Pointer to a state to use |
float
value FQUALIFIERS float2 rocrand_normal2 | ( | rocrand_state_philox4x32_10 * | state | ) |
Returns two normally distributed float
values.
Generates and returns two normally distributed float
values using Philox generator in state
, and increments position of the generator by two. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f. The function uses the Box-Muller transform method to generate two normally distributed values, and returns both of them.
state | - Pointer to a state to use |
float
value as float2
FQUALIFIERS float2 rocrand_normal2 | ( | rocrand_state_mrg31k3p * | state | ) |
Returns two normally distributed float
values.
Generates and returns two normally distributed float
values using MRG31k3p generator in state
, and increments position of the generator by two. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f. The function uses the Box-Muller transform method to generate two normally distributed values, and returns both of them.
state | - Pointer to a state to use |
float
value as float2
FQUALIFIERS float2 rocrand_normal2 | ( | rocrand_state_mrg32k3a * | state | ) |
Returns two normally distributed float
values.
Generates and returns two normally distributed float
values using MRG32k3a generator in state
, and increments position of the generator by two. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f. The function uses the Box-Muller transform method to generate two normally distributed values, and returns both of them.
state | - Pointer to a state to use |
float
value as float2
FQUALIFIERS float2 rocrand_normal2 | ( | rocrand_state_xorwow * | state | ) |
Returns two normally distributed float
values.
Generates and returns two normally distributed float
values using XORWOW generator in state
, and increments position of the generator by two. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f. The function uses the Box-Muller transform method to generate two normally distributed values, and returns both of them.
state | - Pointer to a state to use |
float
values as float2
FQUALIFIERS float2 rocrand_normal2 | ( | rocrand_state_lfsr113 * | state | ) |
Returns two normally distributed float
values.
Generates and returns two normally distributed float
values using LFSR113 generator in state
, and increments position of the generator by two. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f. The function uses the Box-Muller transform method to generate two normally distributed values, and returns both of them.
state | - Pointer to a state to use |
float
value as float2
FQUALIFIERS float2 rocrand_normal2 | ( | rocrand_state_threefry2x32_20 * | state | ) |
Returns two normally distributed float
values.
Generates and returns two normally distributed float
values using ThreeFry generator in state
, and increments position of the generator by two. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f. The function uses the Box-Muller transform method to generate two normally distributed values, and returns both of them.
state | - Pointer to a state to use |
float
value as float2
FQUALIFIERS float2 rocrand_normal2 | ( | rocrand_state_threefry2x64_20 * | state | ) |
Returns two normally distributed float
values.
Generates and returns two normally distributed float
values using ThreeFry generator in state
, and increments position of the generator by one. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f. The function uses the Box-Muller transform method to generate two normally distributed values, and returns both of them.
state | - Pointer to a state to use |
float
value as float2
FQUALIFIERS float2 rocrand_normal2 | ( | rocrand_state_threefry4x32_20 * | state | ) |
Returns two normally distributed float
values.
Generates and returns two normally distributed float
values using ThreeFry generator in state
, and increments position of the generator by two. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f. The function uses the Box-Muller transform method to generate two normally distributed values, and returns both of them.
state | - Pointer to a state to use |
float
value as float2
FQUALIFIERS float2 rocrand_normal2 | ( | rocrand_state_threefry4x64_20 * | state | ) |
Returns two normally distributed float
values.
Generates and returns two normally distributed float
values using ThreeFry generator in state
, and increments position of the generator by two. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f. The function uses the Box-Muller transform method to generate two normally distributed values, and returns both of them.
state | - Pointer to a state to use |
float
value as float2
FQUALIFIERS float4 rocrand_normal4 | ( | rocrand_state_philox4x32_10 * | state | ) |
Returns four normally distributed float
values.
Generates and returns four normally distributed float
values using Philox generator in state
, and increments position of the generator by four. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f. The function uses the Box-Muller transform method to generate four normally distributed values, and returns them.
state | - Pointer to a state to use |
float
value as float4
FQUALIFIERS double rocrand_normal_double | ( | rocrand_state_philox4x32_10 * | state | ) |
Returns a normally distributed double
value.
Generates and returns a normally distributed double
value using Philox generator in state
, and increments position of the generator by two. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f. The function uses the Box-Muller transform method to generate two normally distributed values, returns first of them, and saves the second to be returned on the next call.
state | - Pointer to a state to use |
double
value FQUALIFIERS double rocrand_normal_double | ( | rocrand_state_mrg31k3p * | state | ) |
Returns a normally distributed double
value.
Generates and returns a normally distributed double
value using MRG31k3p generator in state
, and increments position of the generator by one. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f. The function uses the Box-Muller transform method to generate two normally distributed values, returns first of them, and saves the second to be returned on the next call.
state | - Pointer to a state to use |
double
value FQUALIFIERS double rocrand_normal_double | ( | rocrand_state_mrg32k3a * | state | ) |
Returns a normally distributed double
value.
Generates and returns a normally distributed double
value using MRG32k3a generator in state
, and increments position of the generator by one. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f. The function uses the Box-Muller transform method to generate two normally distributed values, returns first of them, and saves the second to be returned on the next call.
state | - Pointer to a state to use |
double
value FQUALIFIERS double rocrand_normal_double | ( | rocrand_state_xorwow * | state | ) |
Returns a normally distributed double
value.
Generates and returns a normally distributed double
value using XORWOW generator in state
, and increments position of the generator by two. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f. The function uses the Box-Muller transform method to generate two normally distributed values, returns first of them, and saves the second to be returned on the next call.
state | - Pointer to a state to use |
double
value FQUALIFIERS double rocrand_normal_double | ( | rocrand_state_mtgp32 * | state | ) |
Returns a normally distributed double
value.
Generates and returns a normally distributed double
value using MTGP32 generator in state
, and increments position of the generator by one. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f.
state | - Pointer to a state to use |
double
value FQUALIFIERS double rocrand_normal_double | ( | rocrand_state_sobol32 * | state | ) |
Returns a normally distributed double
value.
Generates and returns a normally distributed double
value using SOBOL32 generator in state
, and increments position of the generator by one. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f.
state | - Pointer to a state to use |
double
value FQUALIFIERS double rocrand_normal_double | ( | rocrand_state_scrambled_sobol32 * | state | ) |
Returns a normally distributed double
value.
Generates and returns a normally distributed double
value using SCRAMBLED_SOBOL32 generator in state
, and increments position of the generator by one. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f.
state | - Pointer to a state to use |
double
value FQUALIFIERS double rocrand_normal_double | ( | rocrand_state_sobol64 * | state | ) |
Returns a normally distributed double
value.
Generates and returns a normally distributed double
value using SOBOL64 generator in state
, and increments position of the generator by one. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f.
state | - Pointer to a state to use |
double
value FQUALIFIERS double rocrand_normal_double | ( | rocrand_state_scrambled_sobol64 * | state | ) |
Returns a normally distributed double
value.
Generates and returns a normally distributed double
value using SCRAMBLED_SOBOL64 generator in state
, and increments position of the generator by one. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f.
state | - Pointer to a state to use |
double
value FQUALIFIERS double rocrand_normal_double | ( | rocrand_state_lfsr113 * | state | ) |
Returns a normally distributed double
value.
Generates and returns a normally distributed double
value using LFSR113 generator in state
, and increments position of the generator by one. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f.
state | - Pointer to a state to use |
double
value FQUALIFIERS double rocrand_normal_double | ( | rocrand_state_threefry2x32_20 * | state | ) |
Returns a normally distributed double
value.
Generates and returns a normally distributed double
value using ThreeFry generator in state
, and increments position of the generator by one. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f.
state | - Pointer to a state to use |
double
value FQUALIFIERS double rocrand_normal_double | ( | rocrand_state_threefry2x64_20 * | state | ) |
Returns a normally distributed double
value.
Generates and returns a normally distributed double
value using ThreeFry generator in state
, and increments position of the generator by one. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f.
state | - Pointer to a state to use |
double
value FQUALIFIERS double rocrand_normal_double | ( | rocrand_state_threefry4x32_20 * | state | ) |
Returns a normally distributed double
value.
Generates and returns a normally distributed double
value using ThreeFry generator in state
, and increments position of the generator by one. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f.
state | - Pointer to a state to use |
double
value FQUALIFIERS double rocrand_normal_double | ( | rocrand_state_threefry4x64_20 * | state | ) |
Returns a normally distributed double
value.
Generates and returns a normally distributed double
value using ThreeFry generator in state
, and increments position of the generator by one. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f.
state | - Pointer to a state to use |
double
value FQUALIFIERS double2 rocrand_normal_double2 | ( | rocrand_state_philox4x32_10 * | state | ) |
Returns two normally distributed double
values.
Generates and returns two normally distributed double
values using Philox generator in state
, and increments position of the generator by four. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f. The function uses the Box-Muller transform method to generate two normally distributed values, and returns both of them.
state | - Pointer to a state to use |
double
values as double2
FQUALIFIERS double2 rocrand_normal_double2 | ( | rocrand_state_mrg31k3p * | state | ) |
Returns two normally distributed double
values.
Generates and returns two normally distributed double
values using MRG31k3p generator in state
, and increments position of the generator by two. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f. The function uses the Box-Muller transform method to generate two normally distributed values, and returns both of them.
state | - Pointer to a state to use |
double
value as double2
FQUALIFIERS double2 rocrand_normal_double2 | ( | rocrand_state_mrg32k3a * | state | ) |
Returns two normally distributed double
values.
Generates and returns two normally distributed double
values using MRG32k3a generator in state
, and increments position of the generator by two. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f. The function uses the Box-Muller transform method to generate two normally distributed values, and returns both of them.
state | - Pointer to a state to use |
double
value as double2
FQUALIFIERS double2 rocrand_normal_double2 | ( | rocrand_state_xorwow * | state | ) |
Returns two normally distributed double
values.
Generates and returns two normally distributed double
values using XORWOW generator in state
, and increments position of the generator by four. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f. The function uses the Box-Muller transform method to generate two normally distributed values, and returns both of them.
state | - Pointer to a state to use |
double
value as double2
FQUALIFIERS double2 rocrand_normal_double2 | ( | rocrand_state_lfsr113 * | state | ) |
Returns two normally distributed double
values.
Generates and returns two normally distributed double
values using LFSR113 generator in state
, and increments position of the generator by two. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f. The function uses the Box-Muller transform method to generate two normally distributed values, and returns both of them.
state | - Pointer to a state to use |
double
value as double2
FQUALIFIERS double2 rocrand_normal_double2 | ( | rocrand_state_threefry2x32_20 * | state | ) |
Returns two normally distributed double
values.
Generates and returns two normally distributed double
values using ThreeFry generator in state
, and increments position of the generator by four. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f. The function uses the Box-Muller transform method to generate two normally distributed values, and returns both of them.
state | - Pointer to a state to use |
double
value as double2
FQUALIFIERS double2 rocrand_normal_double2 | ( | rocrand_state_threefry2x64_20 * | state | ) |
Returns two normally distributed double
values.
Generates and returns two normally distributed double
values using ThreeFry generator in state
, and increments position of the generator by two. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f. The function uses the Box-Muller transform method to generate two normally distributed values, and returns both of them.
state | - Pointer to a state to use |
double
value as double2
FQUALIFIERS double2 rocrand_normal_double2 | ( | rocrand_state_threefry4x32_20 * | state | ) |
Returns two normally distributed double
values.
Generates and returns two normally distributed double
values using ThreeFry generator in state
, and increments position of the generator by four. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f. The function uses the Box-Muller transform method to generate two normally distributed values, and returns both of them.
state | - Pointer to a state to use |
double
value as double2
FQUALIFIERS double2 rocrand_normal_double2 | ( | rocrand_state_threefry4x64_20 * | state | ) |
Returns two normally distributed double
values.
Generates and returns two normally distributed double
values using ThreeFry generator in state
, and increments position of the generator by two. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f. The function uses the Box-Muller transform method to generate two normally distributed values, and returns both of them.
state | - Pointer to a state to use |
double
value as double2
FQUALIFIERS double4 rocrand_normal_double4 | ( | rocrand_state_philox4x32_10 * | state | ) |
Returns four normally distributed double
values.
Generates and returns four normally distributed double
values using Philox generator in state
, and increments position of the generator by eight. Used normal distribution has mean value equal to 0.0f, and standard deviation equal to 1.0f. The function uses the Box-Muller transform method to generate four normally distributed values, and returns them.
state | - Pointer to a state to use |
double
values as double4
FQUALIFIERS unsigned int rocrand_poisson | ( | rocrand_state_philox4x32_10 * | state, |
double | lambda | ||
) |
Returns a Poisson-distributed unsigned int
using Philox generator.
Generates and returns Poisson-distributed distributed random unsigned int
values using Philox generator in state
. State is incremented by a variable amount.
state | - Pointer to a state to use |
lambda | - Lambda parameter of the Poisson distribution |
unsigned int
FQUALIFIERS unsigned int rocrand_poisson | ( | rocrand_state_mrg31k3p * | state, |
double | lambda | ||
) |
Returns a Poisson-distributed unsigned int
using MRG31k3p generator.
Generates and returns Poisson-distributed distributed random unsigned int
values using MRG31k3p generator in state
. State is incremented by a variable amount.
state | - Pointer to a state to use |
lambda | - Lambda parameter of the Poisson distribution |
unsigned int
FQUALIFIERS unsigned int rocrand_poisson | ( | rocrand_state_mrg32k3a * | state, |
double | lambda | ||
) |
Returns a Poisson-distributed unsigned int
using MRG32k3a generator.
Generates and returns Poisson-distributed distributed random unsigned int
values using MRG32k3a generator in state
. State is incremented by a variable amount.
state | - Pointer to a state to use |
lambda | - Lambda parameter of the Poisson distribution |
unsigned int
FQUALIFIERS unsigned int rocrand_poisson | ( | rocrand_state_xorwow * | state, |
double | lambda | ||
) |
Returns a Poisson-distributed unsigned int
using XORWOW generator.
Generates and returns Poisson-distributed distributed random unsigned int
values using XORWOW generator in state
. State is incremented by a variable amount.
state | - Pointer to a state to use |
lambda | - Lambda parameter of the Poisson distribution |
unsigned int
FQUALIFIERS unsigned int rocrand_poisson | ( | rocrand_state_mtgp32 * | state, |
double | lambda | ||
) |
Returns a Poisson-distributed unsigned int
using MTGP32 generator.
Generates and returns Poisson-distributed distributed random unsigned int
values using MTGP32 generator in state
. State is incremented by one position.
state | - Pointer to a state to use |
lambda | - Lambda parameter of the Poisson distribution |
unsigned int
FQUALIFIERS unsigned int rocrand_poisson | ( | rocrand_state_sobol32 * | state, |
double | lambda | ||
) |
Returns a Poisson-distributed unsigned int
using SOBOL32 generator.
Generates and returns Poisson-distributed distributed random unsigned int
values using SOBOL32 generator in state
. State is incremented by one position.
state | - Pointer to a state to use |
lambda | - Lambda parameter of the Poisson distribution |
unsigned int
FQUALIFIERS unsigned int rocrand_poisson | ( | rocrand_state_scrambled_sobol32 * | state, |
double | lambda | ||
) |
Returns a Poisson-distributed unsigned int
using SCRAMBLED_SOBOL32 generator.
Generates and returns Poisson-distributed distributed random unsigned int
values using SCRAMBLED_SOBOL32 generator in state
. State is incremented by one position.
state | - Pointer to a state to use |
lambda | - Lambda parameter of the Poisson distribution |
unsigned int
FQUALIFIERS unsigned long long int rocrand_poisson | ( | rocrand_state_sobol64 * | state, |
double | lambda | ||
) |
Returns a Poisson-distributed unsigned long long int
using SOBOL64 generator.
Generates and returns Poisson-distributed distributed random unsigned long long int
values using SOBOL64 generator in state
. State is incremented by one position.
state | - Pointer to a state to use |
lambda | - Lambda parameter of the Poisson distribution |
unsigned long long int
FQUALIFIERS unsigned long long int rocrand_poisson | ( | rocrand_state_scrambled_sobol64 * | state, |
double | lambda | ||
) |
Returns a Poisson-distributed unsigned long long int
using SCRAMBLED_SOBOL64 generator.
Generates and returns Poisson-distributed distributed random unsigned long long int
values using SCRAMBLED_SOBOL64 generator in state
. State is incremented by one position.
state | - Pointer to a state to use |
lambda | - Lambda parameter of the Poisson distribution |
unsigned long long int
FQUALIFIERS unsigned int rocrand_poisson | ( | rocrand_state_lfsr113 * | state, |
double | lambda | ||
) |
Returns a Poisson-distributed unsigned int
using LFSR113 generator.
Generates and returns Poisson-distributed distributed random unsigned int
values using LFSR113 generator in state
. State is incremented by one position.
state | - Pointer to a state to use |
lambda | - Lambda parameter of the Poisson distribution |
unsigned int
FQUALIFIERS unsigned int rocrand_poisson | ( | rocrand_state_threefry2x32_20 * | state, |
double | lambda | ||
) |
Returns a Poisson-distributed unsigned int
using ThreeFry generator.
Generates and returns Poisson-distributed distributed random unsigned int
values using ThreeFry generator in state
. State is incremented by one position.
state | - Pointer to a state to use |
lambda | - Lambda parameter of the Poisson distribution |
unsigned int
FQUALIFIERS unsigned int rocrand_poisson | ( | rocrand_state_threefry2x64_20 * | state, |
double | lambda | ||
) |
Returns a Poisson-distributed unsigned int
using ThreeFry generator.
Generates and returns Poisson-distributed distributed random unsigned int
values using ThreeFry generator in state
. State is incremented by one position.
state | - Pointer to a state to use |
lambda | - Lambda parameter of the Poisson distribution |
unsigned int
FQUALIFIERS unsigned int rocrand_poisson | ( | rocrand_state_threefry4x32_20 * | state, |
double | lambda | ||
) |
Returns a Poisson-distributed unsigned int
using ThreeFry generator.
Generates and returns Poisson-distributed distributed random unsigned int
values using ThreeFry generator in state
. State is incremented by one position.
state | - Pointer to a state to use |
lambda | - Lambda parameter of the Poisson distribution |
unsigned int
FQUALIFIERS unsigned int rocrand_poisson | ( | rocrand_state_threefry4x64_20 * | state, |
double | lambda | ||
) |
Returns a Poisson-distributed unsigned int
using ThreeFry generator.
Generates and returns Poisson-distributed distributed random unsigned int
values using ThreeFry generator in state
. State is incremented by one position.
state | - Pointer to a state to use |
lambda | - Lambda parameter of the Poisson distribution |
unsigned int
FQUALIFIERS uint4 rocrand_poisson4 | ( | rocrand_state_philox4x32_10 * | state, |
double | lambda | ||
) |
Returns four Poisson-distributed unsigned int
values using Philox generator.
Generates and returns Poisson-distributed distributed random unsigned int
values using Philox generator in state
. State is incremented by a variable amount.
state | - Pointer to a state to use |
lambda | - Lambda parameter of the Poisson distribution |
unsigned int
values as uint4
FQUALIFIERS float rocrand_uniform | ( | rocrand_state_philox4x32_10 * | state | ) |
Returns a uniformly distributed random float
value from (0; 1] range.
Generates and returns a uniformly distributed float
value from (0; 1] range (excluding 0.0f
, including 1.0f
) using Philox generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
float
value from (0; 1] range. FQUALIFIERS float rocrand_uniform | ( | rocrand_state_mrg31k3p * | state | ) |
Returns a uniformly distributed random float
value from (0; 1] range.
Generates and returns a uniformly distributed float
value from (0; 1] range (excluding 0.0f
, including 1.0f
) using MRG31K3P generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
float
value from (0; 1] range. FQUALIFIERS float rocrand_uniform | ( | rocrand_state_mrg32k3a * | state | ) |
Returns a uniformly distributed random float
value from (0; 1] range.
Generates and returns a uniformly distributed float
value from (0; 1] range (excluding 0.0f
, including 1.0f
) using MRG32K3A generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
float
value from (0; 1] range. FQUALIFIERS float rocrand_uniform | ( | rocrand_state_xorwow * | state | ) |
Returns a uniformly distributed random float
value from (0; 1] range.
Generates and returns a uniformly distributed float
value from (0; 1] range (excluding 0.0f
, including 1.0f
) using XORWOW generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
float
value from (0; 1] range. FQUALIFIERS float rocrand_uniform | ( | rocrand_state_mtgp32 * | state | ) |
Returns a uniformly distributed random float
value from (0; 1] range.
Generates and returns a uniformly distributed float
value from (0; 1] range (excluding 0.0f
, including 1.0f
) using MTGP32 generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
float
value from (0; 1] range. FQUALIFIERS float rocrand_uniform | ( | rocrand_state_sobol32 * | state | ) |
Returns a uniformly distributed random float
value from (0; 1] range.
Generates and returns a uniformly distributed float
value from (0; 1] range (excluding 0.0f
, including 1.0f
) using SOBOL32 generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
float
value from (0; 1] range. FQUALIFIERS float rocrand_uniform | ( | rocrand_state_scrambled_sobol32 * | state | ) |
Returns a uniformly distributed random float
value from (0; 1] range.
Generates and returns a uniformly distributed float
value from (0; 1] range (excluding 0.0f
, including 1.0f
) using SCRAMBLED_SOBOL32 generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
float
value from (0; 1] range. FQUALIFIERS float rocrand_uniform | ( | rocrand_state_sobol64 * | state | ) |
Returns a uniformly distributed random float
value from (0; 1] range.
Generates and returns a uniformly distributed float
value from (0; 1] range (excluding 0.0
, including 1.0
) using SOBOL64 generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
float
value from (0; 1] range. FQUALIFIERS float rocrand_uniform | ( | rocrand_state_scrambled_sobol64 * | state | ) |
Returns a uniformly distributed random float
value from (0; 1] range.
Generates and returns a uniformly distributed float
value from (0; 1] range (excluding 0.0
, including 1.0
) using SCRAMBLED_SOBOL64 generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
float
value from (0; 1] range. FQUALIFIERS float rocrand_uniform | ( | rocrand_state_lfsr113 * | state | ) |
Returns a uniformly distributed random float
value from (0; 1] range.
Generates and returns a uniformly distributed float
value from (0; 1] range (excluding 0.0f
, including 1.0f
) using LFSR113 generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
float
value from (0; 1] range. FQUALIFIERS float rocrand_uniform | ( | rocrand_state_threefry2x32_20 * | state | ) |
Returns a uniformly distributed random float
value from (0; 1] range.
Generates and returns a uniformly distributed float
value from (0; 1] range (excluding 0.0
, including 1.0
) using ThreeFry generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
float
value from (0; 1] range. FQUALIFIERS float rocrand_uniform | ( | rocrand_state_threefry2x64_20 * | state | ) |
Returns a uniformly distributed random float
value from (0; 1] range.
Generates and returns a uniformly distributed float
value from (0; 1] range (excluding 0.0
, including 1.0
) using ThreeFry generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
float
value from (0; 1] range. FQUALIFIERS float rocrand_uniform | ( | rocrand_state_threefry4x32_20 * | state | ) |
Returns a uniformly distributed random float
value from (0; 1] range.
Generates and returns a uniformly distributed float
value from (0; 1] range (excluding 0.0
, including 1.0
) using ThreeFry generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
float
value from (0; 1] range. FQUALIFIERS float rocrand_uniform | ( | rocrand_state_threefry4x64_20 * | state | ) |
Returns a uniformly distributed random float
value from (0; 1] range.
Generates and returns a uniformly distributed float
value from (0; 1] range (excluding 0.0
, including 1.0
) using ThreeFry generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
float
value from (0; 1] range. FQUALIFIERS float2 rocrand_uniform2 | ( | rocrand_state_philox4x32_10 * | state | ) |
Returns two uniformly distributed random float
values from (0; 1] range.
Generates and returns two uniformly distributed float
values from (0; 1] range (excluding 0.0f
, including 1.0f
) using Philox generator in state
, and increments position of the generator by two.
state | - Pointer to a state to use |
float
values from (0; 1] range as float2
. FQUALIFIERS float4 rocrand_uniform4 | ( | rocrand_state_philox4x32_10 * | state | ) |
Returns four uniformly distributed random float
values from (0; 1] range.
Generates and returns four uniformly distributed float
values from (0; 1] range (excluding 0.0f
, including 1.0f
) using Philox generator in state
, and increments position of the generator by four.
state | - Pointer to a state to use |
float
values from (0; 1] range as float4
. FQUALIFIERS double rocrand_uniform_double | ( | rocrand_state_philox4x32_10 * | state | ) |
Returns a uniformly distributed random double
value from (0; 1] range.
Generates and returns a uniformly distributed double
value from (0; 1] range (excluding 0.0
, including 1.0
) using Philox generator in state
, and increments position of the generator by two.
state | - Pointer to a state to use |
double
value from (0; 1] range. FQUALIFIERS double rocrand_uniform_double | ( | rocrand_state_mrg31k3p * | state | ) |
Returns a uniformly distributed random double
value from (0; 1] range.
Generates and returns a uniformly distributed double
value from (0; 1] range (excluding 0.0
, including 1.0
) using MRG31K3P generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
Note: In this implementation returned double
value is generated from only 32 random bits (one unsigned int
value).
double
value from (0; 1] range. FQUALIFIERS double rocrand_uniform_double | ( | rocrand_state_mrg32k3a * | state | ) |
Returns a uniformly distributed random double
value from (0; 1] range.
Generates and returns a uniformly distributed double
value from (0; 1] range (excluding 0.0
, including 1.0
) using MRG32K3A generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
Note: In this implementation returned double
value is generated from only 32 random bits (one unsigned int
value).
double
value from (0; 1] range. FQUALIFIERS double rocrand_uniform_double | ( | rocrand_state_xorwow * | state | ) |
Returns a uniformly distributed random double
value from (0; 1] range.
Generates and returns a uniformly distributed double
value from (0; 1] range (excluding 0.0
, including 1.0
) using MRG32K3A generator in state
, and increments position of the generator by two.
state | - Pointer to a state to use |
double
value from (0; 1] range. FQUALIFIERS double rocrand_uniform_double | ( | rocrand_state_mtgp32 * | state | ) |
Returns a uniformly distributed random double
value from (0; 1] range.
Generates and returns a uniformly distributed double
value from (0; 1] range (excluding 0.0
, including 1.0
) using MTGP32 generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
Note: In this implementation returned double
value is generated from only 32 random bits (one unsigned int
value).
double
value from (0; 1] range. FQUALIFIERS double rocrand_uniform_double | ( | rocrand_state_sobol32 * | state | ) |
Returns a uniformly distributed random double
value from (0; 1] range.
Generates and returns a uniformly distributed double
value from (0; 1] range (excluding 0.0
, including 1.0
) using SOBOL32 generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
Note: In this implementation returned double
value is generated from only 32 random bits (one unsigned int
value).
double
value from (0; 1] range. FQUALIFIERS double rocrand_uniform_double | ( | rocrand_state_scrambled_sobol32 * | state | ) |
Returns a uniformly distributed random double
value from (0; 1] range.
Generates and returns a uniformly distributed double
value from (0; 1] range (excluding 0.0
, including 1.0
) using SCRAMBLED_SOBOL32 generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
Note: In this implementation returned double
value is generated from only 32 random bits (one unsigned int
value).
double
value from (0; 1] range. FQUALIFIERS double rocrand_uniform_double | ( | rocrand_state_sobol64 * | state | ) |
Returns a uniformly distributed random double
value from (0; 1] range.
Generates and returns a uniformly distributed double
value from (0; 1] range (excluding 0.0
, including 1.0
) using SOBOL64 generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
double
value from (0; 1] range. FQUALIFIERS double rocrand_uniform_double | ( | rocrand_state_scrambled_sobol64 * | state | ) |
Returns a uniformly distributed random double
value from (0; 1] range.
Generates and returns a uniformly distributed double
value from (0; 1] range (excluding 0.0
, including 1.0
) using SCRAMBLED_SOBOL64 generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
double
value from (0; 1] range. FQUALIFIERS double rocrand_uniform_double | ( | rocrand_state_lfsr113 * | state | ) |
Returns a uniformly distributed random double
value from (0; 1] range.
Generates and returns a uniformly distributed double
value from (0; 1] range (excluding 0.0
, including 1.0
) using LFSR113 generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
Note: In this implementation returned double
value is generated from only 32 random bits (one unsigned int
value).
double
value from (0; 1] range. FQUALIFIERS double rocrand_uniform_double | ( | rocrand_state_threefry2x32_20 * | state | ) |
Returns a uniformly distributed random double
value from (0; 1] range.
Generates and returns a uniformly distributed double
value from (0; 1] range (excluding 0.0
, including 1.0
) using ThreeFry generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
Note: In this implementation returned double
value is generated from only 32 random bits (one unsigned int
value).
double
value from (0; 1] range. FQUALIFIERS double rocrand_uniform_double | ( | rocrand_state_threefry2x64_20 * | state | ) |
Returns a uniformly distributed random double
value from (0; 1] range.
Generates and returns a uniformly distributed double
value from (0; 1] range (excluding 0.0
, including 1.0
) using ThreeFry generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
Note: In this implementation returned double
value is generated from only 32 random bits (one unsigned int
value).
double
value from (0; 1] range. FQUALIFIERS double rocrand_uniform_double | ( | rocrand_state_threefry4x32_20 * | state | ) |
Returns a uniformly distributed random double
value from (0; 1] range.
Generates and returns a uniformly distributed double
value from (0; 1] range (excluding 0.0
, including 1.0
) using ThreeFry generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
Note: In this implementation returned double
value is generated from only 32 random bits (one unsigned int
value).
double
value from (0; 1] range. FQUALIFIERS double rocrand_uniform_double | ( | rocrand_state_threefry4x64_20 * | state | ) |
Returns a uniformly distributed random double
value from (0; 1] range.
Generates and returns a uniformly distributed double
value from (0; 1] range (excluding 0.0
, including 1.0
) using ThreeFry generator in state
, and increments position of the generator by one.
state | - Pointer to a state to use |
Note: In this implementation returned double
value is generated from only 32 random bits (one unsigned int
value).
double
value from (0; 1] range. FQUALIFIERS double2 rocrand_uniform_double2 | ( | rocrand_state_philox4x32_10 * | state | ) |
Returns two uniformly distributed random double
values from (0; 1] range.
Generates and returns two uniformly distributed double
values from (0; 1] range (excluding 0.0
, including 1.0
) using Philox generator in state
, and increments position of the generator by four.
state | - Pointer to a state to use |
double
values from (0; 1] range as double2
. FQUALIFIERS double4 rocrand_uniform_double4 | ( | rocrand_state_philox4x32_10 * | state | ) |
Returns four uniformly distributed random double
values from (0; 1] range.
Generates and returns four uniformly distributed double
values from (0; 1] range (excluding 0.0
, including 1.0
) using Philox generator in state
, and increments position of the generator by eight.
state | - Pointer to a state to use |
double
values from (0; 1] range as double4
. FQUALIFIERS void skipahead | ( | unsigned long long | offset, |
rocrand_state_scrambled_sobol64 * | state | ||
) |
Updates scrambled_sobol64 state to skip ahead by offset
elements.
Updates the scrambled_sobol64 state in state
to skip ahead by offset
elements.
offset | - Number of elements to skip |
state | - Pointer to state to update |
FQUALIFIERS void skipahead | ( | unsigned long long | offset, |
rocrand_state_scrambled_sobol32 * | state | ||
) |
Updates SCRAMBLED_SOBOL32 state to skip ahead by offset
elements.
Updates the SCRAMBLED_SOBOL32 state in state
to skip ahead by offset
elements.
offset | - Number of elements to skip |
state | - Pointer to state to update |
FQUALIFIERS void skipahead | ( | unsigned long long | offset, |
rocrand_state_sobol32 * | state | ||
) |
Updates SOBOL32 state to skip ahead by offset
elements.
Updates the SOBOL32 state in state
to skip ahead by offset
elements.
offset | - Number of elements to skip |
state | - Pointer to state to update |
FQUALIFIERS void skipahead | ( | unsigned long long int | offset, |
rocrand_state_sobol64 * | state | ||
) |
Updates sobol64 state to skip ahead by offset
elements.
Updates the sobol64 state in state
to skip ahead by offset
elements.
offset | - Number of elements to skip |
state | - Pointer to state to update |
FQUALIFIERS void skipahead | ( | unsigned long long | offset, |
rocrand_state_xorwow * | state | ||
) |
Updates XORWOW state to skip ahead by offset
elements.
Updates the XORWOW state in state
to skip ahead by offset
elements.
offset | - Number of elements to skip |
state | - Pointer to state to update |
FQUALIFIERS void skipahead | ( | unsigned long long | offset, |
rocrand_state_mrg31k3p * | state | ||
) |
Updates MRG31K3P state to skip ahead by offset
elements.
Updates the MRG31K3P state in state
to skip ahead by offset
elements.
offset | - Number of elements to skip |
state | - Pointer to state to update |
FQUALIFIERS void skipahead | ( | unsigned long long | offset, |
rocrand_state_philox4x32_10 * | state | ||
) |
Updates Philox state to skip ahead by offset
elements.
Updates the Philox generator state in state
to skip ahead by offset
elements.
offset | - Number of elements to skip |
state | - Pointer to state to update |
FQUALIFIERS void skipahead | ( | unsigned long long | offset, |
rocrand_state_mrg32k3a * | state | ||
) |
Updates MRG32K3A state to skip ahead by offset
elements.
Updates the MRG32K3A state in state
to skip ahead by offset
elements.
offset | - Number of elements to skip |
state | - Pointer to state to update |
FQUALIFIERS void skipahead_sequence | ( | unsigned long long | sequence, |
rocrand_state_xorwow * | state | ||
) |
Updates XORWOW state to skip ahead by sequence
sequences.
Updates the XORWOW state
skipping sequence
sequences ahead. For XORWOW each sequence is 2^67 numbers long (equal to the size of a subsequence).
sequence | - Number of sequences to skip |
state | - Pointer to state to update |
FQUALIFIERS void skipahead_sequence | ( | unsigned long long | sequence, |
rocrand_state_mrg31k3p * | state | ||
) |
Updates MRG31K3P state to skip ahead by sequence
sequences.
Updates the MRG31K3P state in state
to skip ahead by sequence
sequences. Each sequence is 2^134 numbers long.
sequence | - Number of sequences to skip |
state | - Pointer to state to update |
FQUALIFIERS void skipahead_sequence | ( | unsigned long long | sequence, |
rocrand_state_philox4x32_10 * | state | ||
) |
Updates Philox state to skip ahead by sequence
sequences.
Updates the Philox generator state in state
skipping sequence
sequences ahead. For Philox each sequence is 4 * 2^64 numbers long (equal to the size of a subsequence).
sequence | - Number of sequences to skip |
state | - Pointer to state to update |
FQUALIFIERS void skipahead_sequence | ( | unsigned long long | sequence, |
rocrand_state_mrg32k3a * | state | ||
) |
Updates MRG32K3A state to skip ahead by sequence
sequences.
Updates the MRG32K3A state in state
to skip ahead by sequence
sequences. Each sequence is 2^127 numbers long.
sequence | - Number of sequences to skip |
state | - Pointer to state to update |
FQUALIFIERS void skipahead_subsequence | ( | unsigned long long | subsequence, |
rocrand_state_xorwow * | state | ||
) |
Updates XORWOW state to skip ahead by subsequence
subsequences.
Updates the XORWOW state
to skip ahead by subsequence
subsequences. Each subsequence is 2^67 numbers long.
subsequence | - Number of subsequences to skip |
state | - Pointer to state to update |
FQUALIFIERS void skipahead_subsequence | ( | unsigned long long | subsequence, |
rocrand_state_mrg31k3p * | state | ||
) |
Updates MRG31K3P state to skip ahead by subsequence
subsequences.
Updates the MRG31K3P state in state
to skip ahead by subsequence
subsequences. Each subsequence is 2^72 numbers long.
subsequence | - Number of subsequences to skip |
state | - Pointer to state to update |
FQUALIFIERS void skipahead_subsequence | ( | unsigned long long | subsequence, |
rocrand_state_philox4x32_10 * | state | ||
) |
Updates Philox state to skip ahead by subsequence
subsequences.
Updates the Philox generator state in state
to skip ahead by subsequence
subsequences. Each subsequence is 4 * 2^64 numbers long.
subsequence | - Number of subsequences to skip |
state | - Pointer to state to update |
FQUALIFIERS void skipahead_subsequence | ( | unsigned long long | subsequence, |
rocrand_state_mrg32k3a * | state | ||
) |
Updates MRG32K3A state to skip ahead by subsequence
subsequences.
Updates the MRG32K3A state in state
to skip ahead by subsequence
subsequences. Each subsequence is 2^76 numbers long.
subsequence | - Number of subsequences to skip |
state | - Pointer to state to update |