thrust
Classes | Functions
Random Number Distributions Class Templates

Classes

class  thrust::random::normal_distribution< RealType >
 A normal_distribution random number distribution produces floating point Normally distributed random numbers. More...
 
class  thrust::random::uniform_int_distribution< IntType >
 A uniform_int_distribution random number distribution produces signed or unsigned integer uniform random numbers from a given range. More...
 
class  thrust::random::uniform_real_distribution< RealType >
 A uniform_real_distribution random number distribution produces floating point uniform random numbers from a half-open interval. More...
 

Functions

template<typename RealType >
__host__ __device__ bool thrust::random::operator== (const normal_distribution< RealType > &lhs, const normal_distribution< RealType > &rhs)
 
template<typename RealType >
__host__ __device__ bool thrust::random::operator!= (const normal_distribution< RealType > &lhs, const normal_distribution< RealType > &rhs)
 
template<typename RealType , typename CharT , typename Traits >
std::basic_ostream< CharT,
Traits > & 
thrust::random::operator<< (std::basic_ostream< CharT, Traits > &os, const normal_distribution< RealType > &d)
 
template<typename RealType , typename CharT , typename Traits >
std::basic_istream< CharT,
Traits > & 
thrust::random::operator>> (std::basic_istream< CharT, Traits > &is, normal_distribution< RealType > &d)
 
template<typename IntType >
__host__ __device__ bool thrust::random::operator== (const uniform_int_distribution< IntType > &lhs, const uniform_int_distribution< IntType > &rhs)
 
template<typename IntType >
__host__ __device__ bool thrust::random::operator!= (const uniform_int_distribution< IntType > &lhs, const uniform_int_distribution< IntType > &rhs)
 
template<typename IntType , typename CharT , typename Traits >
std::basic_ostream< CharT,
Traits > & 
thrust::random::operator<< (std::basic_ostream< CharT, Traits > &os, const uniform_int_distribution< IntType > &d)
 
template<typename IntType , typename CharT , typename Traits >
std::basic_istream< CharT,
Traits > & 
thrust::random::operator>> (std::basic_istream< CharT, Traits > &is, uniform_int_distribution< IntType > &d)
 
template<typename RealType >
__host__ __device__ bool thrust::random::operator== (const uniform_real_distribution< RealType > &lhs, const uniform_real_distribution< RealType > &rhs)
 
template<typename RealType >
__host__ __device__ bool thrust::random::operator!= (const uniform_real_distribution< RealType > &lhs, const uniform_real_distribution< RealType > &rhs)
 
template<typename RealType , typename CharT , typename Traits >
std::basic_ostream< CharT,
Traits > & 
thrust::random::operator<< (std::basic_ostream< CharT, Traits > &os, const uniform_real_distribution< RealType > &d)
 
template<typename RealType , typename CharT , typename Traits >
std::basic_istream< CharT,
Traits > & 
thrust::random::operator>> (std::basic_istream< CharT, Traits > &is, uniform_real_distribution< RealType > &d)
 

Detailed Description

Function Documentation

template<typename RealType >
__host__ __device__ bool thrust::random::operator!= ( const uniform_real_distribution< RealType > &  lhs,
const uniform_real_distribution< RealType > &  rhs 
)

This function checks two uniform_real_distributions for inequality.

Parameters
lhsThe first uniform_real_distribution to test.
rhsThe second uniform_real_distribution to test.
Returns
true if lhs is not equal to rhs; false, otherwise.
template<typename RealType >
__host__ __device__ bool thrust::random::operator!= ( const normal_distribution< RealType > &  lhs,
const normal_distribution< RealType > &  rhs 
)

This function checks two normal_distributions for inequality.

Parameters
lhsThe first normal_distribution to test.
rhsThe second normal_distribution to test.
Returns
true if lhs is not equal to rhs; false, otherwise.
template<typename IntType >
__host__ __device__ bool thrust::random::operator!= ( const uniform_int_distribution< IntType > &  lhs,
const uniform_int_distribution< IntType > &  rhs 
)

