Thrust
Namespaces | Functions
shuffle.h File Reference

Reorders range by a uniform random permutation. More...

#include <thrust/detail/config.h>
#include <thrust/detail/cpp11_required.h>
#include <thrust/detail/execution_policy.h>
#include <thrust/detail/shuffle.inl>

Go to the source code of this file.

Namespaces

 thrust
 thrust is the top-level namespace which contains all Thrust functions and types.
 

Functions

template<typename DerivedPolicy , typename RandomIterator , typename URBG >
__host__ __device__ void thrust::shuffle (const thrust::detail::execution_policy_base< DerivedPolicy > &exec, RandomIterator first, RandomIterator last, URBG &&g)
 
template<typename RandomIterator , typename URBG >
__host__ __device__ void thrust::shuffle (RandomIterator first, RandomIterator last, URBG &&g)
 
template<typename DerivedPolicy , typename RandomIterator , typename OutputIterator , typename URBG >
__host__ __device__ void thrust::shuffle_copy (const thrust::detail::execution_policy_base< DerivedPolicy > &exec, RandomIterator first, RandomIterator last, OutputIterator result, URBG &&g)
 
template<typename RandomIterator , typename OutputIterator , typename URBG >
__host__ __device__ void thrust::shuffle_copy (RandomIterator first, RandomIterator last, OutputIterator result, URBG &&g)
 

Detailed Description

Reorders range by a uniform random permutation.