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

Applies a binary function to each pair of elements from two input sequences. More...

#include <bolt/cl/bolt.h>
#include <bolt/cl/device_vector.h>
#include <string>
#include <iostream>
#include <bolt/cl/detail/transform.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 InputIterator , typename OutputIterator , typename UnaryFunction >
void bolt::cl::transform (::bolt::cl::control &ctl, InputIterator first, InputIterator last, OutputIterator result, UnaryFunction op, const std::string &user_code="")
 This version of transform applies a unary operation on input sequences and stores the result in the corresponding position in an output sequence.The input and output sequences can coincide, resulting in an in-place transformation.
 
template<typename InputIterator , typename OutputIterator , typename UnaryFunction >
void bolt::cl::transform (InputIterator first, InputIterator last, OutputIterator result, UnaryFunction op, const std::string &user_code="")
 
template<typename InputIterator1 , typename InputIterator2 , typename OutputIterator , typename BinaryFunction >
void bolt::cl::transform (bolt::cl::control &ctl, InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, OutputIterator result, BinaryFunction op, const std::string &user_code="")
 This version of transform applies a binary function to each pair of elements from two input sequences and stores the result in the corresponding position in an output sequence. The input and output sequences can coincide, resulting in an in-place transformation.
 
template<typename InputIterator1 , typename InputIterator2 , typename OutputIterator , typename BinaryFunction >
void bolt::cl::transform (InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, OutputIterator result, BinaryFunction op, const std::string &user_code="")
 

Detailed Description

Applies a binary function to each pair of elements from two input sequences.