| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
|
|
| #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> |
|
|
| THRUST_NAMESPACE_BEGIN |
| namespace system |
| { |
| namespace detail |
| { |
| namespace generic |
| { |
|
|
|
|
| template<typename ExecutionPolicy, |
| typename InputIterator, |
| typename OutputIterator> |
| __host__ __device__ |
| OutputIterator inclusive_scan(thrust::execution_policy<ExecutionPolicy> &exec, |
| InputIterator first, |
| InputIterator last, |
| OutputIterator result); |
|
|
|
|
| |
| template<typename ExecutionPolicy, |
| typename InputIterator, |
| typename OutputIterator, |
| typename BinaryFunction> |
| __host__ __device__ |
| OutputIterator inclusive_scan(thrust::execution_policy<ExecutionPolicy> &exec, |
| InputIterator first, |
| InputIterator last, |
| OutputIterator result, |
| BinaryFunction binary_op); |
|
|
|
|
| template<typename ExecutionPolicy, |
| typename InputIterator, |
| typename OutputIterator> |
| __host__ __device__ |
| OutputIterator exclusive_scan(thrust::execution_policy<ExecutionPolicy> &exec, |
| InputIterator first, |
| InputIterator last, |
| OutputIterator result); |
|
|
|
|
| template<typename ExecutionPolicy, |
| typename InputIterator, |
| typename OutputIterator, |
| typename T> |
| __host__ __device__ |
| OutputIterator exclusive_scan(thrust::execution_policy<ExecutionPolicy> &exec, |
| InputIterator first, |
| InputIterator last, |
| OutputIterator result, |
| T init); |
|
|
|
|
| |
| template<typename ExecutionPolicy, |
| typename InputIterator, |
| typename OutputIterator, |
| typename T, |
| typename BinaryFunction> |
| __host__ __device__ |
| OutputIterator exclusive_scan(thrust::execution_policy<ExecutionPolicy> &exec, |
| InputIterator first, |
| InputIterator last, |
| OutputIterator result, |
| T init, |
| BinaryFunction binary_op); |
|
|
|
|
| } |
| } |
| } |
| THRUST_NAMESPACE_END |
|
|
| #include <thrust/system/detail/generic/scan.inl> |
|
|
|
|