Bolt  1.3
C++ template library with support for OpenCL
transform_scan.h
Go to the documentation of this file.
1 /***************************************************************************
2 * © 2012,2014 Advanced Micro Devices, Inc. All rights reserved.
3 *
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
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
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.
15 
16 ***************************************************************************/
17 
18 #if !defined( BOLT_CL_TRANSFORM_SCAN_H )
19 #define BOLT_CL_TRANSFORM_SCAN_H
20 #pragma once
21 
22 #include "bolt/cl/device_vector.h"
23 
24 
28 namespace bolt
29 {
30 namespace cl
31 {
32 
89 template<
90  typename InputIterator,
91  typename OutputIterator,
92  typename UnaryFunction,
93  typename BinaryFunction>
94 OutputIterator
96  bolt::cl::control &ctl,
97  InputIterator first,
98  InputIterator last,
99  OutputIterator result,
100  UnaryFunction unary_op,
101  BinaryFunction binary_op,
102  const std::string& user_code="" );
103 
104 template<
105  typename InputIterator,
106  typename OutputIterator,
107  typename UnaryFunction,
108  typename BinaryFunction>
109 OutputIterator
111  InputIterator first,
112  InputIterator last,
113  OutputIterator result,
114  UnaryFunction unary_op,
115  BinaryFunction binary_op,
116  const std::string& user_code="" );
117 
118 
119 
166 template<
167  typename InputIterator,
168  typename OutputIterator,
169  typename UnaryFunction,
170  typename T,
171  typename BinaryFunction>
172 OutputIterator
174  bolt::cl::control &ctl,
175  InputIterator first,
176  InputIterator last,
177  OutputIterator result,
178  UnaryFunction unary_op,
179  T init,
180  BinaryFunction binary_op,
181  const std::string& user_code="" );
182 
183 template<
184  typename InputIterator,
185  typename OutputIterator,
186  typename UnaryFunction,
187  typename T,
188  typename BinaryFunction>
189 OutputIterator
191  InputIterator first,
192  InputIterator last,
193  OutputIterator result,
194  UnaryFunction unary_op,
195  T init,
196  BinaryFunction binary_op,
197  const std::string& user_code="" );
198 
199 
201 }// end of bolt::cl namespace
202 }// end of bolt namespace
203 
204 #include <bolt/cl/detail/transform_scan.inl>
205 
206 #endif