2 * Copyright 2008-2013 NVIDIA Corporation
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 * \brief A fast scan for primitive types.
37 template <typename ExecutionPolicy,
38 typename InputIterator,
39 typename OutputIterator,
40 typename BinaryFunction>
41 OutputIterator inclusive_scan(execution_policy<ExecutionPolicy> &exec,
44 OutputIterator output,
45 BinaryFunction binary_op);
47 template <typename ExecutionPolicy,
48 typename InputIterator,
49 typename OutputIterator,
51 typename BinaryFunction>
52 OutputIterator exclusive_scan(execution_policy<ExecutionPolicy> &exec,
55 OutputIterator output,
57 BinaryFunction binary_op);
59 } // end namespace fast_scan
60 } // end namespace detail
61 } // end namespace detail
62 } // end namespace cuda
63 } // end namespace system
64 } // end namespace thrust
66 #include "fast_scan.inl"