thrust::make_permutation_iterator
Defined in thrust/iterator/permutation_iterator.h
-
template<typename ElementIterator, typename IndexIterator>
permutation_iterator<ElementIterator, IndexIterator> thrust::make_permutation_iterator(ElementIterator e, IndexIterator i) make_permutation_iterator
creates apermutation_iterator
from anElementIterator
pointing to a range of elements to “permute” and anIndexIterator
pointing to a range of indices defining an indexing scheme on the values.See also
- Parameters
e – An
ElementIterator
pointing to a range of values.i – An
IndexIterator
pointing to an indexing scheme to use one
.
- Returns
A new
permutation_iterator
which permutes the rangee
byi
.