Bolt
1.1
C++ template library with support for OpenCL
|
Generate assigns to each element of a sequence [first,last]. More...
#include <bolt/cl/bolt.h>
#include <bolt/cl/device_vector.h>
#include <string>
#include <iostream>
#include <bolt/cl/detail/generate.inl>
Go to the source code of this file.
Namespaces | |
namespace | bolt |
Defining namespace for the Bolt project. | |
namespace | bolt::cl |
Namespace containing OpenCL related data types and functions. | |
Functions | |
template<typename ForwardIterator , typename Generator > | |
void | bolt::cl::generate (bolt::cl::control &ctl, ForwardIterator first, ForwardIterator last, Generator gen, const std::string &cl_code="") |
generate assigns to each element of a sequence [first,last] the value returned by gen. | |
template<typename ForwardIterator , typename Generator > | |
void | bolt::cl::generate (ForwardIterator first, ForwardIterator last, Generator gen, const std::string &cl_code="") |
template<typename OutputIterator , typename Size , typename Generator > | |
OutputIterator | bolt::cl::generate_n (bolt::cl::control &ctl, OutputIterator first, Size n, Generator gen, const std::string &cl_code="") |
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::cl::generate_n (OutputIterator first, Size n, Generator gen, const std::string &cl_code="") |
Generate assigns to each element of a sequence [first,last].