Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ Summary
Small bug fixes

New Examples
range_view demonstrates use of a view: a non-owning wrapper for an iterator range with a container-like interface


range_view demonstrates use of a view: a non-owning wrapper for an iterator range with a container-like interface

Bug Fixes
TODO
copy_if now copies in a user provided stream instead of a default_stream
{min,max,minmax}_element can now accept raw device pointer with device execution policy

#######################################
# Thrust v1.8.2 #
Expand Down
6 changes: 3 additions & 3 deletions thrust/system/detail/generic/extrema.inl
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ ForwardIterator min_element(thrust::execution_policy<DerivedPolicy> &exec,
(exec,
thrust::make_zip_iterator(thrust::make_tuple(first, thrust::counting_iterator<IndexType>(0))),
thrust::make_zip_iterator(thrust::make_tuple(first, thrust::counting_iterator<IndexType>(0))) + (last - first),
thrust::tuple<InputType, IndexType>(*first, 0),
thrust::tuple<InputType, IndexType>(get_value(derived_cast(exec), &first[0]), 0),
detail::min_element_reduction<InputType, IndexType, BinaryPredicate>(comp));

return first + thrust::get<1>(result);
Expand Down Expand Up @@ -209,7 +209,7 @@ ForwardIterator max_element(thrust::execution_policy<DerivedPolicy> &exec,
(exec,
thrust::make_zip_iterator(thrust::make_tuple(first, thrust::counting_iterator<IndexType>(0))),
thrust::make_zip_iterator(thrust::make_tuple(first, thrust::counting_iterator<IndexType>(0))) + (last - first),
thrust::tuple<InputType, IndexType>(*first, 0),
thrust::tuple<InputType, IndexType>(get_value(derived_cast(exec),&first[0]), 0),
detail::max_element_reduction<InputType, IndexType, BinaryPredicate>(comp));

return first + thrust::get<1>(result);
Expand Down Expand Up @@ -247,7 +247,7 @@ thrust::pair<ForwardIterator,ForwardIterator> minmax_element(thrust::execution_p
thrust::make_zip_iterator(thrust::make_tuple(first, thrust::counting_iterator<IndexType>(0))),
thrust::make_zip_iterator(thrust::make_tuple(first, thrust::counting_iterator<IndexType>(0))) + (last - first),
detail::duplicate_tuple<InputType, IndexType>(),
detail::duplicate_tuple<InputType, IndexType>()(thrust::tuple<InputType, IndexType>(*first, 0)),
detail::duplicate_tuple<InputType, IndexType>()(thrust::tuple<InputType, IndexType>(get_value(derived_cast(exec),&first[0]), 0)),
detail::minmax_element_reduction<InputType, IndexType, BinaryPredicate>(comp));

return thrust::make_pair(first + thrust::get<1>(thrust::get<0>(result)), first + thrust::get<1>(thrust::get<1>(result)));
Expand Down