thrust::make_permutation_iterator#
-
template<typename ElementIterator, typename IndexIterator>
permutation_iterator<ElementIterator, IndexIterator> thrust::make_permutation_iterator( - ElementIterator e,
- IndexIterator i,
make_permutation_iteratorcreates apermutation_iteratorfrom anElementIteratorpointing to a range of elements to “permute” and anIndexIteratorpointing to a range of indices defining an indexing scheme on the values.See also
- Parameters:
e – An
ElementIteratorpointing to a range of values.i – An
IndexIteratorpointing to an indexing scheme to use one.
- Returns:
A new
permutation_iteratorwhich permutes the rangeebyi.