thrust
Classes | Functions
Random Number Engine Class Templates

Classes

class  thrust::random::linear_congruential_engine< UIntType, a, c, m >
 A linear_congruential_engine random number engine produces unsigned integer random numbers using a linear congruential random number generation algorithm. More...
 
class  thrust::random::linear_feedback_shift_engine< UIntType, w, k, q, s >
 A linear_feedback_shift_engine random number engine produces unsigned integer random values using a linear feedback shift random number generation algorithm. More...
 
class  thrust::random::subtract_with_carry_engine< UIntType, w, s, r >
 A subtract_with_carry_engine random number engine produces unsigned integer random numbers using the subtract with carry algorithm of Marsaglia & Zaman. More...
 

Functions

template<typename UIntType_ , UIntType_ a_, UIntType_ c_, UIntType_ m_>
__host__ __device__ bool thrust::random::operator== (const linear_congruential_engine< UIntType_, a_, c_, m_ > &lhs, const linear_congruential_engine< UIntType_, a_, c_, m_ > &rhs)
 
template<typename UIntType_ , UIntType_ a_, UIntType_ c_, UIntType_ m_>
__host__ __device__ bool thrust::random::operator!= (const linear_congruential_engine< UIntType_, a_, c_, m_ > &lhs, const linear_congruential_engine< UIntType_, a_, c_, m_ > &rhs)
 
template<typename UIntType_ , UIntType_ a_, UIntType_ c_, UIntType_ m_, typename CharT , typename Traits >
std::basic_ostream< CharT, Traits > & thrust::random::operator<< (std::basic_ostream< CharT, Traits > &os, const linear_congruential_engine< UIntType_, a_, c_, m_ > &e)
 
template<typename UIntType_ , UIntType_ a_, UIntType_ c_, UIntType_ m_, typename CharT , typename Traits >
std::basic_istream< CharT, Traits > & thrust::random::operator>> (std::basic_istream< CharT, Traits > &is, linear_congruential_engine< UIntType_, a_, c_, m_ > &e)
 
template<typename UIntType_ , size_t w_, size_t k_, size_t q_, size_t s_>
__host__ __device__ bool thrust::random::operator== (const linear_feedback_shift_engine< UIntType_, w_, k_, q_, s_ > &lhs, const linear_feedback_shift_engine< UIntType_, w_, k_, q_, s_ > &rhs)
 
template<typename UIntType_ , size_t w_, size_t k_, size_t q_, size_t s_>
__host__ __device__ bool thrust::random::operator!= (const linear_feedback_shift_engine< UIntType_, w_, k_, q_, s_ > &lhs, const linear_feedback_shift_engine< UIntType_, w_, k_, q_, s_ > &rhs)
 
template<typename UIntType_ , size_t w_, size_t k_, size_t q_, size_t s_, typename CharT , typename Traits >
std::basic_ostream< CharT, Traits > & thrust::random::operator<< (std::basic_ostream< CharT, Traits > &os, const linear_feedback_shift_engine< UIntType_, w_, k_, q_, s_ > &e)
 
template<typename UIntType_ , size_t w_, size_t k_, size_t q_, size_t s_, typename CharT , typename Traits >
std::basic_istream< CharT, Traits > & thrust::random::operator>> (std::basic_istream< CharT, Traits > &is, linear_feedback_shift_engine< UIntType_, w_, k_, q_, s_ > &e)
 
template<typename UIntType_ , size_t w_, size_t s_, size_t r_>
__host__ __device__ bool thrust::random::operator== (const subtract_with_carry_engine< UIntType_, w_, s_, r_ > &lhs, const subtract_with_carry_engine< UIntType_, w_, s_, r_ > &rhs)
 
template<typename UIntType_ , size_t w_, size_t s_, size_t r_>
__host__ __device__ bool thrust::random::operator!= (const subtract_with_carry_engine< UIntType_, w_, s_, r_ > &lhs, const subtract_with_carry_engine< UIntType_, w_, s_, r_ > &rhs)
 
template<typename UIntType_ , size_t w_, size_t s_, size_t r_, typename CharT , typename Traits >
std::basic_ostream< CharT, Traits > & thrust::random::operator<< (std::basic_ostream< CharT, Traits > &os, const subtract_with_carry_engine< UIntType_, w_, s_, r_ > &e)
 
template<typename UIntType_ , size_t w_, size_t s_, size_t r_, typename CharT , typename Traits >
std::basic_istream< CharT, Traits > & thrust::random::operator>> (std::basic_istream< CharT, Traits > &is, subtract_with_carry_engine< UIntType_, w_, s_, r_ > &e)
 

Detailed Description