Bolt
1.1
C++ template library with support for OpenCL
|
Functions | |
template<typename InputIterator1 , typename InputIterator2 , typename OutputIterator > | |
OutputIterator | bolt::cl::merge (InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2, OutputIterator result, const std::string &cl_code="") |
merge returns the result of combining the two sorted range [first1, last1] and [first2, last2] in to a single sorted range [result , result + (last1-first1) + ( last2-first2)] | |
template<typename InputIterator1 , typename InputIterator2 , typename OutputIterator > | |
OutputIterator | bolt::cl::merge (bolt::cl::control &ctl, InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2, OutputIterator result, const std::string &cl_code="") |
template<typename InputIterator1 , typename InputIterator2 , typename OutputIterator , typename StrictWeakCompare > | |
OutputIterator | bolt::cl::merge (InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2, OutputIterator result, StrictWeakCompare comp, const std::string &cl_code="") |
merge returns the result of combining the two sorted range [first1, last1] and [first2, last2] in to a single sorted range [result , result + (last1-first1) + ( last2-first2)] | |
template<typename InputIterator1 , typename InputIterator2 , typename OutputIterator , typename StrictWeakCompare > | |
OutputIterator | bolt::cl::merge (bolt::cl::control &ctl, InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2, OutputIterator result, StrictWeakCompare comp, const std::string &cl_code="") |
OutputIterator bolt::cl::merge | ( | InputIterator1 | first1, |
InputIterator1 | last1, | ||
InputIterator2 | first2, | ||
InputIterator2 | last2, | ||
OutputIterator | result, | ||
const std::string & | cl_code = "" |
||
) |
merge
returns the result of combining the two sorted range [first1, last1] and [first2, last2] in to a single sorted range [result , result + (last1-first1) + ( last2-first2)]
The merge
operation is similar the std::merge function
ctl | Optional Control structure to control command-queue, debug, tuning. |
first1 | The beginning of the first input range. |
last1 | The end of the first input range. |
first2 | The beginning of the second input range. |
last2 | The end of the second input range. |
cl_code | Optional OpenCL(TM) code to be passed to the OpenCL compiler. The cl_code is inserted first in the generated code, before the cl_code trait. |
InputIterator1 | An iterator that can be dereferenced for an object, and can be incremented to get to the next element in a sequence. |
InputIterator2 | An iterator that can be dereferenced for an object, and can be incremented to get to the next element in a sequence. |
OutputIteratoris | a model of Output Iterator |
The following code example shows the use of merge
operator.
OutputIterator bolt::cl::merge | ( | InputIterator1 | first1, |
InputIterator1 | last1, | ||
InputIterator2 | first2, | ||
InputIterator2 | last2, | ||
OutputIterator | result, | ||
StrictWeakCompare | comp, | ||
const std::string & | cl_code = "" |
||
) |
merge
returns the result of combining the two sorted range [first1, last1] and [first2, last2] in to a single sorted range [result , result + (last1-first1) + ( last2-first2)]
The merge
operation is similar the std::merge function
ctl | Optional Control structure to control command-queue, debug, tuning. |
first1 | The beginning of the first input range. |
last1 | The end of the first input range. |
first2 | The beginning of the second input range. |
last2 | The end of the second input range. |
comp | Comparison operator. |
cl_code | Optional OpenCL(TM) code to be passed to the OpenCL compiler. The cl_code is inserted first in the generated code, before the cl_code trait. |
InputIterator1 | An iterator that can be dereferenced for an object, and can be incremented to get to the next element in a sequence. |
InputIterator2 | An iterator that can be dereferenced for an object, and can be incremented to get to the next element in a sequence. |
OutputIteratoris | a model of Output Iterator |
StrictWeakCompare | is a model of Strict Weak Ordering. |
The following code example shows the use of merge
operator.