Bolt  1.3
C++ template library with support for OpenCL
scatter.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_AMP_SCATTER_H )
19 #define BOLT_AMP_SCATTER_H
20 #pragma once
21 
22 #include "bolt/amp/device_vector.h"
23 
24 
30 namespace bolt {
31  namespace amp {
76  template< typename InputIterator1,
77  typename InputIterator2,
78  typename OutputIterator >
79  void scatter( ::bolt::amp::control &ctl,
80  InputIterator1 first,
81  InputIterator1 last,
82  InputIterator2 map,
83  OutputIterator result );
84 
85  template< typename InputIterator1,
86  typename InputIterator2,
87  typename OutputIterator >
88  void scatter( InputIterator1 first,
89  InputIterator1 last1,
90  InputIterator2 map,
91  OutputIterator result );
92 
128  template< typename InputIterator1,
129  typename InputIterator2,
130  typename InputIterator3,
131  typename OutputIterator >
132  void scatter_if( bolt::amp::control &ctl,
133  InputIterator1 first1,
134  InputIterator1 last1,
135  InputIterator2 map,
136  InputIterator3 stencil,
137  OutputIterator result );
138 
139  template< typename InputIterator1,
140  typename InputIterator2,
141  typename InputIterator3,
142  typename OutputIterator >
143  void scatter_if( InputIterator1 first1,
144  InputIterator1 last1,
145  InputIterator2 map,
146  InputIterator3 stencil,
147  OutputIterator result);
148 
194  template< typename InputIterator1,
195  typename InputIterator2,
196  typename InputIterator3,
197  typename OutputIterator,
198  typename Predicate >
199  void scatter_if( bolt::amp::control &ctl,
200  InputIterator1 first1,
201  InputIterator1 last1,
202  InputIterator2 map,
203  InputIterator3 stencil,
204  OutputIterator result,
205  Predicate pred);
206 
207  template< typename InputIterator1,
208  typename InputIterator2,
209  typename InputIterator3,
210  typename OutputIterator,
211  typename Predicate >
212  void scatter_if( InputIterator1 first1,
213  InputIterator1 last1,
214  InputIterator2 map,
215  InputIterator3 stencil,
216  OutputIterator result,
217  Predicate pred);
218 
219 
221  };
222 };
223 
224 #include <bolt/amp/detail/scatter.inl>
225 #endif