This function checks two uniform_int_distributions for inequality.

Parameters
lhsThe first uniform_int_distribution to test.
rhsThe second uniform_int_distribution to test.
Returns
true if lhs is not equal to rhs; false, otherwise.
template<typename RealType , typename CharT , typename Traits >
std::basic_ostream<CharT,Traits>& thrust::random::operator<< ( std::basic_ostream< CharT, Traits > &  os,
const uniform_real_distribution< RealType > &  d 
)

This function streams a uniform_real_distribution to a std::basic_ostream.

Parameters
osThe basic_ostream to stream out to.
dThe uniform_real_distribution to stream out.
Returns
os
template<typename RealType , typename CharT , typename Traits >
std::basic_ostream<CharT,Traits>& thrust::random::operator<< ( std::basic_ostream< CharT, Traits > &  os,
const normal_distribution< RealType > &  d 
)

This function streams a normal_distribution to a std::basic_ostream.

Parameters
osThe basic_ostream to stream out to.
dThe normal_distribution to stream out.
Returns
os
template<typename IntType , typename CharT , typename Traits >
std::basic_ostream<CharT,Traits>& thrust::random::operator<< ( std::basic_ostream< CharT, Traits > &  os,
const uniform_int_distribution< IntType > &  d 
)

This function streams a uniform_int_distribution to a std::basic_ostream.

Parameters
osThe basic_ostream to stream out to.
dThe uniform_int_distribution to stream out.
Returns
os
template<typename RealType >
__host__ __device__ bool thrust::random::operator== ( const uniform_real_distribution< RealType > &  lhs,
const uniform_real_distribution< RealType > &  rhs 
)

This function checks two uniform_real_distributions for equality.

Parameters
lhsThe first uniform_real_distribution to test.
rhsThe second uniform_real_distribution to test.
Returns
true if lhs is equal to rhs; false, otherwise.
template<typename RealType >
__host__ __device__ bool thrust::random::operator== ( const normal_distribution< RealType > &  lhs,
const normal_distribution< RealType > &  rhs 
)

This function checks two normal_distributions for equality.

Parameters
lhsThe first normal_distribution to test.
rhsThe second normal_distribution to test.
Returns
true if lhs is equal to rhs; false, otherwise.
template<typename IntType >
__host__ __device__ bool thrust::random::operator== ( const uniform_int_distribution< IntType > &  lhs,
const uniform_int_distribution< IntType > &  rhs 
)

This function checks two uniform_int_distributions for equality.

Parameters
lhsThe first uniform_int_distribution to test.
rhsThe second uniform_int_distribution to test.
Returns
true if lhs is equal to rhs; false, otherwise.
template<typename RealType , typename CharT , typename Traits >
std::basic_istream<CharT,Traits>& thrust::random::operator>> ( std::basic_istream< CharT, Traits > &  is,
uniform_real_distribution< RealType > &  d 
)

This function streams a uniform_real_distribution in from a std::basic_istream.

Parameters
isThe basic_istream to stream from.
dThe uniform_real_distribution to stream in.
Returns
is
template<typename RealType , typename CharT , typename Traits >
std::basic_istream<CharT,Traits>& thrust::random::operator>> ( std::basic_istream< CharT, Traits > &  is,
normal_distribution< RealType > &  d 
)

This function streams a normal_distribution in from a std::basic_istream.

Parameters
isThe basic_istream to stream from.
dThe normal_distribution to stream in.
Returns
is
template<typename IntType , typename CharT , typename Traits >
std::basic_istream<CharT,Traits>& thrust::random::operator>> ( std::basic_istream< CharT, Traits > &  is,
uniform_int_distribution< IntType > &  d 
)

This function streams a uniform_int_distribution in from a std::basic_istream.

Parameters
isThe basic_istream to stream from.
dThe uniform_int_distribution to stream in.
Returns
is