Thrust
generate.h
Go to the documentation of this file.
1 /*
2  * Copyright 2008-2013 NVIDIA Corporation
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 
22 #pragma once
23 
24 #include <thrust/detail/config.h>
25 #include <thrust/detail/execution_policy.h>
26 
27 THRUST_NAMESPACE_BEGIN
28 
70 template<typename DerivedPolicy,
71  typename ForwardIterator,
72  typename Generator>
73 __host__ __device__
74  void generate(const thrust::detail::execution_policy_base<DerivedPolicy> &exec,
75  ForwardIterator first,
76  ForwardIterator last,
77  Generator gen);
78 
79 
112 template<typename ForwardIterator,
113  typename Generator>
114  void generate(ForwardIterator first,
115  ForwardIterator last,
116  Generator gen);
117 
118 
155 template<typename DerivedPolicy,
156  typename OutputIterator,
157  typename Size,
158  typename Generator>
159 __host__ __device__
160  OutputIterator generate_n(const thrust::detail::execution_policy_base<DerivedPolicy> &exec,
161  OutputIterator first,
162  Size n,
163  Generator gen);
164 
165 
197 template<typename OutputIterator,
198  typename Size,
199  typename Generator>
200  OutputIterator generate_n(OutputIterator first,
201  Size n,
202  Generator gen);
203 
204 
208 THRUST_NAMESPACE_END
209 
210 #include <thrust/detail/generate.inl>
211 
OutputIterator generate_n(OutputIterator first, Size n, Generator gen)
void generate(ForwardIterator first, ForwardIterator last, Generator gen)