| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
|
|
| #pragma once |
|
|
| #include <thrust/detail/config.h> |
|
|
| #if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC) |
| # pragma GCC system_header |
| #elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG) |
| # pragma clang system_header |
| #elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_MSVC) |
| # pragma system_header |
| #endif |
| #include <thrust/system/detail/generic/tag.h> |
| #include <thrust/iterator/iterator_traits.h> |
|
|
| THRUST_NAMESPACE_BEGIN |
| namespace system |
| { |
| namespace detail |
| { |
| namespace generic |
| { |
|
|
|
|
| template<typename DerivedPolicy, typename InputIterator> |
| __host__ __device__ |
| typename thrust::iterator_traits<InputIterator>::value_type |
| reduce(thrust::execution_policy<DerivedPolicy> &exec, InputIterator first, InputIterator last); |
|
|
|
|
| template<typename DerivedPolicy, typename InputIterator, typename T> |
| __host__ __device__ |
| T reduce(thrust::execution_policy<DerivedPolicy> &exec, InputIterator first, InputIterator last, T init); |
|
|
|
|
| template<typename DerivedPolicy, |
| typename InputIterator, |
| typename T, |
| typename BinaryFunction> |
| __host__ __device__ |
| T reduce(thrust::execution_policy<DerivedPolicy> &exec, InputIterator first, InputIterator last, T init, BinaryFunction binary_op); |
|
|
|
|
| } |
| } |
| } |
| THRUST_NAMESPACE_END |
|
|
| #include <thrust/system/detail/generic/reduce.inl> |
|
|
|
|