Bolt  1.3
C++ template library with support for OpenCL
Namespaces | Functions
generate.h File Reference

Generate assigns to each element of a sequence [first,last]. More...

#include <bolt/amp/bolt.h>
#include <bolt/amp/device_vector.h>
#include <string>
#include <iostream>
#include <bolt/amp/detail/generate.inl>

Go to the source code of this file.

Namespaces

namespace  bolt
 Defining namespace for the Bolt project.
 
namespace  bolt::amp
 Namespace containing AMP related data types and functions.
 

Functions

template<typename ForwardIterator , typename Generator >
void bolt::amp::generate (bolt::amp::control &ctl, ForwardIterator first, ForwardIterator last, const Generator &gen)
 generate assigns to each element of a sequence [first,last] the value returned by gen.
 
template<typename ForwardIterator , typename Generator >
void bolt::amp::generate (ForwardIterator first, ForwardIterator last, const Generator &gen)
 
template<typename OutputIterator , typename Size , typename Generator >
OutputIterator bolt::amp::generate_n (bolt::amp::control &ctl, OutputIterator first, Size n, const Generator &gen)
 generate_n assigns to each element of a sequence [first,first+n] the value returned by gen.
 
template<typename OutputIterator , typename Size , typename Generator >
OutputIterator bolt::amp::generate_n (OutputIterator first, Size n, const Generator &gen)
 

Detailed Description

Generate assigns to each element of a sequence [first,last].