mirror of
https://github.com/boostorg/compute.git
synced 2026-01-29 07:22:19 +00:00
Update documentation
This commit is contained in:
61
boost/compute/accumulate_idp7023616.html
Normal file
61
boost/compute/accumulate_idp7023616.html
Normal file
@@ -0,0 +1,61 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||
<title>Function template accumulate</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
||||
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Compute">
|
||||
<link rel="up" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp" title="Header <boost/compute/algorithm/accumulate.hpp>">
|
||||
<link rel="prev" href="timer.html" title="Class timer">
|
||||
<link rel="next" href="accumulate_idp7032592.html" title="Function template accumulate">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="timer.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="accumulate_idp7032592.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="refentry">
|
||||
<a name="boost.compute.accumulate_idp7023616"></a><div class="titlepage"></div>
|
||||
<div class="refnamediv">
|
||||
<h2><span class="refentrytitle">Function template accumulate</span></h2>
|
||||
<p>boost::compute::accumulate</p>
|
||||
</div>
|
||||
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
|
||||
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp" title="Header <boost/compute/algorithm/accumulate.hpp>">boost/compute/algorithm/accumulate.hpp</a>>
|
||||
|
||||
</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> InputIterator<span class="special">,</span> <span class="keyword">typename</span> T<span class="special">></span>
|
||||
<span class="identifier">T</span> <span class="identifier">accumulate</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span> <span class="identifier">T</span> init<span class="special">,</span>
|
||||
<span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp36150128"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns the sum of the elements in the range [<code class="computeroutput">first</code>,
|
||||
<code class="computeroutput">last</code>) plus <code class="computeroutput">init</code>.
|
||||
</p>
|
||||
<div class="variablelist"><table border="0">
|
||||
<col align="left" valign="top">
|
||||
<tbody><tr>
|
||||
<td><p><span class="term">Returns:</span></p></td>
|
||||
<td>
|
||||
The sum of the elements.
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2013 Kyle Lutz<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="timer.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="accumulate_idp7032592.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
62
boost/compute/accumulate_idp7032592.html
Normal file
62
boost/compute/accumulate_idp7032592.html
Normal file
@@ -0,0 +1,62 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||
<title>Function template accumulate</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
||||
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Compute">
|
||||
<link rel="up" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp" title="Header <boost/compute/algorithm/accumulate.hpp>">
|
||||
<link rel="prev" href="accumulate_idp7023616.html" title="Function template accumulate">
|
||||
<link rel="next" href="adjacent_difference.html" title="Function template adjacent_difference">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="accumulate_idp7023616.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="adjacent_difference.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="refentry">
|
||||
<a name="boost.compute.accumulate_idp7032592"></a><div class="titlepage"></div>
|
||||
<div class="refnamediv">
|
||||
<h2><span class="refentrytitle">Function template accumulate</span></h2>
|
||||
<p>boost::compute::accumulate</p>
|
||||
</div>
|
||||
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
|
||||
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp" title="Header <boost/compute/algorithm/accumulate.hpp>">boost/compute/algorithm/accumulate.hpp</a>>
|
||||
|
||||
</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> InputIterator<span class="special">,</span> <span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> BinaryFunction<span class="special">></span>
|
||||
<span class="identifier">T</span> <span class="identifier">accumulate</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span> <span class="identifier">T</span> init<span class="special">,</span>
|
||||
<span class="identifier">BinaryFunction</span> function<span class="special">,</span> <span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp36173232"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns the result of applying <code class="computeroutput">function</code> to the
|
||||
elements in the range [<code class="computeroutput">first</code>, <code class="computeroutput">last</code>)
|
||||
and <code class="computeroutput">init</code>.
|
||||
</p>
|
||||
<div class="variablelist"><table border="0">
|
||||
<col align="left" valign="top">
|
||||
<tbody><tr>
|
||||
<td><p><span class="term">Returns:</span></p></td>
|
||||
<td>
|
||||
The result of applying <code class="computeroutput">function</code> to the elements.
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2013 Kyle Lutz<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="accumulate_idp7023616.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="adjacent_difference.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
61
boost/compute/accumulate_idp7337360.html
Normal file
61
boost/compute/accumulate_idp7337360.html
Normal file
@@ -0,0 +1,61 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||
<title>Function template accumulate</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
||||
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Compute">
|
||||
<link rel="up" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp" title="Header <boost/compute/algorithm/accumulate.hpp>">
|
||||
<link rel="prev" href="timer.html" title="Class timer">
|
||||
<link rel="next" href="accumulate_idp7346336.html" title="Function template accumulate">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="timer.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="accumulate_idp7346336.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="refentry">
|
||||
<a name="boost.compute.accumulate_idp7337360"></a><div class="titlepage"></div>
|
||||
<div class="refnamediv">
|
||||
<h2><span class="refentrytitle">Function template accumulate</span></h2>
|
||||
<p>boost::compute::accumulate</p>
|
||||
</div>
|
||||
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
|
||||
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp" title="Header <boost/compute/algorithm/accumulate.hpp>">boost/compute/algorithm/accumulate.hpp</a>>
|
||||
|
||||
</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> InputIterator<span class="special">,</span> <span class="keyword">typename</span> T<span class="special">></span>
|
||||
<span class="identifier">T</span> <span class="identifier">accumulate</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span> <span class="identifier">T</span> init<span class="special">,</span>
|
||||
<span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp6490768"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns the sum of the elements in the range [<code class="computeroutput">first</code>,
|
||||
<code class="computeroutput">last</code>) plus <code class="computeroutput">init</code>.
|
||||
</p>
|
||||
<div class="variablelist"><table border="0">
|
||||
<col align="left" valign="top">
|
||||
<tbody><tr>
|
||||
<td><p><span class="term">Returns:</span></p></td>
|
||||
<td>
|
||||
The sum of the elements.
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2013 Kyle Lutz<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="timer.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="accumulate_idp7346336.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
62
boost/compute/accumulate_idp7346336.html
Normal file
62
boost/compute/accumulate_idp7346336.html
Normal file
@@ -0,0 +1,62 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||
<title>Function template accumulate</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
||||
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Compute">
|
||||
<link rel="up" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp" title="Header <boost/compute/algorithm/accumulate.hpp>">
|
||||
<link rel="prev" href="accumulate_idp7337360.html" title="Function template accumulate">
|
||||
<link rel="next" href="adjacent_difference.html" title="Function template adjacent_difference">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="accumulate_idp7337360.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="adjacent_difference.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="refentry">
|
||||
<a name="boost.compute.accumulate_idp7346336"></a><div class="titlepage"></div>
|
||||
<div class="refnamediv">
|
||||
<h2><span class="refentrytitle">Function template accumulate</span></h2>
|
||||
<p>boost::compute::accumulate</p>
|
||||
</div>
|
||||
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
|
||||
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp" title="Header <boost/compute/algorithm/accumulate.hpp>">boost/compute/algorithm/accumulate.hpp</a>>
|
||||
|
||||
</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> InputIterator<span class="special">,</span> <span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> BinaryFunction<span class="special">></span>
|
||||
<span class="identifier">T</span> <span class="identifier">accumulate</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span> <span class="identifier">T</span> init<span class="special">,</span>
|
||||
<span class="identifier">BinaryFunction</span> function<span class="special">,</span> <span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp6514032"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns the result of applying <code class="computeroutput">function</code> to the
|
||||
elements in the range [<code class="computeroutput">first</code>, <code class="computeroutput">last</code>)
|
||||
and <code class="computeroutput">init</code>.
|
||||
</p>
|
||||
<div class="variablelist"><table border="0">
|
||||
<col align="left" valign="top">
|
||||
<tbody><tr>
|
||||
<td><p><span class="term">Returns:</span></p></td>
|
||||
<td>
|
||||
The result of applying <code class="computeroutput">function</code> to the elements.
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2013 Kyle Lutz<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="accumulate_idp7337360.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="adjacent_difference.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
61
boost/compute/accumulate_idp7946384.html
Normal file
61
boost/compute/accumulate_idp7946384.html
Normal file
@@ -0,0 +1,61 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||
<title>Function template accumulate</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
||||
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Compute">
|
||||
<link rel="up" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp" title="Header <boost/compute/algorithm/accumulate.hpp>">
|
||||
<link rel="prev" href="timer.html" title="Class timer">
|
||||
<link rel="next" href="accumulate_idp7956928.html" title="Function template accumulate">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="timer.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="accumulate_idp7956928.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="refentry">
|
||||
<a name="boost.compute.accumulate_idp7946384"></a><div class="titlepage"></div>
|
||||
<div class="refnamediv">
|
||||
<h2><span class="refentrytitle">Function template accumulate</span></h2>
|
||||
<p>boost::compute::accumulate</p>
|
||||
</div>
|
||||
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
|
||||
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp" title="Header <boost/compute/algorithm/accumulate.hpp>">boost/compute/algorithm/accumulate.hpp</a>>
|
||||
|
||||
</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> InputIterator<span class="special">,</span> <span class="keyword">typename</span> T<span class="special">></span>
|
||||
<span class="identifier">T</span> <span class="identifier">accumulate</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span> <span class="identifier">T</span> init<span class="special">,</span>
|
||||
<span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp7652784"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns the sum of the elements in the range [<code class="computeroutput">first</code>,
|
||||
<code class="computeroutput">last</code>) plus <code class="computeroutput">init</code>.
|
||||
</p>
|
||||
<div class="variablelist"><table border="0">
|
||||
<col align="left" valign="top">
|
||||
<tbody><tr>
|
||||
<td><p><span class="term">Returns:</span></p></td>
|
||||
<td>
|
||||
The sum of the elements.
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2013 Kyle Lutz<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="timer.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="accumulate_idp7956928.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
61
boost/compute/accumulate_idp7951488.html
Normal file
61
boost/compute/accumulate_idp7951488.html
Normal file
@@ -0,0 +1,61 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||
<title>Function template accumulate</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
||||
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Compute">
|
||||
<link rel="up" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp" title="Header <boost/compute/algorithm/accumulate.hpp>">
|
||||
<link rel="prev" href="timer.html" title="Class timer">
|
||||
<link rel="next" href="accumulate_idp7962032.html" title="Function template accumulate">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="timer.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="accumulate_idp7962032.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="refentry">
|
||||
<a name="boost.compute.accumulate_idp7951488"></a><div class="titlepage"></div>
|
||||
<div class="refnamediv">
|
||||
<h2><span class="refentrytitle">Function template accumulate</span></h2>
|
||||
<p>boost::compute::accumulate</p>
|
||||
</div>
|
||||
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
|
||||
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp" title="Header <boost/compute/algorithm/accumulate.hpp>">boost/compute/algorithm/accumulate.hpp</a>>
|
||||
|
||||
</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> InputIterator<span class="special">,</span> <span class="keyword">typename</span> T<span class="special">></span>
|
||||
<span class="identifier">T</span> <span class="identifier">accumulate</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span> <span class="identifier">T</span> init<span class="special">,</span>
|
||||
<span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp7600144"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns the sum of the elements in the range [<code class="computeroutput">first</code>,
|
||||
<code class="computeroutput">last</code>) plus <code class="computeroutput">init</code>.
|
||||
</p>
|
||||
<div class="variablelist"><table border="0">
|
||||
<col align="left" valign="top">
|
||||
<tbody><tr>
|
||||
<td><p><span class="term">Returns:</span></p></td>
|
||||
<td>
|
||||
The sum of the elements.
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2013 Kyle Lutz<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="timer.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="accumulate_idp7962032.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
62
boost/compute/accumulate_idp7956928.html
Normal file
62
boost/compute/accumulate_idp7956928.html
Normal file
@@ -0,0 +1,62 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||
<title>Function template accumulate</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
||||
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Compute">
|
||||
<link rel="up" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp" title="Header <boost/compute/algorithm/accumulate.hpp>">
|
||||
<link rel="prev" href="accumulate_idp7946384.html" title="Function template accumulate">
|
||||
<link rel="next" href="adjacent_difference.html" title="Function template adjacent_difference">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="accumulate_idp7946384.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="adjacent_difference.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="refentry">
|
||||
<a name="boost.compute.accumulate_idp7956928"></a><div class="titlepage"></div>
|
||||
<div class="refnamediv">
|
||||
<h2><span class="refentrytitle">Function template accumulate</span></h2>
|
||||
<p>boost::compute::accumulate</p>
|
||||
</div>
|
||||
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
|
||||
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp" title="Header <boost/compute/algorithm/accumulate.hpp>">boost/compute/algorithm/accumulate.hpp</a>>
|
||||
|
||||
</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> InputIterator<span class="special">,</span> <span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> BinaryFunction<span class="special">></span>
|
||||
<span class="identifier">T</span> <span class="identifier">accumulate</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span> <span class="identifier">T</span> init<span class="special">,</span>
|
||||
<span class="identifier">BinaryFunction</span> function<span class="special">,</span> <span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp7676048"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns the result of applying <code class="computeroutput">function</code> to the
|
||||
elements in the range [<code class="computeroutput">first</code>, <code class="computeroutput">last</code>)
|
||||
and <code class="computeroutput">init</code>.
|
||||
</p>
|
||||
<div class="variablelist"><table border="0">
|
||||
<col align="left" valign="top">
|
||||
<tbody><tr>
|
||||
<td><p><span class="term">Returns:</span></p></td>
|
||||
<td>
|
||||
The result of applying <code class="computeroutput">function</code> to the elements.
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2013 Kyle Lutz<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="accumulate_idp7946384.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="adjacent_difference.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
62
boost/compute/accumulate_idp7962032.html
Normal file
62
boost/compute/accumulate_idp7962032.html
Normal file
@@ -0,0 +1,62 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||
<title>Function template accumulate</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
||||
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Compute">
|
||||
<link rel="up" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp" title="Header <boost/compute/algorithm/accumulate.hpp>">
|
||||
<link rel="prev" href="accumulate_idp7951488.html" title="Function template accumulate">
|
||||
<link rel="next" href="adjacent_difference.html" title="Function template adjacent_difference">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="accumulate_idp7951488.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="adjacent_difference.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="refentry">
|
||||
<a name="boost.compute.accumulate_idp7962032"></a><div class="titlepage"></div>
|
||||
<div class="refnamediv">
|
||||
<h2><span class="refentrytitle">Function template accumulate</span></h2>
|
||||
<p>boost::compute::accumulate</p>
|
||||
</div>
|
||||
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
|
||||
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp" title="Header <boost/compute/algorithm/accumulate.hpp>">boost/compute/algorithm/accumulate.hpp</a>>
|
||||
|
||||
</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> InputIterator<span class="special">,</span> <span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> BinaryFunction<span class="special">></span>
|
||||
<span class="identifier">T</span> <span class="identifier">accumulate</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span> <span class="identifier">T</span> init<span class="special">,</span>
|
||||
<span class="identifier">BinaryFunction</span> function<span class="special">,</span> <span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp7623424"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns the result of applying <code class="computeroutput">function</code> to the
|
||||
elements in the range [<code class="computeroutput">first</code>, <code class="computeroutput">last</code>)
|
||||
and <code class="computeroutput">init</code>.
|
||||
</p>
|
||||
<div class="variablelist"><table border="0">
|
||||
<col align="left" valign="top">
|
||||
<tbody><tr>
|
||||
<td><p><span class="term">Returns:</span></p></td>
|
||||
<td>
|
||||
The result of applying <code class="computeroutput">function</code> to the elements.
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2013 Kyle Lutz<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="accumulate_idp7951488.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="adjacent_difference.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
61
boost/compute/accumulate_idp7996160.html
Normal file
61
boost/compute/accumulate_idp7996160.html
Normal file
@@ -0,0 +1,61 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||
<title>Function template accumulate</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
||||
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Compute">
|
||||
<link rel="up" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp" title="Header <boost/compute/algorithm/accumulate.hpp>">
|
||||
<link rel="prev" href="timer.html" title="Class timer">
|
||||
<link rel="next" href="accumulate_idp8006704.html" title="Function template accumulate">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="timer.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="accumulate_idp8006704.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="refentry">
|
||||
<a name="boost.compute.accumulate_idp7996160"></a><div class="titlepage"></div>
|
||||
<div class="refnamediv">
|
||||
<h2><span class="refentrytitle">Function template accumulate</span></h2>
|
||||
<p>boost::compute::accumulate</p>
|
||||
</div>
|
||||
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
|
||||
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp" title="Header <boost/compute/algorithm/accumulate.hpp>">boost/compute/algorithm/accumulate.hpp</a>>
|
||||
|
||||
</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> InputIterator<span class="special">,</span> <span class="keyword">typename</span> T<span class="special">></span>
|
||||
<span class="identifier">T</span> <span class="identifier">accumulate</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span> <span class="identifier">T</span> init<span class="special">,</span>
|
||||
<span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp37262976"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns the sum of the elements in the range [<code class="computeroutput">first</code>,
|
||||
<code class="computeroutput">last</code>) plus <code class="computeroutput">init</code>.
|
||||
</p>
|
||||
<div class="variablelist"><table border="0">
|
||||
<col align="left" valign="top">
|
||||
<tbody><tr>
|
||||
<td><p><span class="term">Returns:</span></p></td>
|
||||
<td>
|
||||
The sum of the elements.
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2013 Kyle Lutz<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="timer.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="accumulate_idp8006704.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
61
boost/compute/accumulate_idp7997392.html
Normal file
61
boost/compute/accumulate_idp7997392.html
Normal file
@@ -0,0 +1,61 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||
<title>Function template accumulate</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
||||
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Compute">
|
||||
<link rel="up" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp" title="Header <boost/compute/algorithm/accumulate.hpp>">
|
||||
<link rel="prev" href="timer.html" title="Class timer">
|
||||
<link rel="next" href="accumulate_idp8007936.html" title="Function template accumulate">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="timer.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="accumulate_idp8007936.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="refentry">
|
||||
<a name="boost.compute.accumulate_idp7997392"></a><div class="titlepage"></div>
|
||||
<div class="refnamediv">
|
||||
<h2><span class="refentrytitle">Function template accumulate</span></h2>
|
||||
<p>boost::compute::accumulate</p>
|
||||
</div>
|
||||
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
|
||||
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp" title="Header <boost/compute/algorithm/accumulate.hpp>">boost/compute/algorithm/accumulate.hpp</a>>
|
||||
|
||||
</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> InputIterator<span class="special">,</span> <span class="keyword">typename</span> T<span class="special">></span>
|
||||
<span class="identifier">T</span> <span class="identifier">accumulate</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span> <span class="identifier">T</span> init<span class="special">,</span>
|
||||
<span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp7651008"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns the sum of the elements in the range [<code class="computeroutput">first</code>,
|
||||
<code class="computeroutput">last</code>) plus <code class="computeroutput">init</code>.
|
||||
</p>
|
||||
<div class="variablelist"><table border="0">
|
||||
<col align="left" valign="top">
|
||||
<tbody><tr>
|
||||
<td><p><span class="term">Returns:</span></p></td>
|
||||
<td>
|
||||
The sum of the elements.
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2013 Kyle Lutz<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="timer.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="accumulate_idp8007936.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
62
boost/compute/accumulate_idp8006704.html
Normal file
62
boost/compute/accumulate_idp8006704.html
Normal file
@@ -0,0 +1,62 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||
<title>Function template accumulate</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
||||
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Compute">
|
||||
<link rel="up" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp" title="Header <boost/compute/algorithm/accumulate.hpp>">
|
||||
<link rel="prev" href="accumulate_idp7996160.html" title="Function template accumulate">
|
||||
<link rel="next" href="adjacent_difference.html" title="Function template adjacent_difference">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="accumulate_idp7996160.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="adjacent_difference.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="refentry">
|
||||
<a name="boost.compute.accumulate_idp8006704"></a><div class="titlepage"></div>
|
||||
<div class="refnamediv">
|
||||
<h2><span class="refentrytitle">Function template accumulate</span></h2>
|
||||
<p>boost::compute::accumulate</p>
|
||||
</div>
|
||||
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
|
||||
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp" title="Header <boost/compute/algorithm/accumulate.hpp>">boost/compute/algorithm/accumulate.hpp</a>>
|
||||
|
||||
</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> InputIterator<span class="special">,</span> <span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> BinaryFunction<span class="special">></span>
|
||||
<span class="identifier">T</span> <span class="identifier">accumulate</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span> <span class="identifier">T</span> init<span class="special">,</span>
|
||||
<span class="identifier">BinaryFunction</span> function<span class="special">,</span> <span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp37286240"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns the result of applying <code class="computeroutput">function</code> to the
|
||||
elements in the range [<code class="computeroutput">first</code>, <code class="computeroutput">last</code>)
|
||||
and <code class="computeroutput">init</code>.
|
||||
</p>
|
||||
<div class="variablelist"><table border="0">
|
||||
<col align="left" valign="top">
|
||||
<tbody><tr>
|
||||
<td><p><span class="term">Returns:</span></p></td>
|
||||
<td>
|
||||
The result of applying <code class="computeroutput">function</code> to the elements.
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2013 Kyle Lutz<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="accumulate_idp7996160.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="adjacent_difference.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
62
boost/compute/accumulate_idp8007936.html
Normal file
62
boost/compute/accumulate_idp8007936.html
Normal file
@@ -0,0 +1,62 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||
<title>Function template accumulate</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
||||
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Compute">
|
||||
<link rel="up" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp" title="Header <boost/compute/algorithm/accumulate.hpp>">
|
||||
<link rel="prev" href="accumulate_idp7997392.html" title="Function template accumulate">
|
||||
<link rel="next" href="adjacent_difference.html" title="Function template adjacent_difference">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="accumulate_idp7997392.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="adjacent_difference.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="refentry">
|
||||
<a name="boost.compute.accumulate_idp8007936"></a><div class="titlepage"></div>
|
||||
<div class="refnamediv">
|
||||
<h2><span class="refentrytitle">Function template accumulate</span></h2>
|
||||
<p>boost::compute::accumulate</p>
|
||||
</div>
|
||||
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
|
||||
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp" title="Header <boost/compute/algorithm/accumulate.hpp>">boost/compute/algorithm/accumulate.hpp</a>>
|
||||
|
||||
</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> InputIterator<span class="special">,</span> <span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> BinaryFunction<span class="special">></span>
|
||||
<span class="identifier">T</span> <span class="identifier">accumulate</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span> <span class="identifier">T</span> init<span class="special">,</span>
|
||||
<span class="identifier">BinaryFunction</span> function<span class="special">,</span> <span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp7674288"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns the result of applying <code class="computeroutput">function</code> to the
|
||||
elements in the range [<code class="computeroutput">first</code>, <code class="computeroutput">last</code>)
|
||||
and <code class="computeroutput">init</code>.
|
||||
</p>
|
||||
<div class="variablelist"><table border="0">
|
||||
<col align="left" valign="top">
|
||||
<tbody><tr>
|
||||
<td><p><span class="term">Returns:</span></p></td>
|
||||
<td>
|
||||
The result of applying <code class="computeroutput">function</code> to the elements.
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2013 Kyle Lutz<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="accumulate_idp7997392.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.accumulate_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="adjacent_difference.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -6,14 +6,14 @@
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
||||
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Compute">
|
||||
<link rel="up" href="../../compute/reference.html#header.boost.compute.algorithm.adjacent_difference_hpp" title="Header <boost/compute/algorithm/adjacent_difference.hpp>">
|
||||
<link rel="prev" href="accumulate_idp7584192.html" title="Function template accumulate">
|
||||
<link rel="prev" href="accumulate_idp8007936.html" title="Function template accumulate">
|
||||
<link rel="next" href="adjacent_find.html" title="Function template adjacent_find">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="accumulate_idp7584192.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.adjacent_difference_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="adjacent_find.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
<a accesskey="p" href="accumulate_idp8007936.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.adjacent_difference_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="adjacent_find.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="refentry">
|
||||
<a name="boost.compute.adjacent_difference"></a><div class="titlepage"></div>
|
||||
@@ -30,7 +30,7 @@
|
||||
<span class="identifier">adjacent_difference</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span>
|
||||
<span class="identifier">OutputIterator</span> result<span class="special">,</span> <span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp36948752"></a><h2>Description</h2>
|
||||
<a name="idp7716592"></a><h2>Description</h2>
|
||||
<p>
|
||||
Stored the difference of each pair of consecutive values in the
|
||||
range [<code class="computeroutput">first</code>, <code class="computeroutput">last</code>) to the range
|
||||
@@ -57,7 +57,7 @@
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="accumulate_idp7584192.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.adjacent_difference_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="adjacent_find.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
<a accesskey="p" href="accumulate_idp8007936.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.adjacent_difference_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="adjacent_find.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<span class="identifier">adjacent_find</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span>
|
||||
<span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp36984336"></a><h2>Description</h2>
|
||||
<a name="idp7752384"></a><h2>Description</h2>
|
||||
<p>
|
||||
Searches the range [<code class="computeroutput">first</code>, <code class="computeroutput">last</code>) for two
|
||||
identical adjacent elements and returns an iterator pointing to the
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<span class="keyword">bool</span> <span class="identifier">all_of</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span>
|
||||
<span class="identifier">UnaryPredicate</span> predicate<span class="special">,</span> <span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp37023328"></a><h2>Description</h2>
|
||||
<a name="idp7791280"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns <code class="computeroutput">true</code> if <code class="computeroutput">predicate</code> returns
|
||||
<code class="computeroutput">true</code> for all of the elements in the range
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<span class="keyword">bool</span> <span class="identifier">any_of</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span>
|
||||
<span class="identifier">UnaryPredicate</span> predicate<span class="special">,</span> <span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp37067264"></a><h2>Description</h2>
|
||||
<a name="idp7835040"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns <code class="computeroutput">true</code> if <code class="computeroutput">predicate</code> returns
|
||||
<code class="computeroutput">true</code> for any of the elements in the range
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<span class="keyword">class</span> <a class="link" href="array.html" title="Class template array">array</a> <span class="special">{</span>
|
||||
<span class="special">}</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp39451376"></a><h2>Description</h2>
|
||||
<a name="idp10217984"></a><h2>Description</h2>
|
||||
<p>
|
||||
See also: <a class="link" href="vector.html" title="Class template vector">vector</a>
|
||||
</p>
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<span class="keyword">class</span> <a class="link" href="basic_string.html" title="Class template basic_string">basic_string</a> <span class="special">{</span>
|
||||
<span class="special">}</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp39488032"></a><h2>Description</h2>
|
||||
<a name="idp10254576"></a><h2>Description</h2>
|
||||
<p>
|
||||
See also: <a class="link" href="string.html" title="Type definition string">string</a>
|
||||
</p>
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<span class="keyword">bool</span> <span class="identifier">binary_search</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span><span class="special">&</span> value<span class="special">,</span>
|
||||
<span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp37113472"></a><h2>Description</h2>
|
||||
<a name="idp7881264"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns <code class="computeroutput">true</code> if <code class="computeroutput">value</code> is in the sorted
|
||||
range [<code class="computeroutput">first</code>, <code class="computeroutput">last</code>).
|
||||
|
||||
@@ -28,17 +28,18 @@
|
||||
<span class="keyword">class</span> <a class="link" href="buffer.html" title="Class buffer">buffer</a> <span class="special">{</span>
|
||||
<span class="keyword">public</span><span class="special">:</span>
|
||||
<span class="comment">// <a class="link" href="buffer.html#boost.compute.bufferconstruct-copy-destruct">construct/copy/destruct</a></span>
|
||||
<a class="link" href="buffer.html#idp7036704-bb"><span class="identifier">buffer</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="context.html" title="Class context">context</a><span class="special">&</span><span class="special">,</span> <span class="identifier">size_t</span><span class="special">,</span> <span class="identifier">cl_mem_flags</span> <span class="special">=</span> <span class="identifier">read_write</span><span class="special">,</span> <span class="keyword">void</span> <span class="special">*</span> <span class="special">=</span> <span class="number">0</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="buffer.html#idp7045216-bb"><span class="identifier">buffer</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="buffer.html" title="Class buffer">buffer</a> <span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
buffer& <a class="link" href="buffer.html#idp7168768-bb"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="buffer.html" title="Class buffer">buffer</a> <span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="buffer.html#idp7171952-bb"><span class="special">~</span><span class="identifier">buffer</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="buffer.html#idp7528608-bb"><span class="identifier">buffer</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="context.html" title="Class context">context</a><span class="special">&</span><span class="special">,</span> <span class="identifier">size_t</span><span class="special">,</span> <span class="identifier">cl_mem_flags</span> <span class="special">=</span> <span class="identifier">read_write</span><span class="special">,</span> <span class="keyword">void</span> <span class="special">*</span> <span class="special">=</span> <span class="number">0</span><span class="special">)</span><span class="special">;</span>
|
||||
<span class="keyword">explicit</span> <a class="link" href="buffer.html#idp7537088-bb"><span class="identifier">buffer</span></a><span class="special">(</span><span class="identifier">cl_buffer</span><span class="special">,</span> <span class="keyword">bool</span> <span class="special">=</span> <span class="keyword">true</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="buffer.html#idp7543504-bb"><span class="identifier">buffer</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="buffer.html" title="Class buffer">buffer</a> <span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
buffer& <a class="link" href="buffer.html#idp7546688-bb"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="buffer.html" title="Class buffer">buffer</a> <span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="buffer.html#idp7549872-bb"><span class="special">~</span><span class="identifier">buffer</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
|
||||
|
||||
<span class="comment">// <a class="link" href="buffer.html#idp7173104-bb">public member functions</a></span>
|
||||
<span class="identifier">size_t</span> <a class="link" href="buffer.html#idp7173856-bb"><span class="identifier">size</span></a><span class="special">(</span><span class="special">)</span> <span class="identifier">size</span><span class="special">;</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="identifier">T</span> <a class="link" href="buffer.html#idp7176128-bb"><span class="identifier">get_info</span></a><span class="special">(</span><span class="identifier">cl_mem_info</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="comment">// <a class="link" href="buffer.html#idp7551024-bb">public member functions</a></span>
|
||||
<span class="identifier">size_t</span> <a class="link" href="buffer.html#idp7551776-bb"><span class="identifier">size</span></a><span class="special">(</span><span class="special">)</span> <span class="identifier">size</span><span class="special">;</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="identifier">T</span> <a class="link" href="buffer.html#idp7554048-bb"><span class="identifier">get_info</span></a><span class="special">(</span><span class="identifier">cl_mem_info</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="special">}</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp35234128"></a><h2>Description</h2>
|
||||
<a name="idp5873504"></a><h2>Description</h2>
|
||||
<p>
|
||||
The <code class="computeroutput">buffer</code> class represents a memory buffer on a
|
||||
compute device.
|
||||
@@ -48,13 +49,13 @@
|
||||
<a class="link" href="command_queue.html" title="Class command_queue">command_queue</a>
|
||||
</p>
|
||||
<div class="refsect2">
|
||||
<a name="idp35237280"></a><h3>
|
||||
<a name="idp5876656"></a><h3>
|
||||
<a name="boost.compute.bufferconstruct-copy-destruct"></a><code class="computeroutput">buffer</code>
|
||||
public
|
||||
construct/copy/destruct</h3>
|
||||
<div class="orderedlist"><ol class="orderedlist" type="1">
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><a name="idp7036704-bb"></a><span class="identifier">buffer</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="context.html" title="Class context">context</a><span class="special">&</span> context<span class="special">,</span> <span class="identifier">size_t</span> size<span class="special">,</span> <span class="identifier">cl_mem_flags</span> flags <span class="special">=</span> <span class="identifier">read_write</span><span class="special">,</span>
|
||||
<pre class="literallayout"><a name="idp7528608-bb"></a><span class="identifier">buffer</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="context.html" title="Class context">context</a><span class="special">&</span> context<span class="special">,</span> <span class="identifier">size_t</span> size<span class="special">,</span> <span class="identifier">cl_mem_flags</span> flags <span class="special">=</span> <span class="identifier">read_write</span><span class="special">,</span>
|
||||
<span class="keyword">void</span> <span class="special">*</span> host_ptr <span class="special">=</span> <span class="number">0</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Creates a new compute buffer in <code class="computeroutput">context</code> containing
|
||||
@@ -62,19 +63,27 @@
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><a name="idp7045216-bb"></a><span class="identifier">buffer</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="buffer.html" title="Class buffer">buffer</a> <span class="special">&</span> other<span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="keyword">explicit</span> <a name="idp7537088-bb"></a><span class="identifier">buffer</span><span class="special">(</span><span class="identifier">cl_buffer</span> buffer<span class="special">,</span> <span class="keyword">bool</span> retain <span class="special">=</span> <span class="keyword">true</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Creates a new buffer object for <code class="computeroutput">buffer</code>. If
|
||||
<code class="computeroutput">retain</code> is <code class="computeroutput">true</code> (the default) the
|
||||
reference count for <code class="computeroutput">buffer</code> will be incremented.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><a name="idp7543504-bb"></a><span class="identifier">buffer</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="buffer.html" title="Class buffer">buffer</a> <span class="special">&</span> other<span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Creates a new buffer object as a copy of <code class="computeroutput">other</code>.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout">buffer& <a name="idp7168768-bb"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="buffer.html" title="Class buffer">buffer</a> <span class="special">&</span> other<span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout">buffer& <a name="idp7546688-bb"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="buffer.html" title="Class buffer">buffer</a> <span class="special">&</span> other<span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Copies the buffer from <code class="computeroutput">other</code>.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><a name="idp7171952-bb"></a><span class="special">~</span><span class="identifier">buffer</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><a name="idp7549872-bb"></a><span class="special">~</span><span class="identifier">buffer</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Destroys the buffer object.
|
||||
</p>
|
||||
@@ -82,17 +91,17 @@
|
||||
</ol></div>
|
||||
</div>
|
||||
<div class="refsect2">
|
||||
<a name="idp35268816"></a><h3>
|
||||
<a name="idp7173104-bb"></a><code class="computeroutput">buffer</code> public member functions</h3>
|
||||
<a name="idp5917776"></a><h3>
|
||||
<a name="idp7551024-bb"></a><code class="computeroutput">buffer</code> public member functions</h3>
|
||||
<div class="orderedlist"><ol class="orderedlist" type="1">
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="identifier">size_t</span> <a name="idp7173856-bb"></a><span class="identifier">size</span><span class="special">(</span><span class="special">)</span> <span class="identifier">size</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="identifier">size_t</span> <a name="idp7551776-bb"></a><span class="identifier">size</span><span class="special">(</span><span class="special">)</span> <span class="identifier">size</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Returns the size of the buffer in bytes.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="identifier">T</span> <a name="idp7176128-bb"></a><span class="identifier">get_info</span><span class="special">(</span><span class="identifier">cl_mem_info</span> info<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="identifier">T</span> <a name="idp7554048-bb"></a><span class="identifier">get_info</span><span class="special">(</span><span class="identifier">cl_mem_info</span> info<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Returns information about the buffer.
|
||||
</p>
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
<span class="keyword">class</span> <a class="link" href="buffer_iterator.html" title="Class template buffer_iterator">buffer_iterator</a> <span class="special">{</span>
|
||||
<span class="special">}</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp39705744"></a><h2>Description</h2>
|
||||
<a name="idp10473008"></a><h2>Description</h2>
|
||||
<p>
|
||||
The <code class="computeroutput">buffer_iterator</code> class provides a random-access
|
||||
iterator for <a class="link" href="buffer.html" title="Class buffer">buffer</a> objects.
|
||||
|
||||
@@ -28,32 +28,32 @@
|
||||
<span class="keyword">class</span> <a class="link" href="command_queue.html" title="Class command_queue">command_queue</a> <span class="special">{</span>
|
||||
<span class="keyword">public</span><span class="special">:</span>
|
||||
<span class="comment">// <a class="link" href="command_queue.html#boost.compute.command_queueconstruct-copy-destruct">construct/copy/destruct</a></span>
|
||||
<a class="link" href="command_queue.html#idp7192320-bb"><span class="identifier">command_queue</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="context.html" title="Class context">context</a><span class="special">&</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="device.html" title="Class device">device</a><span class="special">&</span><span class="special">,</span>
|
||||
<a class="link" href="command_queue.html#idp7570240-bb"><span class="identifier">command_queue</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="context.html" title="Class context">context</a><span class="special">&</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="device.html" title="Class device">device</a><span class="special">&</span><span class="special">,</span>
|
||||
<span class="keyword">const</span> <span class="identifier">cl_command_queue_properties</span><span class="special">*</span> <span class="special">=</span> <span class="number">0</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="command_queue.html#idp7199056-bb"><span class="identifier">command_queue</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="command_queue.html" title="Class command_queue">command_queue</a> <span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
command_queue& <a class="link" href="command_queue.html#idp7202240-bb"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="command_queue.html" title="Class command_queue">command_queue</a> <span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="command_queue.html#idp7205424-bb"><span class="special">~</span><span class="identifier">command_queue</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
|
||||
<span class="keyword">explicit</span> <a class="link" href="command_queue.html#idp7576976-bb"><span class="identifier">command_queue</span></a><span class="special">(</span><span class="identifier">cl_command_queue</span><span class="special">,</span> <span class="keyword">bool</span> <span class="special">=</span> <span class="keyword">true</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="command_queue.html#idp7582560-bb"><span class="identifier">command_queue</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="command_queue.html" title="Class command_queue">command_queue</a> <span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
command_queue& <a class="link" href="command_queue.html#idp7585744-bb"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="command_queue.html" title="Class command_queue">command_queue</a> <span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="command_queue.html#idp7588928-bb"><span class="special">~</span><span class="identifier">command_queue</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
|
||||
|
||||
<span class="comment">// <a class="link" href="command_queue.html#idp7206576-bb">public member functions</a></span>
|
||||
<a class="link" href="device.html" title="Class device">device</a> <a class="link" href="command_queue.html#idp7207328-bb"><span class="identifier">get_device</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<a class="link" href="context.html" title="Class context">context</a> <a class="link" href="command_queue.html#idp7209856-bb"><span class="identifier">get_context</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="identifier">cl_command_queue_properties</span> <a class="link" href="command_queue.html#idp7212256-bb"><span class="identifier">get_properties</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="identifier">T</span> <a class="link" href="command_queue.html#idp7216400-bb"><span class="identifier">get_info</span></a><span class="special">(</span><span class="identifier">cl_command_queue_info</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="keyword">void</span> <a class="link" href="command_queue.html#idm31584-bb"><span class="identifier">enqueue_read_buffer</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="buffer.html" title="Class buffer">buffer</a><span class="special">&</span><span class="special">,</span> <span class="identifier">size_t</span><span class="special">,</span> <span class="identifier">size_t</span><span class="special">,</span> <span class="keyword">void</span> <span class="special">*</span><span class="special">)</span><span class="special">;</span>
|
||||
<span class="keyword">void</span> <a class="link" href="command_queue.html#idp7224096-bb"><span class="identifier">enqueue_write_buffer</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="buffer.html" title="Class buffer">buffer</a><span class="special">&</span><span class="special">,</span> <span class="identifier">size_t</span><span class="special">,</span> <span class="identifier">size_t</span><span class="special">,</span> <span class="keyword">const</span> <span class="keyword">void</span> <span class="special">*</span><span class="special">)</span><span class="special">;</span>
|
||||
<span class="keyword">void</span> <a class="link" href="command_queue.html#idp7231536-bb"><span class="identifier">enqueue_copy_buffer</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="buffer.html" title="Class buffer">buffer</a><span class="special">&</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="buffer.html" title="Class buffer">buffer</a><span class="special">&</span><span class="special">,</span> <span class="identifier">size_t</span><span class="special">,</span> <span class="identifier">size_t</span><span class="special">,</span>
|
||||
<span class="comment">// <a class="link" href="command_queue.html#idp7590080-bb">public member functions</a></span>
|
||||
<a class="link" href="device.html" title="Class device">device</a> <a class="link" href="command_queue.html#idp7590832-bb"><span class="identifier">get_device</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<a class="link" href="context.html" title="Class context">context</a> <a class="link" href="command_queue.html#idp7593360-bb"><span class="identifier">get_context</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="identifier">cl_command_queue_properties</span> <a class="link" href="command_queue.html#idp7595760-bb"><span class="identifier">get_properties</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="identifier">T</span> <a class="link" href="command_queue.html#idp7599904-bb"><span class="identifier">get_info</span></a><span class="special">(</span><span class="identifier">cl_command_queue_info</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="keyword">void</span> <a class="link" href="command_queue.html#idp7604064-bb"><span class="identifier">enqueue_read_buffer</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="buffer.html" title="Class buffer">buffer</a><span class="special">&</span><span class="special">,</span> <span class="identifier">size_t</span><span class="special">,</span> <span class="identifier">size_t</span><span class="special">,</span> <span class="keyword">void</span> <span class="special">*</span><span class="special">)</span><span class="special">;</span>
|
||||
<span class="keyword">void</span> <a class="link" href="command_queue.html#idp7611392-bb"><span class="identifier">enqueue_write_buffer</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="buffer.html" title="Class buffer">buffer</a><span class="special">&</span><span class="special">,</span> <span class="identifier">size_t</span><span class="special">,</span> <span class="identifier">size_t</span><span class="special">,</span> <span class="keyword">const</span> <span class="keyword">void</span> <span class="special">*</span><span class="special">)</span><span class="special">;</span>
|
||||
<span class="keyword">void</span> <a class="link" href="command_queue.html#idp7618832-bb"><span class="identifier">enqueue_copy_buffer</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="buffer.html" title="Class buffer">buffer</a><span class="special">&</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="buffer.html" title="Class buffer">buffer</a><span class="special">&</span><span class="special">,</span> <span class="identifier">size_t</span><span class="special">,</span> <span class="identifier">size_t</span><span class="special">,</span>
|
||||
<span class="identifier">size_t</span><span class="special">)</span><span class="special">;</span>
|
||||
<span class="keyword">void</span> <a class="link" href="command_queue.html#idp7241248-bb"><span class="identifier">enqueue_nd_range_kernel</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="kernel.html" title="Class kernel">kernel</a><span class="special">&</span><span class="special">,</span> <span class="identifier">size_t</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">size_t</span><span class="special">*</span><span class="special">,</span>
|
||||
<span class="keyword">const</span> <span class="identifier">size_t</span><span class="special">*</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">size_t</span><span class="special">*</span><span class="special">)</span><span class="special">;</span>
|
||||
<span class="keyword">void</span> <a class="link" href="command_queue.html#idp7249088-bb"><span class="identifier">enqueue_task</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="kernel.html" title="Class kernel">kernel</a><span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
<span class="keyword">void</span> <a class="link" href="command_queue.html#idp7253008-bb"><span class="identifier">flush</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
|
||||
<span class="keyword">void</span> <a class="link" href="command_queue.html#idp7255040-bb"><span class="identifier">finish</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
|
||||
<span class="keyword">void</span> <a class="link" href="command_queue.html#idp7257072-bb"><span class="identifier">enqueue_barrier</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="event.html" title="Class event">event</a> <a class="link" href="command_queue.html#idp7259104-bb"><span class="identifier">enqueue_marker</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
|
||||
<span class="keyword">void</span> <a class="link" href="command_queue.html#idp7261264-bb"><span class="identifier">enqueue_wait_for_event</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="event.html" title="Class event">event</a><span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="event.html" title="Class event">event</a> <a class="link" href="command_queue.html#idp7628544-bb"><span class="identifier">enqueue_nd_range_kernel</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="kernel.html" title="Class kernel">kernel</a><span class="special">&</span><span class="special">,</span> <span class="identifier">size_t</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">size_t</span><span class="special">*</span><span class="special">,</span>
|
||||
<span class="keyword">const</span> <span class="identifier">size_t</span><span class="special">*</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">size_t</span><span class="special">*</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="event.html" title="Class event">event</a> <a class="link" href="command_queue.html#idp7636512-bb"><span class="identifier">enqueue_task</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="kernel.html" title="Class kernel">kernel</a><span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
<span class="keyword">void</span> <a class="link" href="command_queue.html#idp7640560-bb"><span class="identifier">flush</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
|
||||
<span class="keyword">void</span> <a class="link" href="command_queue.html#idp7642592-bb"><span class="identifier">finish</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
|
||||
<span class="keyword">void</span> <a class="link" href="command_queue.html#idp7644624-bb"><span class="identifier">enqueue_barrier</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="event.html" title="Class event">event</a> <a class="link" href="command_queue.html#idm33616-bb"><span class="identifier">enqueue_marker</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
|
||||
<span class="special">}</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp35403632"></a><h2>Description</h2>
|
||||
<a name="idp6059632"></a><h2>Description</h2>
|
||||
<p>
|
||||
Command queues provide the interface for interacting with compute
|
||||
devices. The <a class="link" href="command_queue.html" title="Class command_queue">command_queue</a> class provides
|
||||
@@ -67,7 +67,7 @@
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
<span class="comment">// get the default GPU device</span>
|
||||
<a class="link" href="device.html" title="Class device">boost::compute::device</a> <span class="identifier">gpu</span> <span class="special">=</span> <a class="link" href="system.html#idp7531712-bb">boost::compute::system::default_gpu_device()</a><span class="special">;</span>
|
||||
<a class="link" href="device.html" title="Class device">boost::compute::device</a> <span class="identifier">gpu</span> <span class="special">=</span> <a class="link" href="system.html#idp7946720-bb">boost::compute::system::default_gpu_device()</a><span class="special">;</span>
|
||||
|
||||
<span class="comment">// create a context for the GPU device</span>
|
||||
<a class="link" href="context.html" title="Class context">boost::compute::context</a> <span class="identifier">context</span><span class="special">(</span><span class="identifier">gpu</span><span class="special">)</span><span class="special">;</span>
|
||||
@@ -95,13 +95,13 @@
|
||||
<a class="link" href="kernel.html" title="Class kernel">kernel</a>
|
||||
</p>
|
||||
<div class="refsect2">
|
||||
<a name="idp35424512"></a><h3>
|
||||
<a name="idp6083856"></a><h3>
|
||||
<a name="boost.compute.command_queueconstruct-copy-destruct"></a><code class="computeroutput">command_queue</code>
|
||||
public
|
||||
construct/copy/destruct</h3>
|
||||
<div class="orderedlist"><ol class="orderedlist" type="1">
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><a name="idp7192320-bb"></a><span class="identifier">command_queue</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="context.html" title="Class context">context</a><span class="special">&</span> context<span class="special">,</span> <span class="keyword">const</span> <a class="link" href="device.html" title="Class device">device</a><span class="special">&</span> device<span class="special">,</span>
|
||||
<pre class="literallayout"><a name="idp7570240-bb"></a><span class="identifier">command_queue</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="context.html" title="Class context">context</a><span class="special">&</span> context<span class="special">,</span> <span class="keyword">const</span> <a class="link" href="device.html" title="Class device">device</a><span class="special">&</span> device<span class="special">,</span>
|
||||
<span class="keyword">const</span> <span class="identifier">cl_command_queue_properties</span><span class="special">*</span> properties <span class="special">=</span> <span class="number">0</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Creates a new command queue object in <code class="computeroutput">context</code> for
|
||||
@@ -109,20 +109,28 @@
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><a name="idp7199056-bb"></a><span class="identifier">command_queue</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="command_queue.html" title="Class command_queue">command_queue</a> <span class="special">&</span> other<span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="keyword">explicit</span> <a name="idp7576976-bb"></a><span class="identifier">command_queue</span><span class="special">(</span><span class="identifier">cl_command_queue</span> queue<span class="special">,</span> <span class="keyword">bool</span> retain <span class="special">=</span> <span class="keyword">true</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Creates a new command queue object for <code class="computeroutput">queue</code>. If
|
||||
<code class="computeroutput">retain</code> is <code class="computeroutput">true</code> (the default) the
|
||||
reference count for <code class="computeroutput">queue</code> will be incremented.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><a name="idp7582560-bb"></a><span class="identifier">command_queue</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="command_queue.html" title="Class command_queue">command_queue</a> <span class="special">&</span> other<span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Creates a new command queue object as a copy of
|
||||
<code class="computeroutput">other</code>.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout">command_queue& <a name="idp7202240-bb"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="command_queue.html" title="Class command_queue">command_queue</a> <span class="special">&</span> other<span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout">command_queue& <a name="idp7585744-bb"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="command_queue.html" title="Class command_queue">command_queue</a> <span class="special">&</span> other<span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Copies the command queue from <code class="computeroutput">other</code>.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><a name="idp7205424-bb"></a><span class="special">~</span><span class="identifier">command_queue</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><a name="idp7588928-bb"></a><span class="special">~</span><span class="identifier">command_queue</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Destroys the command queue object.
|
||||
</p>
|
||||
@@ -130,24 +138,24 @@
|
||||
</ol></div>
|
||||
</div>
|
||||
<div class="refsect2">
|
||||
<a name="idp35455920"></a><h3>
|
||||
<a name="idp7206576-bb"></a><code class="computeroutput">command_queue</code> public member functions</h3>
|
||||
<a name="idp6130656"></a><h3>
|
||||
<a name="idp7590080-bb"></a><code class="computeroutput">command_queue</code> public member functions</h3>
|
||||
<div class="orderedlist"><ol class="orderedlist" type="1">
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><a class="link" href="device.html" title="Class device">device</a> <a name="idp7207328-bb"></a><span class="identifier">get_device</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><a class="link" href="device.html" title="Class device">device</a> <a name="idp7590832-bb"></a><span class="identifier">get_device</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Returns the device that the command queue issues instructions
|
||||
to.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><a class="link" href="context.html" title="Class context">context</a> <a name="idp7209856-bb"></a><span class="identifier">get_context</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><a class="link" href="context.html" title="Class context">context</a> <a name="idp7593360-bb"></a><span class="identifier">get_context</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Returns the context for the command queue.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="identifier">cl_command_queue_properties</span> <a name="idp7212256-bb"></a><span class="identifier">get_properties</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="identifier">cl_command_queue_properties</span> <a name="idp7595760-bb"></a><span class="identifier">get_properties</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Returns the properties for the command queue.
|
||||
</p>
|
||||
@@ -168,13 +176,13 @@ if(queue.get_properties() & command_queue::enable_profiling){
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="identifier">T</span> <a name="idp7216400-bb"></a><span class="identifier">get_info</span><span class="special">(</span><span class="identifier">cl_command_queue_info</span> info<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="identifier">T</span> <a name="idp7599904-bb"></a><span class="identifier">get_info</span><span class="special">(</span><span class="identifier">cl_command_queue_info</span> info<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Returns information about the command queue.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="keyword">void</span> <a name="idm31584-bb"></a><span class="identifier">enqueue_read_buffer</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="buffer.html" title="Class buffer">buffer</a><span class="special">&</span> buffer<span class="special">,</span> <span class="identifier">size_t</span> offset<span class="special">,</span> <span class="identifier">size_t</span> size<span class="special">,</span>
|
||||
<pre class="literallayout"><span class="keyword">void</span> <a name="idp7604064-bb"></a><span class="identifier">enqueue_read_buffer</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="buffer.html" title="Class buffer">buffer</a><span class="special">&</span> buffer<span class="special">,</span> <span class="identifier">size_t</span> offset<span class="special">,</span> <span class="identifier">size_t</span> size<span class="special">,</span>
|
||||
<span class="keyword">void</span> <span class="special">*</span> host_ptr<span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Enqueues a command to read from a device buffer to host memory.
|
||||
@@ -184,7 +192,7 @@ if(queue.get_properties() & command_queue::enable_profiling){
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="keyword">void</span> <a name="idp7224096-bb"></a><span class="identifier">enqueue_write_buffer</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="buffer.html" title="Class buffer">buffer</a><span class="special">&</span> buffer<span class="special">,</span> <span class="identifier">size_t</span> offset<span class="special">,</span> <span class="identifier">size_t</span> size<span class="special">,</span>
|
||||
<pre class="literallayout"><span class="keyword">void</span> <a name="idp7611392-bb"></a><span class="identifier">enqueue_write_buffer</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="buffer.html" title="Class buffer">buffer</a><span class="special">&</span> buffer<span class="special">,</span> <span class="identifier">size_t</span> offset<span class="special">,</span> <span class="identifier">size_t</span> size<span class="special">,</span>
|
||||
<span class="keyword">const</span> <span class="keyword">void</span> <span class="special">*</span> host_ptr<span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Enqueues a command to write to a device buffer from host memory.
|
||||
@@ -194,7 +202,7 @@ if(queue.get_properties() & command_queue::enable_profiling){
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="keyword">void</span> <a name="idp7231536-bb"></a><span class="identifier">enqueue_copy_buffer</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="buffer.html" title="Class buffer">buffer</a><span class="special">&</span> src_buffer<span class="special">,</span> <span class="keyword">const</span> <a class="link" href="buffer.html" title="Class buffer">buffer</a><span class="special">&</span> dst_buffer<span class="special">,</span>
|
||||
<pre class="literallayout"><span class="keyword">void</span> <a name="idp7618832-bb"></a><span class="identifier">enqueue_copy_buffer</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="buffer.html" title="Class buffer">buffer</a><span class="special">&</span> src_buffer<span class="special">,</span> <span class="keyword">const</span> <a class="link" href="buffer.html" title="Class buffer">buffer</a><span class="special">&</span> dst_buffer<span class="special">,</span>
|
||||
<span class="identifier">size_t</span> src_offset<span class="special">,</span> <span class="identifier">size_t</span> dst_offset<span class="special">,</span> <span class="identifier">size_t</span> size<span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Enqueues a command to copy data from <code class="computeroutput">src_buffer</code>
|
||||
@@ -205,52 +213,45 @@ if(queue.get_properties() & command_queue::enable_profiling){
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="keyword">void</span> <a name="idp7241248-bb"></a><span class="identifier">enqueue_nd_range_kernel</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="kernel.html" title="Class kernel">kernel</a><span class="special">&</span> kernel<span class="special">,</span> <span class="identifier">size_t</span> work_dim<span class="special">,</span>
|
||||
<span class="keyword">const</span> <span class="identifier">size_t</span><span class="special">*</span> global_work_offset<span class="special">,</span>
|
||||
<span class="keyword">const</span> <span class="identifier">size_t</span><span class="special">*</span> global_work_size<span class="special">,</span>
|
||||
<span class="keyword">const</span> <span class="identifier">size_t</span><span class="special">*</span> local_work_size<span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><a class="link" href="event.html" title="Class event">event</a> <a name="idp7628544-bb"></a><span class="identifier">enqueue_nd_range_kernel</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="kernel.html" title="Class kernel">kernel</a><span class="special">&</span> kernel<span class="special">,</span> <span class="identifier">size_t</span> work_dim<span class="special">,</span>
|
||||
<span class="keyword">const</span> <span class="identifier">size_t</span><span class="special">*</span> global_work_offset<span class="special">,</span>
|
||||
<span class="keyword">const</span> <span class="identifier">size_t</span><span class="special">*</span> global_work_size<span class="special">,</span>
|
||||
<span class="keyword">const</span> <span class="identifier">size_t</span><span class="special">*</span> local_work_size<span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Enqueues <code class="computeroutput">kernel</code> for execution on the device.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="keyword">void</span> <a name="idp7249088-bb"></a><span class="identifier">enqueue_task</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="kernel.html" title="Class kernel">kernel</a><span class="special">&</span> kernel<span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><a class="link" href="event.html" title="Class event">event</a> <a name="idp7636512-bb"></a><span class="identifier">enqueue_task</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="kernel.html" title="Class kernel">kernel</a><span class="special">&</span> kernel<span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Enqueues <code class="computeroutput">kernel</code> for serial execution on the
|
||||
device using a single work-item.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="keyword">void</span> <a name="idp7253008-bb"></a><span class="identifier">flush</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="keyword">void</span> <a name="idp7640560-bb"></a><span class="identifier">flush</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Flushes the command queue.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="keyword">void</span> <a name="idp7255040-bb"></a><span class="identifier">finish</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="keyword">void</span> <a name="idp7642592-bb"></a><span class="identifier">finish</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Blocks until all outstanding operations are completed.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="keyword">void</span> <a name="idp7257072-bb"></a><span class="identifier">enqueue_barrier</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="keyword">void</span> <a name="idp7644624-bb"></a><span class="identifier">enqueue_barrier</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Enqueues a barrier in the command queue.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><a class="link" href="event.html" title="Class event">event</a> <a name="idp7259104-bb"></a><span class="identifier">enqueue_marker</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><a class="link" href="event.html" title="Class event">event</a> <a name="idm33616-bb"></a><span class="identifier">enqueue_marker</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Enqueues a marker in the command queue.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="keyword">void</span> <a name="idp7261264-bb"></a><span class="identifier">enqueue_wait_for_event</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="event.html" title="Class event">event</a><span class="special">&</span> event<span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Enqueues a wait for <code class="computeroutput">event</code> to complete before
|
||||
executing any future commands.
|
||||
</p>
|
||||
</li>
|
||||
</ol></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
<span class="keyword">class</span> <a class="link" href="constant_iterator.html" title="Class template constant_iterator">constant_iterator</a> <span class="special">{</span>
|
||||
<span class="special">}</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp39764400"></a><h2>Description</h2>
|
||||
<a name="idp10531824"></a><h2>Description</h2>
|
||||
<p>
|
||||
The <code class="computeroutput">constant_iterator</code> class provides an iterator that
|
||||
always returns the same value when dereferenced.
|
||||
|
||||
@@ -28,27 +28,28 @@
|
||||
<span class="keyword">class</span> <a class="link" href="context.html" title="Class context">context</a> <span class="special">{</span>
|
||||
<span class="keyword">public</span><span class="special">:</span>
|
||||
<span class="comment">// <a class="link" href="context.html#boost.compute.contextconstruct-copy-destruct">construct/copy/destruct</a></span>
|
||||
<span class="keyword">explicit</span> <a class="link" href="context.html#idp7270224-bb"><span class="identifier">context</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="device.html" title="Class device">device</a><span class="special">&</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">cl_context_properties</span><span class="special">*</span> <span class="special">=</span> <span class="number">0</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="context.html#idp7275424-bb"><span class="identifier">context</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="context.html" title="Class context">context</a> <span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
context& <a class="link" href="context.html#idp7278608-bb"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="context.html" title="Class context">context</a> <span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="context.html#idp7281792-bb"><span class="special">~</span><span class="identifier">context</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
|
||||
<span class="keyword">explicit</span> <a class="link" href="context.html#idp7651056-bb"><span class="identifier">context</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="device.html" title="Class device">device</a><span class="special">&</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">cl_context_properties</span><span class="special">*</span> <span class="special">=</span> <span class="number">0</span><span class="special">)</span><span class="special">;</span>
|
||||
<span class="keyword">explicit</span> <a class="link" href="context.html#idp7656256-bb"><span class="identifier">context</span></a><span class="special">(</span><span class="identifier">cl_context</span><span class="special">,</span> <span class="keyword">bool</span> <span class="special">=</span> <span class="keyword">true</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="context.html#idp7661840-bb"><span class="identifier">context</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="context.html" title="Class context">context</a> <span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
context& <a class="link" href="context.html#idp7665024-bb"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="context.html" title="Class context">context</a> <span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="context.html#idp7668208-bb"><span class="special">~</span><span class="identifier">context</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
|
||||
|
||||
<span class="comment">// <a class="link" href="context.html#idp7282944-bb">public member functions</a></span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="identifier">T</span> <a class="link" href="context.html#idp7283696-bb"><span class="identifier">get_info</span></a><span class="special">(</span><span class="identifier">cl_context_info</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="comment">// <a class="link" href="context.html#idp7669360-bb">public member functions</a></span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="identifier">T</span> <a class="link" href="context.html#idp7670112-bb"><span class="identifier">get_info</span></a><span class="special">(</span><span class="identifier">cl_context_info</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="special">}</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp35610000"></a><h2>Description</h2>
|
||||
<a name="idp6304384"></a><h2>Description</h2>
|
||||
<p>
|
||||
The <code class="computeroutput">context</code> class represents a compute context.
|
||||
</p>
|
||||
<div class="refsect2">
|
||||
<a name="idp35611520"></a><h3>
|
||||
<a name="idp6306096"></a><h3>
|
||||
<a name="boost.compute.contextconstruct-copy-destruct"></a><code class="computeroutput">context</code>
|
||||
public
|
||||
construct/copy/destruct</h3>
|
||||
<div class="orderedlist"><ol class="orderedlist" type="1">
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="keyword">explicit</span> <a name="idp7270224-bb"></a><span class="identifier">context</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="device.html" title="Class device">device</a><span class="special">&</span> device<span class="special">,</span>
|
||||
<pre class="literallayout"><span class="keyword">explicit</span> <a name="idp7651056-bb"></a><span class="identifier">context</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="device.html" title="Class device">device</a><span class="special">&</span> device<span class="special">,</span>
|
||||
<span class="keyword">const</span> <span class="identifier">cl_context_properties</span><span class="special">*</span> properties <span class="special">=</span> <span class="number">0</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Creates a new context object for <code class="computeroutput">device</code> with
|
||||
@@ -56,28 +57,36 @@
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><a name="idp7275424-bb"></a><span class="identifier">context</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="context.html" title="Class context">context</a> <span class="special">&</span> other<span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="keyword">explicit</span> <a name="idp7656256-bb"></a><span class="identifier">context</span><span class="special">(</span><span class="identifier">cl_context</span> context<span class="special">,</span> <span class="keyword">bool</span> retain <span class="special">=</span> <span class="keyword">true</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Creates a new context object for <code class="computeroutput">context</code>. If
|
||||
<code class="computeroutput">retain</code> is <code class="computeroutput">true</code> (the default) the
|
||||
reference count for <code class="computeroutput">context</code> will be incremented.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><a name="idp7661840-bb"></a><span class="identifier">context</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="context.html" title="Class context">context</a> <span class="special">&</span> other<span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Creates a new context object as a copy of <code class="computeroutput">other</code>.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout">context& <a name="idp7278608-bb"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="context.html" title="Class context">context</a> <span class="special">&</span> other<span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout">context& <a name="idp7665024-bb"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="context.html" title="Class context">context</a> <span class="special">&</span> other<span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Copies the context from <code class="computeroutput">other</code>.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><a name="idp7281792-bb"></a><span class="special">~</span><span class="identifier">context</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><a name="idp7668208-bb"></a><span class="special">~</span><span class="identifier">context</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>Destroys the context object.</p>
|
||||
</li>
|
||||
</ol></div>
|
||||
</div>
|
||||
<div class="refsect2">
|
||||
<a name="idp35640560"></a><h3>
|
||||
<a name="idp7282944-bb"></a><code class="computeroutput">context</code> public member functions</h3>
|
||||
<a name="idp6349792"></a><h3>
|
||||
<a name="idp7669360-bb"></a><code class="computeroutput">context</code> public member functions</h3>
|
||||
<div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem">
|
||||
<pre class="literallayout"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="identifier">T</span> <a name="idp7283696-bb"></a><span class="identifier">get_info</span><span class="special">(</span><span class="identifier">cl_context_info</span> info<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="identifier">T</span> <a name="idp7670112-bb"></a><span class="identifier">get_info</span><span class="special">(</span><span class="identifier">cl_context_info</span> info<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Returns information about the context.
|
||||
</p>
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<span class="identifier">copy</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span> <span class="identifier">OutputIterator</span> result<span class="special">,</span>
|
||||
<span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp37167488"></a><h2>Description</h2>
|
||||
<a name="idp7935424"></a><h2>Description</h2>
|
||||
<p>
|
||||
Copies the values from the range [<code class="computeroutput">first</code>,
|
||||
<code class="computeroutput">last</code>) to the range beginning at <code class="computeroutput">result</code>.
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<span class="identifier">copy_async</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span> <span class="identifier">OutputIterator</span> result<span class="special">,</span>
|
||||
<span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp37205168"></a><h2>Description</h2>
|
||||
<a name="idp7972896"></a><h2>Description</h2>
|
||||
<p>
|
||||
Copies the values from the range [<code class="computeroutput">first</code>,
|
||||
<code class="computeroutput">last</code>) to the range beginning at <code class="computeroutput">result</code>.
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<span class="identifier">copy_if</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span> <span class="identifier">OutputIterator</span> result<span class="special">,</span>
|
||||
<span class="identifier">Predicate</span> predicate<span class="special">,</span> <span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp37252304"></a><h2>Description</h2>
|
||||
<a name="idp8020016"></a><h2>Description</h2>
|
||||
<p>
|
||||
Copies each element in the range [<code class="computeroutput">first</code>,
|
||||
<code class="computeroutput">last</code>) for which <code class="computeroutput">predicate</code> returns
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<span class="identifier">copy_n</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">Size</span> count<span class="special">,</span> <span class="identifier">OutputIterator</span> result<span class="special">,</span>
|
||||
<span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp37297168"></a><h2>Description</h2>
|
||||
<a name="idp8065056"></a><h2>Description</h2>
|
||||
<p>
|
||||
Copies the values from the range [<code class="computeroutput">first</code>,
|
||||
<code class="computeroutput">first + count</code>) to the range beginning at
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<span class="identifier">size_t</span> <span class="identifier">count</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span><span class="special">&</span> value<span class="special">,</span>
|
||||
<span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp37342256"></a><h2>Description</h2>
|
||||
<a name="idp8109760"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns the number of occurrences of <code class="computeroutput">value</code> in the
|
||||
range [<code class="computeroutput">first</code>, <code class="computeroutput">last</code>).
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<span class="identifier">size_t</span> <span class="identifier">count_if</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span>
|
||||
<span class="identifier">UnaryPredicate</span> predicate<span class="special">,</span> <span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp37385440"></a><h2>Description</h2>
|
||||
<a name="idp8152896"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns the number of elements in the range [<code class="computeroutput">first</code>,
|
||||
<code class="computeroutput">last</code>) for which <code class="computeroutput">predicate</code> returns
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
<span class="keyword">class</span> <a class="link" href="counting_iterator.html" title="Class template counting_iterator">counting_iterator</a> <span class="special">{</span>
|
||||
<span class="special">}</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp39818928"></a><h2>Description</h2>
|
||||
<a name="idp10586320"></a><h2>Description</h2>
|
||||
<p>
|
||||
The <code class="computeroutput">counting_iterator</code> class provides a random-access
|
||||
iterator that returns sequential values when dereferenced.
|
||||
|
||||
@@ -28,41 +28,41 @@
|
||||
<span class="keyword">class</span> <a class="link" href="device.html" title="Class device">device</a> <span class="special">{</span>
|
||||
<span class="keyword">public</span><span class="special">:</span>
|
||||
<span class="comment">// <a class="link" href="device.html#boost.compute.deviceconstruct-copy-destruct">construct/copy/destruct</a></span>
|
||||
<a class="link" href="device.html#idp7297184-bb"><span class="identifier">device</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
|
||||
<span class="keyword">explicit</span> <a class="link" href="device.html#idp7298592-bb"><span class="identifier">device</span></a><span class="special">(</span><span class="identifier">cl_device_id</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="device.html#idp7301632-bb"><span class="identifier">device</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="device.html" title="Class device">device</a> <span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
device& <a class="link" href="device.html#idp7304816-bb"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="device.html" title="Class device">device</a> <span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="device.html#idp7308000-bb"><span class="special">~</span><span class="identifier">device</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="device.html#idp7683600-bb"><span class="identifier">device</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
|
||||
<span class="keyword">explicit</span> <a class="link" href="device.html#idp7685008-bb"><span class="identifier">device</span></a><span class="special">(</span><span class="identifier">cl_device_id</span><span class="special">,</span> <span class="keyword">bool</span> <span class="special">=</span> <span class="keyword">true</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="device.html#idp7689440-bb"><span class="identifier">device</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="device.html" title="Class device">device</a> <span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
device& <a class="link" href="device.html#idp7692624-bb"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="device.html" title="Class device">device</a> <span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="device.html#idp7695808-bb"><span class="special">~</span><span class="identifier">device</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
|
||||
|
||||
<span class="comment">// <a class="link" href="device.html#idp7309152-bb">public member functions</a></span>
|
||||
<span class="identifier">cl_device_id</span> <a class="link" href="device.html#idp7309904-bb"><span class="identifier">id</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="identifier">cl_device_type</span> <a class="link" href="device.html#idp7312176-bb"><span class="identifier">type</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <a class="link" href="device.html#idp7314448-bb"><span class="identifier">name</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <a class="link" href="device.html#idp7316720-bb"><span class="identifier">vendor</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="identifier">uint_</span> <a class="link" href="device.html#idp7318992-bb"><span class="identifier">address_bits</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="identifier">ulong_</span> <a class="link" href="device.html#idp7321264-bb"><span class="identifier">global_memory_size</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="identifier">ulong_</span> <a class="link" href="device.html#idp7323536-bb"><span class="identifier">local_memory_size</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="identifier">uint_</span> <a class="link" href="device.html#idp7325808-bb"><span class="identifier">clock_frequency</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="identifier">uint_</span> <a class="link" href="device.html#idp7328080-bb"><span class="identifier">compute_units</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="identifier">size_t</span> <a class="link" href="device.html#idp7330352-bb"><span class="identifier">profiling_timer_resolution</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="identifier">T</span> <a class="link" href="device.html#idp7332624-bb"><span class="identifier">preferred_vector_width</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="identifier">T</span> <a class="link" href="device.html#idp7336160-bb"><span class="identifier">get_info</span></a><span class="special">(</span><span class="identifier">cl_device_info</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="comment">// <a class="link" href="device.html#idp7696960-bb">public member functions</a></span>
|
||||
<span class="identifier">cl_device_id</span> <a class="link" href="device.html#idp7697712-bb"><span class="identifier">id</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="identifier">cl_device_type</span> <a class="link" href="device.html#idp7699984-bb"><span class="identifier">type</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <a class="link" href="device.html#idp7702256-bb"><span class="identifier">name</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <a class="link" href="device.html#idp7704528-bb"><span class="identifier">vendor</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="identifier">uint_</span> <a class="link" href="device.html#idp7706800-bb"><span class="identifier">address_bits</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="identifier">ulong_</span> <a class="link" href="device.html#idp7709072-bb"><span class="identifier">global_memory_size</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="identifier">ulong_</span> <a class="link" href="device.html#idp7711344-bb"><span class="identifier">local_memory_size</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="identifier">uint_</span> <a class="link" href="device.html#idp7713616-bb"><span class="identifier">clock_frequency</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="identifier">uint_</span> <a class="link" href="device.html#idp7715888-bb"><span class="identifier">compute_units</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="identifier">size_t</span> <a class="link" href="device.html#idp7718160-bb"><span class="identifier">profiling_timer_resolution</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="identifier">T</span> <a class="link" href="device.html#idp7720432-bb"><span class="identifier">preferred_vector_width</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="identifier">T</span> <a class="link" href="device.html#idp7723968-bb"><span class="identifier">get_info</span></a><span class="special">(</span><span class="identifier">cl_device_info</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="special">}</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp35752432"></a><h2>Description</h2>
|
||||
<a name="idp6464240"></a><h2>Description</h2>
|
||||
<p>
|
||||
Typical compute devices include GPUs and multi-core CPUs. A list
|
||||
of all compute devices available on a platform can be obtained via
|
||||
the <a class="link" href="platform.html#idp7470848-bb">platform::devices()</a> method.
|
||||
the <a class="link" href="platform.html#idp7869824-bb">platform::devices()</a> method.
|
||||
</p>
|
||||
<p>
|
||||
A default device can be easily created with the one of the
|
||||
following convenience methods:
|
||||
</p>
|
||||
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
|
||||
<li class="listitem"><a class="link" href="system.html#idp7528928-bb">system::default_device()</a></li>
|
||||
<li class="listitem"><a class="link" href="system.html#idp7534208-bb">system::default_cpu_device()</a></li>
|
||||
<li class="listitem"><a class="link" href="system.html#idp7531712-bb">system::default_gpu_device()</a></li>
|
||||
<li class="listitem"><a class="link" href="system.html#idp7943568-bb">system::default_device()</a></li>
|
||||
<li class="listitem"><a class="link" href="system.html#idp7949584-bb">system::default_cpu_device()</a></li>
|
||||
<li class="listitem"><a class="link" href="system.html#idp7946720-bb">system::default_gpu_device()</a></li>
|
||||
</ul></div>
|
||||
<p>
|
||||
</p>
|
||||
@@ -71,42 +71,42 @@
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
<span class="comment">// get the default GPU device</span>
|
||||
<a class="link" href="device.html" title="Class device">boost::compute::device</a> <span class="identifier">gpu</span> <span class="special">=</span> <a class="link" href="system.html#idp7531712-bb">boost::compute::system::default_gpu_device()</a><span class="special">;</span>
|
||||
<a class="link" href="device.html" title="Class device">boost::compute::device</a> <span class="identifier">gpu</span> <span class="special">=</span> <a class="link" href="system.html#idp7946720-bb">boost::compute::system::default_gpu_device()</a><span class="special">;</span>
|
||||
</pre>
|
||||
<p>
|
||||
</p>
|
||||
<div class="refsect2">
|
||||
<a name="idp35763728"></a><h3>
|
||||
<a name="idp6475536"></a><h3>
|
||||
<a name="boost.compute.deviceconstruct-copy-destruct"></a><code class="computeroutput">device</code>
|
||||
public
|
||||
construct/copy/destruct</h3>
|
||||
<div class="orderedlist"><ol class="orderedlist" type="1">
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><a name="idp7297184-bb"></a><span class="identifier">device</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><a name="idp7683600-bb"></a><span class="identifier">device</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Creates a null device object.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="keyword">explicit</span> <a name="idp7298592-bb"></a><span class="identifier">device</span><span class="special">(</span><span class="identifier">cl_device_id</span> id<span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="keyword">explicit</span> <a name="idp7685008-bb"></a><span class="identifier">device</span><span class="special">(</span><span class="identifier">cl_device_id</span> id<span class="special">,</span> <span class="keyword">bool</span> retain <span class="special">=</span> <span class="keyword">true</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Creates a new device object for <code class="computeroutput">id</code>.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><a name="idp7301632-bb"></a><span class="identifier">device</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="device.html" title="Class device">device</a> <span class="special">&</span> other<span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><a name="idp7689440-bb"></a><span class="identifier">device</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="device.html" title="Class device">device</a> <span class="special">&</span> other<span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Creates a new device object as a copy of <code class="computeroutput">other</code>.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout">device& <a name="idp7304816-bb"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="device.html" title="Class device">device</a> <span class="special">&</span> other<span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout">device& <a name="idp7692624-bb"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="device.html" title="Class device">device</a> <span class="special">&</span> other<span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Copies the device from <code class="computeroutput">other</code>.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><a name="idp7308000-bb"></a><span class="special">~</span><span class="identifier">device</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><a name="idp7695808-bb"></a><span class="special">~</span><span class="identifier">device</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Destroys the device object.
|
||||
</p>
|
||||
@@ -114,77 +114,77 @@
|
||||
</ol></div>
|
||||
</div>
|
||||
<div class="refsect2">
|
||||
<a name="idp35794608"></a><h3>
|
||||
<a name="idp7309152-bb"></a><code class="computeroutput">device</code> public member functions</h3>
|
||||
<a name="idp6509040"></a><h3>
|
||||
<a name="idp7696960-bb"></a><code class="computeroutput">device</code> public member functions</h3>
|
||||
<div class="orderedlist"><ol class="orderedlist" type="1">
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="identifier">cl_device_id</span> <a name="idp7309904-bb"></a><span class="identifier">id</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="identifier">cl_device_id</span> <a name="idp7697712-bb"></a><span class="identifier">id</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Returns the device's ID.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="identifier">cl_device_type</span> <a name="idp7312176-bb"></a><span class="identifier">type</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="identifier">cl_device_type</span> <a name="idp7699984-bb"></a><span class="identifier">type</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Returns the type of the device.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <a name="idp7314448-bb"></a><span class="identifier">name</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <a name="idp7702256-bb"></a><span class="identifier">name</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Returns the name of the device.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <a name="idp7316720-bb"></a><span class="identifier">vendor</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <a name="idp7704528-bb"></a><span class="identifier">vendor</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Returns the name of the vendor of the device.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="identifier">uint_</span> <a name="idp7318992-bb"></a><span class="identifier">address_bits</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="identifier">uint_</span> <a name="idp7706800-bb"></a><span class="identifier">address_bits</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Returns the device's address size in bits.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="identifier">ulong_</span> <a name="idp7321264-bb"></a><span class="identifier">global_memory_size</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="identifier">ulong_</span> <a name="idp7709072-bb"></a><span class="identifier">global_memory_size</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Returns the size of the global memory in bytes.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="identifier">ulong_</span> <a name="idp7323536-bb"></a><span class="identifier">local_memory_size</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="identifier">ulong_</span> <a name="idp7711344-bb"></a><span class="identifier">local_memory_size</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Returns the size of the local memory in bytes.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="identifier">uint_</span> <a name="idp7325808-bb"></a><span class="identifier">clock_frequency</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="identifier">uint_</span> <a name="idp7713616-bb"></a><span class="identifier">clock_frequency</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Returns the clock frequency for the device.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="identifier">uint_</span> <a name="idp7328080-bb"></a><span class="identifier">compute_units</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="identifier">uint_</span> <a name="idp7715888-bb"></a><span class="identifier">compute_units</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Returns the number of compute units.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="identifier">size_t</span> <a name="idp7330352-bb"></a><span class="identifier">profiling_timer_resolution</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="identifier">size_t</span> <a name="idp7718160-bb"></a><span class="identifier">profiling_timer_resolution</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Returns the profiling timer resolution in nanoseconds.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="identifier">T</span> <a name="idp7332624-bb"></a><span class="identifier">preferred_vector_width</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="identifier">T</span> <a name="idp7720432-bb"></a><span class="identifier">preferred_vector_width</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Returns the preferred vector width for type <code class="computeroutput">T</code>.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="identifier">T</span> <a name="idp7336160-bb"></a><span class="identifier">get_info</span><span class="special">(</span><span class="identifier">cl_device_info</span> info<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="identifier">T</span> <a name="idp7723968-bb"></a><span class="identifier">get_info</span><span class="special">(</span><span class="identifier">cl_device_info</span> info<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Returns information about the device.
|
||||
</p>
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<span class="keyword">bool</span> <span class="identifier">equal</span><span class="special">(</span><span class="identifier">InputIterator1</span> first1<span class="special">,</span> <span class="identifier">InputIterator1</span> last1<span class="special">,</span>
|
||||
<span class="identifier">InputIterator2</span> first2<span class="special">,</span> <span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp37425696"></a><h2>Description</h2>
|
||||
<a name="idp8193040"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns <code class="computeroutput">true</code> if the range [<code class="computeroutput">first1</code>,
|
||||
<code class="computeroutput">last1</code>) and the range beginning at <code class="computeroutput">first2</code>
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<span class="identifier">equal_range</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span><span class="special">&</span> value<span class="special">,</span>
|
||||
<span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp37476256"></a><h2>Description</h2>
|
||||
<a name="idp8243728"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns a pair of iterators containing the range of values equal
|
||||
to <code class="computeroutput">value</code> in the sorted range [<code class="computeroutput">first</code>,
|
||||
|
||||
@@ -28,46 +28,55 @@
|
||||
<span class="keyword">class</span> <a class="link" href="event.html" title="Class event">event</a> <span class="special">{</span>
|
||||
<span class="keyword">public</span><span class="special">:</span>
|
||||
<span class="comment">// <a class="link" href="event.html#boost.compute.eventconstruct-copy-destruct">construct/copy/destruct</a></span>
|
||||
<span class="keyword">explicit</span> <a class="link" href="event.html#idp7345472-bb"><span class="identifier">event</span></a><span class="special">(</span><span class="identifier">cl_event</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="event.html#idp7348512-bb"><span class="identifier">event</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="event.html" title="Class event">event</a> <span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
event& <a class="link" href="event.html#idp7351696-bb"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="event.html" title="Class event">event</a> <span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="event.html#idp7354880-bb"><span class="special">~</span><span class="identifier">event</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
|
||||
<span class="keyword">explicit</span> <a class="link" href="event.html#idp7733280-bb"><span class="identifier">event</span></a><span class="special">(</span><span class="identifier">cl_event</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="event.html#idp7736320-bb"><span class="identifier">event</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="event.html" title="Class event">event</a> <span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
<span class="keyword">explicit</span> <a class="link" href="event.html#idp7739504-bb"><span class="identifier">event</span></a><span class="special">(</span><span class="identifier">cl_event</span><span class="special">,</span> <span class="keyword">bool</span> <span class="special">=</span> <span class="keyword">true</span><span class="special">)</span><span class="special">;</span>
|
||||
event& <a class="link" href="event.html#idp7745088-bb"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="event.html" title="Class event">event</a> <span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="event.html#idp7748272-bb"><span class="special">~</span><span class="identifier">event</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
|
||||
|
||||
<span class="comment">// <a class="link" href="event.html#idp7356032-bb">public member functions</a></span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="identifier">T</span> <a class="link" href="event.html#idp7356784-bb"><span class="identifier">get_info</span></a><span class="special">(</span><span class="identifier">cl_event_info</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="identifier">T</span> <a class="link" href="event.html#idp7360944-bb"><span class="identifier">get_profiling_info</span></a><span class="special">(</span><span class="identifier">cl_profiling_info</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="comment">// <a class="link" href="event.html#idp7749424-bb">public member functions</a></span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="identifier">T</span> <a class="link" href="event.html#idp7750176-bb"><span class="identifier">get_info</span></a><span class="special">(</span><span class="identifier">cl_event_info</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="identifier">T</span> <a class="link" href="event.html#idp7754336-bb"><span class="identifier">get_profiling_info</span></a><span class="special">(</span><span class="identifier">cl_profiling_info</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="special">}</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp35922752"></a><h2>Description</h2>
|
||||
<a name="idp6643984"></a><h2>Description</h2>
|
||||
<p>
|
||||
The <code class="computeroutput">event</code> class represents an OpenCL event.
|
||||
</p>
|
||||
<div class="refsect2">
|
||||
<a name="idp35924464"></a><h3>
|
||||
<a name="idp6645696"></a><h3>
|
||||
<a name="boost.compute.eventconstruct-copy-destruct"></a><code class="computeroutput">event</code>
|
||||
public
|
||||
construct/copy/destruct</h3>
|
||||
<div class="orderedlist"><ol class="orderedlist" type="1">
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="keyword">explicit</span> <a name="idp7345472-bb"></a><span class="identifier">event</span><span class="special">(</span><span class="identifier">cl_event</span> event<span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="keyword">explicit</span> <a name="idp7733280-bb"></a><span class="identifier">event</span><span class="special">(</span><span class="identifier">cl_event</span> event<span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Creates a new compute event for <code class="computeroutput">event</code>.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><a name="idp7348512-bb"></a><span class="identifier">event</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="event.html" title="Class event">event</a> <span class="special">&</span> other<span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><a name="idp7736320-bb"></a><span class="identifier">event</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="event.html" title="Class event">event</a> <span class="special">&</span> other<span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Creates a new event object as a copy of <code class="computeroutput">other</code>.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout">event& <a name="idp7351696-bb"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="event.html" title="Class event">event</a> <span class="special">&</span> other<span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="keyword">explicit</span> <a name="idp7739504-bb"></a><span class="identifier">event</span><span class="special">(</span><span class="identifier">cl_event</span> event<span class="special">,</span> <span class="keyword">bool</span> retain <span class="special">=</span> <span class="keyword">true</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Creates a new event object for <code class="computeroutput">event</code>. If
|
||||
<code class="computeroutput">retain</code> is <code class="computeroutput">true</code> (the default) the
|
||||
reference count for <code class="computeroutput">event</code> will be incremented.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout">event& <a name="idp7745088-bb"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="event.html" title="Class event">event</a> <span class="special">&</span> other<span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Copies the event from <code class="computeroutput">other</code>.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><a name="idp7354880-bb"></a><span class="special">~</span><span class="identifier">event</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><a name="idp7748272-bb"></a><span class="special">~</span><span class="identifier">event</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Destroys the event object.
|
||||
</p>
|
||||
@@ -75,17 +84,17 @@
|
||||
</ol></div>
|
||||
</div>
|
||||
<div class="refsect2">
|
||||
<a name="idp35951472"></a><h3>
|
||||
<a name="idp7356032-bb"></a><code class="computeroutput">event</code> public member functions</h3>
|
||||
<a name="idp6683680"></a><h3>
|
||||
<a name="idp7749424-bb"></a><code class="computeroutput">event</code> public member functions</h3>
|
||||
<div class="orderedlist"><ol class="orderedlist" type="1">
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="identifier">T</span> <a name="idp7356784-bb"></a><span class="identifier">get_info</span><span class="special">(</span><span class="identifier">cl_event_info</span> info<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="identifier">T</span> <a name="idp7750176-bb"></a><span class="identifier">get_info</span><span class="special">(</span><span class="identifier">cl_event_info</span> info<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Returns information about the event.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="identifier">T</span> <a name="idp7360944-bb"></a><span class="identifier">get_profiling_info</span><span class="special">(</span><span class="identifier">cl_profiling_info</span> info<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="identifier">T</span> <a name="idp7754336-bb"></a><span class="identifier">get_profiling_info</span><span class="special">(</span><span class="identifier">cl_profiling_info</span> info<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Returns profiling information for the event.
|
||||
</p>
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<span class="identifier">exclusive_scan</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span>
|
||||
<span class="identifier">OutputIterator</span> result<span class="special">,</span> <span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp37520240"></a><h2>Description</h2>
|
||||
<a name="idp8287856"></a><h2>Description</h2>
|
||||
<p>
|
||||
Performs an exclusive scan on the elements in the range
|
||||
[<code class="computeroutput">first</code>, <code class="computeroutput">last</code>) and stores the results in
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<span class="identifier">Iterator</span> <span class="identifier">fill</span><span class="special">(</span><span class="identifier">Iterator</span> first<span class="special">,</span> <span class="identifier">Iterator</span> last<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span><span class="special">&</span> value<span class="special">,</span>
|
||||
<span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp37565152"></a><h2>Description</h2>
|
||||
<a name="idp8332768"></a><h2>Description</h2>
|
||||
<p>
|
||||
Fills the range [<code class="computeroutput">first</code>, <code class="computeroutput">last</code>) with
|
||||
<code class="computeroutput">value</code>.
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<span class="identifier">Iterator</span> <span class="identifier">fill_n</span><span class="special">(</span><span class="identifier">Iterator</span> first<span class="special">,</span> <span class="identifier">Size</span> count<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span><span class="special">&</span> value<span class="special">,</span>
|
||||
<span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp37613520"></a><h2>Description</h2>
|
||||
<a name="idp8381136"></a><h2>Description</h2>
|
||||
<p>
|
||||
Fills the range [<code class="computeroutput">first</code>, <code class="computeroutput">first + count</code>)
|
||||
with <code class="computeroutput">value</code>.
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<span class="identifier">find</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span><span class="special">&</span> value<span class="special">,</span>
|
||||
<span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp37656672"></a><h2>Description</h2>
|
||||
<a name="idp8424128"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns an iterator pointing to the first element in the range
|
||||
[<code class="computeroutput">first</code>, <code class="computeroutput">last</code>) that equals
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<span class="identifier">find_if</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span> <span class="identifier">UnaryPredicate</span> predicate<span class="special">,</span>
|
||||
<span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp37696368"></a><h2>Description</h2>
|
||||
<a name="idp8463952"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns an iterator pointing to the first element in the range
|
||||
[<code class="computeroutput">first</code>, <code class="computeroutput">last</code>) for which
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<span class="identifier">find_if_not</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span>
|
||||
<span class="identifier">UnaryPredicate</span> predicate<span class="special">,</span> <span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp37736944"></a><h2>Description</h2>
|
||||
<a name="idp8504384"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns an iterator pointing to the first element in the range
|
||||
[<code class="computeroutput">first</code>, <code class="computeroutput">last</code>) for which
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<span class="keyword">class</span> <a class="link" href="flat_map.html" title="Class template flat_map">flat_map</a> <span class="special">{</span>
|
||||
<span class="special">}</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp39516336"></a><h2>Description</h2>
|
||||
<a name="idp10282912"></a><h2>Description</h2>
|
||||
<p>
|
||||
See also: <a class="link" href="flat_set.html" title="Class template flat_set">flat_set</a>
|
||||
</p>
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<span class="keyword">class</span> <a class="link" href="flat_set.html" title="Class template flat_set">flat_set</a> <span class="special">{</span>
|
||||
<span class="special">}</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp39541152"></a><h2>Description</h2>
|
||||
<a name="idp10308064"></a><h2>Description</h2>
|
||||
<p>
|
||||
See also: <a class="link" href="flat_map.html" title="Class template flat_map">flat_map</a>
|
||||
</p>
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<span class="identifier">for_each</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span> <span class="identifier">UnaryFunction</span> function<span class="special">,</span>
|
||||
<span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp37777392"></a><h2>Description</h2>
|
||||
<a name="idp8544880"></a><h2>Description</h2>
|
||||
<p>
|
||||
Calls <code class="computeroutput">function</code> on each element in the range
|
||||
[<code class="computeroutput">first</code>, <code class="computeroutput">last</code>).
|
||||
|
||||
@@ -29,49 +29,49 @@
|
||||
<span class="keyword">class</span> <a class="link" href="future.html" title="Class template future">future</a> <span class="special">{</span>
|
||||
<span class="keyword">public</span><span class="special">:</span>
|
||||
<span class="comment">// <a class="link" href="future.html#boost.compute.futureconstruct-copy-destruct">construct/copy/destruct</a></span>
|
||||
<a class="link" href="future.html#idp7372544-bb"><span class="identifier">future</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="future.html#idp7373952-bb"><span class="identifier">future</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="future.html" title="Class template future">future<T></a> <span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
future& <a class="link" href="future.html#idp7377136-bb"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="future.html" title="Class template future">future<T></a> <span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="future.html#idp7380320-bb"><span class="special">~</span><span class="identifier">future</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="future.html#idp7765936-bb"><span class="identifier">future</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="future.html#idp7767344-bb"><span class="identifier">future</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="future.html" title="Class template future">future<T></a> <span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
future& <a class="link" href="future.html#idp7770528-bb"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="future.html" title="Class template future">future<T></a> <span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="future.html#idp7773712-bb"><span class="special">~</span><span class="identifier">future</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
|
||||
|
||||
<span class="comment">// <a class="link" href="future.html#idp7381472-bb">public member functions</a></span>
|
||||
<span class="identifier">T</span> <a class="link" href="future.html#idp7382224-bb"><span class="identifier">get</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
|
||||
<span class="keyword">bool</span> <a class="link" href="future.html#idp7384432-bb"><span class="identifier">valid</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="keyword">void</span> <a class="link" href="future.html#idp7387088-bb"><span class="identifier">wait</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<a class="link" href="event.html" title="Class event">event</a> <a class="link" href="future.html#idp7389360-bb"><span class="identifier">get_event</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="comment">// <a class="link" href="future.html#idp7774864-bb">public member functions</a></span>
|
||||
<span class="identifier">T</span> <a class="link" href="future.html#idp7775616-bb"><span class="identifier">get</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
|
||||
<span class="keyword">bool</span> <a class="link" href="future.html#idp7777824-bb"><span class="identifier">valid</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="keyword">void</span> <a class="link" href="future.html#idp7780480-bb"><span class="identifier">wait</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<a class="link" href="event.html" title="Class event">event</a> <a class="link" href="future.html#idp7782752-bb"><span class="identifier">get_event</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="special">}</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp36032304"></a><h2>Description</h2>
|
||||
<a name="idp6764592"></a><h2>Description</h2>
|
||||
<p>
|
||||
The <code class="computeroutput">future</code> class represents the result of an
|
||||
asynchronous computation.
|
||||
</p>
|
||||
<div class="refsect2">
|
||||
<a name="idp36033952"></a><h3>
|
||||
<a name="idp6766304"></a><h3>
|
||||
<a name="boost.compute.futureconstruct-copy-destruct"></a><code class="computeroutput">future</code>
|
||||
public
|
||||
construct/copy/destruct</h3>
|
||||
<div class="orderedlist"><ol class="orderedlist" type="1">
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><a name="idp7372544-bb"></a><span class="identifier">future</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><a name="idp7765936-bb"></a><span class="identifier">future</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Creates a null future.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><a name="idp7373952-bb"></a><span class="identifier">future</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="future.html" title="Class template future">future<T></a> <span class="special">&</span> other<span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><a name="idp7767344-bb"></a><span class="identifier">future</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="future.html" title="Class template future">future<T></a> <span class="special">&</span> other<span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Creates a new future object as a copy of <code class="computeroutput">other</code>.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout">future& <a name="idp7377136-bb"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="future.html" title="Class template future">future<T></a> <span class="special">&</span> other<span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout">future& <a name="idp7770528-bb"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="future.html" title="Class template future">future<T></a> <span class="special">&</span> other<span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Copies the future from <code class="computeroutput">other</code>.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><a name="idp7380320-bb"></a><span class="special">~</span><span class="identifier">future</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><a name="idp7773712-bb"></a><span class="special">~</span><span class="identifier">future</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Destroys the future object.
|
||||
</p>
|
||||
@@ -79,30 +79,30 @@
|
||||
</ol></div>
|
||||
</div>
|
||||
<div class="refsect2">
|
||||
<a name="idp36058944"></a><h3>
|
||||
<a name="idp7381472-bb"></a><code class="computeroutput">future</code> public member functions</h3>
|
||||
<a name="idp6791168"></a><h3>
|
||||
<a name="idp7774864-bb"></a><code class="computeroutput">future</code> public member functions</h3>
|
||||
<div class="orderedlist"><ol class="orderedlist" type="1">
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="identifier">T</span> <a name="idp7382224-bb"></a><span class="identifier">get</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="identifier">T</span> <a name="idp7775616-bb"></a><span class="identifier">get</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Returns the result stored in the future. This will block until
|
||||
the computation is completed and the result is ready.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="keyword">bool</span> <a name="idp7384432-bb"></a><span class="identifier">valid</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="keyword">bool</span> <a name="idp7777824-bb"></a><span class="identifier">valid</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Returns <code class="computeroutput">true</code> if the future is valid.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="keyword">void</span> <a name="idp7387088-bb"></a><span class="identifier">wait</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="keyword">void</span> <a name="idp7780480-bb"></a><span class="identifier">wait</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Blocks until the asynchronous computation is complete.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><a class="link" href="event.html" title="Class event">event</a> <a name="idp7389360-bb"></a><span class="identifier">get_event</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><a class="link" href="event.html" title="Class event">event</a> <a name="idp7782752-bb"></a><span class="identifier">get_event</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Returns the event associated with the future.
|
||||
</p>
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<span class="keyword">void</span> <span class="identifier">gather</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span> <span class="identifier">MapIterator</span> map<span class="special">,</span>
|
||||
<span class="identifier">OutputIterator</span> result<span class="special">,</span> <span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp37824368"></a><h2>Description</h2>
|
||||
<a name="idp8591728"></a><h2>Description</h2>
|
||||
<p>
|
||||
Copies the elements from the range [<code class="computeroutput">first</code>,
|
||||
<code class="computeroutput">last</code>) to the range beginning at <code class="computeroutput">result</code>
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<span class="keyword">void</span> <span class="identifier">generate</span><span class="special">(</span><span class="identifier">OutputIterator</span> first<span class="special">,</span> <span class="identifier">OutputIterator</span> last<span class="special">,</span>
|
||||
<span class="identifier">Generator</span> generator<span class="special">,</span> <span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp37866592"></a><h2>Description</h2>
|
||||
<a name="idp8633792"></a><h2>Description</h2>
|
||||
<p>
|
||||
Stores the result of <code class="computeroutput">generator</code> for each element in
|
||||
the range [<code class="computeroutput">first</code>, <code class="computeroutput">last</code>).
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<span class="keyword">void</span> <span class="identifier">generate_n</span><span class="special">(</span><span class="identifier">OutputIterator</span> first<span class="special">,</span> <span class="identifier">Size</span> count<span class="special">,</span> <span class="identifier">Generator</span> generator<span class="special">,</span>
|
||||
<span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp37909024"></a><h2>Description</h2>
|
||||
<a name="idp8676192"></a><h2>Description</h2>
|
||||
<p>
|
||||
Stores the result of <code class="computeroutput">generator</code> for each element in
|
||||
the range [<code class="computeroutput">first</code>, <code class="computeroutput">first + count</code>).
|
||||
|
||||
@@ -7,13 +7,13 @@
|
||||
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Compute">
|
||||
<link rel="up" href="../../compute/reference.html#header.boost.compute.algorithm.inclusive_scan_hpp" title="Header <boost/compute/algorithm/inclusive_scan.hpp>">
|
||||
<link rel="prev" href="generate_n.html" title="Function template generate_n">
|
||||
<link rel="next" href="inner_product_idp7940752.html" title="Function template inner_product">
|
||||
<link rel="next" href="inner_product_idp8370064.html" title="Function template inner_product">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="generate_n.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.inclusive_scan_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="inner_product_idp7940752.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
<a accesskey="p" href="generate_n.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.inclusive_scan_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="inner_product_idp8370064.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="refentry">
|
||||
<a name="boost.compute.inclusive_scan"></a><div class="titlepage"></div>
|
||||
@@ -30,7 +30,7 @@
|
||||
<span class="identifier">inclusive_scan</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span>
|
||||
<span class="identifier">OutputIterator</span> result<span class="special">,</span> <span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp37949984"></a><h2>Description</h2>
|
||||
<a name="idp8717136"></a><h2>Description</h2>
|
||||
<p>
|
||||
Performs an inclusive scan on the elements in the range
|
||||
[<code class="computeroutput">first</code>, <code class="computeroutput">last</code>) and stores the results in
|
||||
@@ -60,7 +60,7 @@
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="generate_n.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.inclusive_scan_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="inner_product_idp7940752.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
<a accesskey="p" href="generate_n.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.inclusive_scan_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="inner_product_idp8370064.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
53
boost/compute/inner_product_idp7351296.html
Normal file
53
boost/compute/inner_product_idp7351296.html
Normal file
@@ -0,0 +1,53 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||
<title>Function template inner_product</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
||||
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Compute">
|
||||
<link rel="up" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp" title="Header <boost/compute/algorithm/inner_product.hpp>">
|
||||
<link rel="prev" href="inclusive_scan.html" title="Function template inclusive_scan">
|
||||
<link rel="next" href="inner_product_idp7363440.html" title="Function template inner_product">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="inclusive_scan.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="inner_product_idp7363440.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="refentry">
|
||||
<a name="boost.compute.inner_product_idp7351296"></a><div class="titlepage"></div>
|
||||
<div class="refnamediv">
|
||||
<h2><span class="refentrytitle">Function template inner_product</span></h2>
|
||||
<p>boost::compute::inner_product</p>
|
||||
</div>
|
||||
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
|
||||
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp" title="Header <boost/compute/algorithm/inner_product.hpp>">boost/compute/algorithm/inner_product.hpp</a>>
|
||||
|
||||
</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> InputIterator1<span class="special">,</span> <span class="keyword">typename</span> InputIterator2<span class="special">,</span> <span class="keyword">typename</span> T<span class="special">></span>
|
||||
<span class="identifier">T</span> <span class="identifier">inner_product</span><span class="special">(</span><span class="identifier">InputIterator1</span> first1<span class="special">,</span> <span class="identifier">InputIterator1</span> last1<span class="special">,</span>
|
||||
<span class="identifier">InputIterator2</span> first2<span class="special">,</span> <span class="identifier">T</span> init<span class="special">,</span> <span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp37283600"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns the inner product of the elements in the range
|
||||
[<code class="computeroutput">first1</code>, <code class="computeroutput">last1</code>) with the elements in the
|
||||
range starting at <code class="computeroutput">first2</code>.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2013 Kyle Lutz<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="inclusive_scan.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="inner_product_idp7363440.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
59
boost/compute/inner_product_idp7363440.html
Normal file
59
boost/compute/inner_product_idp7363440.html
Normal file
@@ -0,0 +1,59 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||
<title>Function template inner_product</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
||||
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Compute">
|
||||
<link rel="up" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp" title="Header <boost/compute/algorithm/inner_product.hpp>">
|
||||
<link rel="prev" href="inner_product_idp7351296.html" title="Function template inner_product">
|
||||
<link rel="next" href="iota.html" title="Function template iota">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="inner_product_idp7351296.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="iota.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="refentry">
|
||||
<a name="boost.compute.inner_product_idp7363440"></a><div class="titlepage"></div>
|
||||
<div class="refnamediv">
|
||||
<h2><span class="refentrytitle">Function template inner_product</span></h2>
|
||||
<p>boost::compute::inner_product</p>
|
||||
</div>
|
||||
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
|
||||
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp" title="Header <boost/compute/algorithm/inner_product.hpp>">boost/compute/algorithm/inner_product.hpp</a>>
|
||||
|
||||
</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> InputIterator1<span class="special">,</span> <span class="keyword">typename</span> InputIterator2<span class="special">,</span> <span class="keyword">typename</span> T<span class="special">,</span>
|
||||
<span class="keyword">typename</span> BinaryAccumulateFunction<span class="special">,</span> <span class="keyword">typename</span> BinaryTransformFunction<span class="special">></span>
|
||||
<span class="identifier">T</span> <span class="identifier">inner_product</span><span class="special">(</span><span class="identifier">InputIterator1</span> first1<span class="special">,</span> <span class="identifier">InputIterator1</span> last1<span class="special">,</span>
|
||||
<span class="identifier">InputIterator2</span> first2<span class="special">,</span> <span class="identifier">T</span> init<span class="special">,</span>
|
||||
<span class="identifier">BinaryAccumulateFunction</span> accumulate_function<span class="special">,</span>
|
||||
<span class="identifier">BinaryTransformFunction</span> transform_function<span class="special">,</span>
|
||||
<span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp37311104"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns the inner product of the elements in the range
|
||||
[<code class="computeroutput">first1</code>, <code class="computeroutput">last1</code>) with the elements in the
|
||||
range starting at <code class="computeroutput">first2</code> using
|
||||
<code class="computeroutput">accumulate_function</code> and
|
||||
<code class="computeroutput">transform_function</code>.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2013 Kyle Lutz<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="inner_product_idp7351296.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="iota.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
53
boost/compute/inner_product_idp7658352.html
Normal file
53
boost/compute/inner_product_idp7658352.html
Normal file
@@ -0,0 +1,53 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||
<title>Function template inner_product</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
||||
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Compute">
|
||||
<link rel="up" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp" title="Header <boost/compute/algorithm/inner_product.hpp>">
|
||||
<link rel="prev" href="inclusive_scan.html" title="Function template inclusive_scan">
|
||||
<link rel="next" href="inner_product_idp7670496.html" title="Function template inner_product">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="inclusive_scan.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="inner_product_idp7670496.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="refentry">
|
||||
<a name="boost.compute.inner_product_idp7658352"></a><div class="titlepage"></div>
|
||||
<div class="refnamediv">
|
||||
<h2><span class="refentrytitle">Function template inner_product</span></h2>
|
||||
<p>boost::compute::inner_product</p>
|
||||
</div>
|
||||
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
|
||||
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp" title="Header <boost/compute/algorithm/inner_product.hpp>">boost/compute/algorithm/inner_product.hpp</a>>
|
||||
|
||||
</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> InputIterator1<span class="special">,</span> <span class="keyword">typename</span> InputIterator2<span class="special">,</span> <span class="keyword">typename</span> T<span class="special">></span>
|
||||
<span class="identifier">T</span> <span class="identifier">inner_product</span><span class="special">(</span><span class="identifier">InputIterator1</span> first1<span class="special">,</span> <span class="identifier">InputIterator1</span> last1<span class="special">,</span>
|
||||
<span class="identifier">InputIterator2</span> first2<span class="special">,</span> <span class="identifier">T</span> init<span class="special">,</span> <span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp7624416"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns the inner product of the elements in the range
|
||||
[<code class="computeroutput">first1</code>, <code class="computeroutput">last1</code>) with the elements in the
|
||||
range starting at <code class="computeroutput">first2</code>.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2013 Kyle Lutz<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="inclusive_scan.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="inner_product_idp7670496.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
59
boost/compute/inner_product_idp7670496.html
Normal file
59
boost/compute/inner_product_idp7670496.html
Normal file
@@ -0,0 +1,59 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||
<title>Function template inner_product</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
||||
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Compute">
|
||||
<link rel="up" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp" title="Header <boost/compute/algorithm/inner_product.hpp>">
|
||||
<link rel="prev" href="inner_product_idp7658352.html" title="Function template inner_product">
|
||||
<link rel="next" href="iota.html" title="Function template iota">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="inner_product_idp7658352.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="iota.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="refentry">
|
||||
<a name="boost.compute.inner_product_idp7670496"></a><div class="titlepage"></div>
|
||||
<div class="refnamediv">
|
||||
<h2><span class="refentrytitle">Function template inner_product</span></h2>
|
||||
<p>boost::compute::inner_product</p>
|
||||
</div>
|
||||
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
|
||||
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp" title="Header <boost/compute/algorithm/inner_product.hpp>">boost/compute/algorithm/inner_product.hpp</a>>
|
||||
|
||||
</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> InputIterator1<span class="special">,</span> <span class="keyword">typename</span> InputIterator2<span class="special">,</span> <span class="keyword">typename</span> T<span class="special">,</span>
|
||||
<span class="keyword">typename</span> BinaryAccumulateFunction<span class="special">,</span> <span class="keyword">typename</span> BinaryTransformFunction<span class="special">></span>
|
||||
<span class="identifier">T</span> <span class="identifier">inner_product</span><span class="special">(</span><span class="identifier">InputIterator1</span> first1<span class="special">,</span> <span class="identifier">InputIterator1</span> last1<span class="special">,</span>
|
||||
<span class="identifier">InputIterator2</span> first2<span class="special">,</span> <span class="identifier">T</span> init<span class="special">,</span>
|
||||
<span class="identifier">BinaryAccumulateFunction</span> accumulate_function<span class="special">,</span>
|
||||
<span class="identifier">BinaryTransformFunction</span> transform_function<span class="special">,</span>
|
||||
<span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp7651984"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns the inner product of the elements in the range
|
||||
[<code class="computeroutput">first1</code>, <code class="computeroutput">last1</code>) with the elements in the
|
||||
range starting at <code class="computeroutput">first2</code> using
|
||||
<code class="computeroutput">accumulate_function</code> and
|
||||
<code class="computeroutput">transform_function</code>.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2013 Kyle Lutz<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="inner_product_idp7658352.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="iota.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
53
boost/compute/inner_product_idp8319056.html
Normal file
53
boost/compute/inner_product_idp8319056.html
Normal file
@@ -0,0 +1,53 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||
<title>Function template inner_product</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
||||
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Compute">
|
||||
<link rel="up" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp" title="Header <boost/compute/algorithm/inner_product.hpp>">
|
||||
<link rel="prev" href="inclusive_scan.html" title="Function template inclusive_scan">
|
||||
<link rel="next" href="inner_product_idp8331200.html" title="Function template inner_product">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="inclusive_scan.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="inner_product_idp8331200.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="refentry">
|
||||
<a name="boost.compute.inner_product_idp8319056"></a><div class="titlepage"></div>
|
||||
<div class="refnamediv">
|
||||
<h2><span class="refentrytitle">Function template inner_product</span></h2>
|
||||
<p>boost::compute::inner_product</p>
|
||||
</div>
|
||||
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
|
||||
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp" title="Header <boost/compute/algorithm/inner_product.hpp>">boost/compute/algorithm/inner_product.hpp</a>>
|
||||
|
||||
</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> InputIterator1<span class="special">,</span> <span class="keyword">typename</span> InputIterator2<span class="special">,</span> <span class="keyword">typename</span> T<span class="special">></span>
|
||||
<span class="identifier">T</span> <span class="identifier">inner_product</span><span class="special">(</span><span class="identifier">InputIterator1</span> first1<span class="special">,</span> <span class="identifier">InputIterator1</span> last1<span class="special">,</span>
|
||||
<span class="identifier">InputIterator2</span> first2<span class="special">,</span> <span class="identifier">T</span> init<span class="special">,</span> <span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp8787440"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns the inner product of the elements in the range
|
||||
[<code class="computeroutput">first1</code>, <code class="computeroutput">last1</code>) with the elements in the
|
||||
range starting at <code class="computeroutput">first2</code>.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2013 Kyle Lutz<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="inclusive_scan.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="inner_product_idp8331200.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
53
boost/compute/inner_product_idp8324160.html
Normal file
53
boost/compute/inner_product_idp8324160.html
Normal file
@@ -0,0 +1,53 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||
<title>Function template inner_product</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
||||
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Compute">
|
||||
<link rel="up" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp" title="Header <boost/compute/algorithm/inner_product.hpp>">
|
||||
<link rel="prev" href="inclusive_scan.html" title="Function template inclusive_scan">
|
||||
<link rel="next" href="inner_product_idp8336304.html" title="Function template inner_product">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="inclusive_scan.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="inner_product_idp8336304.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="refentry">
|
||||
<a name="boost.compute.inner_product_idp8324160"></a><div class="titlepage"></div>
|
||||
<div class="refnamediv">
|
||||
<h2><span class="refentrytitle">Function template inner_product</span></h2>
|
||||
<p>boost::compute::inner_product</p>
|
||||
</div>
|
||||
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
|
||||
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp" title="Header <boost/compute/algorithm/inner_product.hpp>">boost/compute/algorithm/inner_product.hpp</a>>
|
||||
|
||||
</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> InputIterator1<span class="special">,</span> <span class="keyword">typename</span> InputIterator2<span class="special">,</span> <span class="keyword">typename</span> T<span class="special">></span>
|
||||
<span class="identifier">T</span> <span class="identifier">inner_product</span><span class="special">(</span><span class="identifier">InputIterator1</span> first1<span class="special">,</span> <span class="identifier">InputIterator1</span> last1<span class="special">,</span>
|
||||
<span class="identifier">InputIterator2</span> first2<span class="special">,</span> <span class="identifier">T</span> init<span class="special">,</span> <span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp8734288"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns the inner product of the elements in the range
|
||||
[<code class="computeroutput">first1</code>, <code class="computeroutput">last1</code>) with the elements in the
|
||||
range starting at <code class="computeroutput">first2</code>.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2013 Kyle Lutz<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="inclusive_scan.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="inner_product_idp8336304.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
59
boost/compute/inner_product_idp8331200.html
Normal file
59
boost/compute/inner_product_idp8331200.html
Normal file
@@ -0,0 +1,59 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||
<title>Function template inner_product</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
||||
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Compute">
|
||||
<link rel="up" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp" title="Header <boost/compute/algorithm/inner_product.hpp>">
|
||||
<link rel="prev" href="inner_product_idp8319056.html" title="Function template inner_product">
|
||||
<link rel="next" href="iota.html" title="Function template iota">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="inner_product_idp8319056.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="iota.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="refentry">
|
||||
<a name="boost.compute.inner_product_idp8331200"></a><div class="titlepage"></div>
|
||||
<div class="refnamediv">
|
||||
<h2><span class="refentrytitle">Function template inner_product</span></h2>
|
||||
<p>boost::compute::inner_product</p>
|
||||
</div>
|
||||
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
|
||||
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp" title="Header <boost/compute/algorithm/inner_product.hpp>">boost/compute/algorithm/inner_product.hpp</a>>
|
||||
|
||||
</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> InputIterator1<span class="special">,</span> <span class="keyword">typename</span> InputIterator2<span class="special">,</span> <span class="keyword">typename</span> T<span class="special">,</span>
|
||||
<span class="keyword">typename</span> BinaryAccumulateFunction<span class="special">,</span> <span class="keyword">typename</span> BinaryTransformFunction<span class="special">></span>
|
||||
<span class="identifier">T</span> <span class="identifier">inner_product</span><span class="special">(</span><span class="identifier">InputIterator1</span> first1<span class="special">,</span> <span class="identifier">InputIterator1</span> last1<span class="special">,</span>
|
||||
<span class="identifier">InputIterator2</span> first2<span class="special">,</span> <span class="identifier">T</span> init<span class="special">,</span>
|
||||
<span class="identifier">BinaryAccumulateFunction</span> accumulate_function<span class="special">,</span>
|
||||
<span class="identifier">BinaryTransformFunction</span> transform_function<span class="special">,</span>
|
||||
<span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp8814944"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns the inner product of the elements in the range
|
||||
[<code class="computeroutput">first1</code>, <code class="computeroutput">last1</code>) with the elements in the
|
||||
range starting at <code class="computeroutput">first2</code> using
|
||||
<code class="computeroutput">accumulate_function</code> and
|
||||
<code class="computeroutput">transform_function</code>.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2013 Kyle Lutz<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="inner_product_idp8319056.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="iota.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
59
boost/compute/inner_product_idp8336304.html
Normal file
59
boost/compute/inner_product_idp8336304.html
Normal file
@@ -0,0 +1,59 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||
<title>Function template inner_product</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
||||
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Compute">
|
||||
<link rel="up" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp" title="Header <boost/compute/algorithm/inner_product.hpp>">
|
||||
<link rel="prev" href="inner_product_idp8324160.html" title="Function template inner_product">
|
||||
<link rel="next" href="iota.html" title="Function template iota">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="inner_product_idp8324160.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="iota.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="refentry">
|
||||
<a name="boost.compute.inner_product_idp8336304"></a><div class="titlepage"></div>
|
||||
<div class="refnamediv">
|
||||
<h2><span class="refentrytitle">Function template inner_product</span></h2>
|
||||
<p>boost::compute::inner_product</p>
|
||||
</div>
|
||||
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
|
||||
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp" title="Header <boost/compute/algorithm/inner_product.hpp>">boost/compute/algorithm/inner_product.hpp</a>>
|
||||
|
||||
</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> InputIterator1<span class="special">,</span> <span class="keyword">typename</span> InputIterator2<span class="special">,</span> <span class="keyword">typename</span> T<span class="special">,</span>
|
||||
<span class="keyword">typename</span> BinaryAccumulateFunction<span class="special">,</span> <span class="keyword">typename</span> BinaryTransformFunction<span class="special">></span>
|
||||
<span class="identifier">T</span> <span class="identifier">inner_product</span><span class="special">(</span><span class="identifier">InputIterator1</span> first1<span class="special">,</span> <span class="identifier">InputIterator1</span> last1<span class="special">,</span>
|
||||
<span class="identifier">InputIterator2</span> first2<span class="special">,</span> <span class="identifier">T</span> init<span class="special">,</span>
|
||||
<span class="identifier">BinaryAccumulateFunction</span> accumulate_function<span class="special">,</span>
|
||||
<span class="identifier">BinaryTransformFunction</span> transform_function<span class="special">,</span>
|
||||
<span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp8761760"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns the inner product of the elements in the range
|
||||
[<code class="computeroutput">first1</code>, <code class="computeroutput">last1</code>) with the elements in the
|
||||
range starting at <code class="computeroutput">first2</code> using
|
||||
<code class="computeroutput">accumulate_function</code> and
|
||||
<code class="computeroutput">transform_function</code>.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2013 Kyle Lutz<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="inner_product_idp8324160.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="iota.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
53
boost/compute/inner_product_idp8368832.html
Normal file
53
boost/compute/inner_product_idp8368832.html
Normal file
@@ -0,0 +1,53 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||
<title>Function template inner_product</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
||||
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Compute">
|
||||
<link rel="up" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp" title="Header <boost/compute/algorithm/inner_product.hpp>">
|
||||
<link rel="prev" href="inclusive_scan.html" title="Function template inclusive_scan">
|
||||
<link rel="next" href="inner_product_idp8380976.html" title="Function template inner_product">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="inclusive_scan.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="inner_product_idp8380976.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="refentry">
|
||||
<a name="boost.compute.inner_product_idp8368832"></a><div class="titlepage"></div>
|
||||
<div class="refnamediv">
|
||||
<h2><span class="refentrytitle">Function template inner_product</span></h2>
|
||||
<p>boost::compute::inner_product</p>
|
||||
</div>
|
||||
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
|
||||
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp" title="Header <boost/compute/algorithm/inner_product.hpp>">boost/compute/algorithm/inner_product.hpp</a>>
|
||||
|
||||
</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> InputIterator1<span class="special">,</span> <span class="keyword">typename</span> InputIterator2<span class="special">,</span> <span class="keyword">typename</span> T<span class="special">></span>
|
||||
<span class="identifier">T</span> <span class="identifier">inner_product</span><span class="special">(</span><span class="identifier">InputIterator1</span> first1<span class="special">,</span> <span class="identifier">InputIterator1</span> last1<span class="special">,</span>
|
||||
<span class="identifier">InputIterator2</span> first2<span class="special">,</span> <span class="identifier">T</span> init<span class="special">,</span> <span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp38396768"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns the inner product of the elements in the range
|
||||
[<code class="computeroutput">first1</code>, <code class="computeroutput">last1</code>) with the elements in the
|
||||
range starting at <code class="computeroutput">first2</code>.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2013 Kyle Lutz<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="inclusive_scan.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="inner_product_idp8380976.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
53
boost/compute/inner_product_idp8370064.html
Normal file
53
boost/compute/inner_product_idp8370064.html
Normal file
@@ -0,0 +1,53 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||
<title>Function template inner_product</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
||||
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Compute">
|
||||
<link rel="up" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp" title="Header <boost/compute/algorithm/inner_product.hpp>">
|
||||
<link rel="prev" href="inclusive_scan.html" title="Function template inclusive_scan">
|
||||
<link rel="next" href="inner_product_idp8382208.html" title="Function template inner_product">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="inclusive_scan.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="inner_product_idp8382208.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="refentry">
|
||||
<a name="boost.compute.inner_product_idp8370064"></a><div class="titlepage"></div>
|
||||
<div class="refnamediv">
|
||||
<h2><span class="refentrytitle">Function template inner_product</span></h2>
|
||||
<p>boost::compute::inner_product</p>
|
||||
</div>
|
||||
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
|
||||
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp" title="Header <boost/compute/algorithm/inner_product.hpp>">boost/compute/algorithm/inner_product.hpp</a>>
|
||||
|
||||
</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> InputIterator1<span class="special">,</span> <span class="keyword">typename</span> InputIterator2<span class="special">,</span> <span class="keyword">typename</span> T<span class="special">></span>
|
||||
<span class="identifier">T</span> <span class="identifier">inner_product</span><span class="special">(</span><span class="identifier">InputIterator1</span> first1<span class="special">,</span> <span class="identifier">InputIterator1</span> last1<span class="special">,</span>
|
||||
<span class="identifier">InputIterator2</span> first2<span class="special">,</span> <span class="identifier">T</span> init<span class="special">,</span> <span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp8784992"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns the inner product of the elements in the range
|
||||
[<code class="computeroutput">first1</code>, <code class="computeroutput">last1</code>) with the elements in the
|
||||
range starting at <code class="computeroutput">first2</code>.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2013 Kyle Lutz<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="inclusive_scan.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="inner_product_idp8382208.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
59
boost/compute/inner_product_idp8380976.html
Normal file
59
boost/compute/inner_product_idp8380976.html
Normal file
@@ -0,0 +1,59 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||
<title>Function template inner_product</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
||||
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Compute">
|
||||
<link rel="up" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp" title="Header <boost/compute/algorithm/inner_product.hpp>">
|
||||
<link rel="prev" href="inner_product_idp8368832.html" title="Function template inner_product">
|
||||
<link rel="next" href="iota.html" title="Function template iota">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="inner_product_idp8368832.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="iota.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="refentry">
|
||||
<a name="boost.compute.inner_product_idp8380976"></a><div class="titlepage"></div>
|
||||
<div class="refnamediv">
|
||||
<h2><span class="refentrytitle">Function template inner_product</span></h2>
|
||||
<p>boost::compute::inner_product</p>
|
||||
</div>
|
||||
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
|
||||
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp" title="Header <boost/compute/algorithm/inner_product.hpp>">boost/compute/algorithm/inner_product.hpp</a>>
|
||||
|
||||
</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> InputIterator1<span class="special">,</span> <span class="keyword">typename</span> InputIterator2<span class="special">,</span> <span class="keyword">typename</span> T<span class="special">,</span>
|
||||
<span class="keyword">typename</span> BinaryAccumulateFunction<span class="special">,</span> <span class="keyword">typename</span> BinaryTransformFunction<span class="special">></span>
|
||||
<span class="identifier">T</span> <span class="identifier">inner_product</span><span class="special">(</span><span class="identifier">InputIterator1</span> first1<span class="special">,</span> <span class="identifier">InputIterator1</span> last1<span class="special">,</span>
|
||||
<span class="identifier">InputIterator2</span> first2<span class="special">,</span> <span class="identifier">T</span> init<span class="special">,</span>
|
||||
<span class="identifier">BinaryAccumulateFunction</span> accumulate_function<span class="special">,</span>
|
||||
<span class="identifier">BinaryTransformFunction</span> transform_function<span class="special">,</span>
|
||||
<span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp38424272"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns the inner product of the elements in the range
|
||||
[<code class="computeroutput">first1</code>, <code class="computeroutput">last1</code>) with the elements in the
|
||||
range starting at <code class="computeroutput">first2</code> using
|
||||
<code class="computeroutput">accumulate_function</code> and
|
||||
<code class="computeroutput">transform_function</code>.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2013 Kyle Lutz<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="inner_product_idp8368832.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="iota.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
59
boost/compute/inner_product_idp8382208.html
Normal file
59
boost/compute/inner_product_idp8382208.html
Normal file
@@ -0,0 +1,59 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||
<title>Function template inner_product</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
||||
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Compute">
|
||||
<link rel="up" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp" title="Header <boost/compute/algorithm/inner_product.hpp>">
|
||||
<link rel="prev" href="inner_product_idp8370064.html" title="Function template inner_product">
|
||||
<link rel="next" href="iota.html" title="Function template iota">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="inner_product_idp8370064.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="iota.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="refentry">
|
||||
<a name="boost.compute.inner_product_idp8382208"></a><div class="titlepage"></div>
|
||||
<div class="refnamediv">
|
||||
<h2><span class="refentrytitle">Function template inner_product</span></h2>
|
||||
<p>boost::compute::inner_product</p>
|
||||
</div>
|
||||
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
|
||||
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp" title="Header <boost/compute/algorithm/inner_product.hpp>">boost/compute/algorithm/inner_product.hpp</a>>
|
||||
|
||||
</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> InputIterator1<span class="special">,</span> <span class="keyword">typename</span> InputIterator2<span class="special">,</span> <span class="keyword">typename</span> T<span class="special">,</span>
|
||||
<span class="keyword">typename</span> BinaryAccumulateFunction<span class="special">,</span> <span class="keyword">typename</span> BinaryTransformFunction<span class="special">></span>
|
||||
<span class="identifier">T</span> <span class="identifier">inner_product</span><span class="special">(</span><span class="identifier">InputIterator1</span> first1<span class="special">,</span> <span class="identifier">InputIterator1</span> last1<span class="special">,</span>
|
||||
<span class="identifier">InputIterator2</span> first2<span class="special">,</span> <span class="identifier">T</span> init<span class="special">,</span>
|
||||
<span class="identifier">BinaryAccumulateFunction</span> accumulate_function<span class="special">,</span>
|
||||
<span class="identifier">BinaryTransformFunction</span> transform_function<span class="special">,</span>
|
||||
<span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp8812464"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns the inner product of the elements in the range
|
||||
[<code class="computeroutput">first1</code>, <code class="computeroutput">last1</code>) with the elements in the
|
||||
range starting at <code class="computeroutput">first2</code> using
|
||||
<code class="computeroutput">accumulate_function</code> and
|
||||
<code class="computeroutput">transform_function</code>.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2013 Kyle Lutz<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="inner_product_idp8370064.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.inner_product_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="iota.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -6,14 +6,14 @@
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
||||
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Compute">
|
||||
<link rel="up" href="../../compute/reference.html#header.boost.compute.algorithm.iota_hpp" title="Header <boost/compute/algorithm/iota.hpp>">
|
||||
<link rel="prev" href="inner_product_idp7952896.html" title="Function template inner_product">
|
||||
<link rel="prev" href="inner_product_idp8382208.html" title="Function template inner_product">
|
||||
<link rel="next" href="is_partitioned.html" title="Function template is_partitioned">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="inner_product_idp7952896.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.iota_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="is_partitioned.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
<a accesskey="p" href="inner_product_idp8382208.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.iota_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="is_partitioned.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="refentry">
|
||||
<a name="boost.compute.iota"></a><div class="titlepage"></div>
|
||||
@@ -29,7 +29,7 @@
|
||||
<span class="identifier">Iterator</span> <span class="identifier">iota</span><span class="special">(</span><span class="identifier">Iterator</span> first<span class="special">,</span> <span class="identifier">Iterator</span> last<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span><span class="special">&</span> value<span class="special">,</span>
|
||||
<span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp38088944"></a><h2>Description</h2>
|
||||
<a name="idp8855856"></a><h2>Description</h2>
|
||||
<p>
|
||||
Fills the range [<code class="computeroutput">first</code>, <code class="computeroutput">last</code>) with
|
||||
sequential values starting at <code class="computeroutput">value</code>.
|
||||
@@ -55,7 +55,7 @@
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="inner_product_idp7952896.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.iota_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="is_partitioned.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
<a accesskey="p" href="inner_product_idp8382208.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.iota_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="is_partitioned.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<span class="keyword">bool</span> <span class="identifier">is_partitioned</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span>
|
||||
<span class="identifier">UnaryPredicate</span> predicate<span class="special">,</span> <span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp38129936"></a><h2>Description</h2>
|
||||
<a name="idp8896848"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns <code class="computeroutput">true</code> if the values in the range
|
||||
[<code class="computeroutput">first</code>, <code class="computeroutput">last</code>) are in partitioned
|
||||
|
||||
@@ -29,13 +29,13 @@
|
||||
<span class="keyword">bool</span> <span class="identifier">is_sorted</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span>
|
||||
<span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp38166656"></a><h2>Description</h2>
|
||||
<a name="idp8933536"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns <code class="computeroutput">true</code> if the values in the range
|
||||
[<code class="computeroutput">first</code>, <code class="computeroutput">last</code>) are in sorted order.
|
||||
</p>
|
||||
<p>
|
||||
See also: <code class="computeroutput"><a class="link" href="sort_idp8299552.html" title="Function template sort">sort()</a></code>
|
||||
See also: <code class="computeroutput"><a class="link" href="sort_idp8728864.html" title="Function template sort">sort()</a></code>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> Iterator1<span class="special">,</span> <span class="keyword">typename</span> Iterator2<span class="special">></span>
|
||||
<span class="keyword">void</span> <span class="identifier">iter_swap</span><span class="special">(</span><span class="identifier">Iterator1</span> a<span class="special">,</span> <span class="identifier">Iterator2</span> b<span class="special">,</span> <span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp38205280"></a><h2>Description</h2>
|
||||
<a name="idp8972224"></a><h2>Description</h2>
|
||||
<p>
|
||||
Swaps the elements pointed to by the the iterators <code class="computeroutput">a</code>
|
||||
and <code class="computeroutput">b</code>.
|
||||
|
||||
@@ -28,30 +28,31 @@
|
||||
<span class="keyword">class</span> <a class="link" href="kernel.html" title="Class kernel">kernel</a> <span class="special">{</span>
|
||||
<span class="keyword">public</span><span class="special">:</span>
|
||||
<span class="comment">// <a class="link" href="kernel.html#boost.compute.kernelconstruct-copy-destruct">construct/copy/destruct</a></span>
|
||||
<a class="link" href="kernel.html#idp7399744-bb"><span class="identifier">kernel</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="program.html" title="Class program">program</a><span class="special">&</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="kernel.html#idp7404320-bb"><span class="identifier">kernel</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="kernel.html" title="Class kernel">kernel</a> <span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
kernel& <a class="link" href="kernel.html#idp7407504-bb"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="kernel.html" title="Class kernel">kernel</a> <span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="kernel.html#idp7410688-bb"><span class="special">~</span><span class="identifier">kernel</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="kernel.html#idp7793136-bb"><span class="identifier">kernel</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="program.html" title="Class program">program</a><span class="special">&</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
<span class="keyword">explicit</span> <a class="link" href="kernel.html#idp7797712-bb"><span class="identifier">kernel</span></a><span class="special">(</span><span class="identifier">cl_kernel</span><span class="special">,</span> <span class="keyword">bool</span> <span class="special">=</span> <span class="keyword">true</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="kernel.html#idp7803296-bb"><span class="identifier">kernel</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="kernel.html" title="Class kernel">kernel</a> <span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
kernel& <a class="link" href="kernel.html#idp7806480-bb"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="kernel.html" title="Class kernel">kernel</a> <span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="kernel.html#idp7809664-bb"><span class="special">~</span><span class="identifier">kernel</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
|
||||
|
||||
<span class="comment">// <a class="link" href="kernel.html#idp7411840-bb">public member functions</a></span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <a class="link" href="kernel.html#idp7412592-bb"><span class="identifier">name</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="identifier">size_t</span> <a class="link" href="kernel.html#idp7414864-bb"><span class="identifier">num_args</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<a class="link" href="program.html" title="Class program">program</a> <a class="link" href="kernel.html#idp7417264-bb"><span class="identifier">get_program</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<a class="link" href="context.html" title="Class context">context</a> <a class="link" href="kernel.html#idp7419664-bb"><span class="identifier">get_context</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="identifier">T</span> <a class="link" href="kernel.html#idp7422064-bb"><span class="identifier">get_info</span></a><span class="special">(</span><span class="identifier">cl_kernel_info</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="keyword">void</span> <a class="link" href="kernel.html#idp7427728-bb"><span class="identifier">set_arg</span></a><span class="special">(</span><span class="identifier">size_t</span><span class="special">,</span> <span class="identifier">size_t</span><span class="special">,</span> <span class="keyword">const</span> <span class="keyword">void</span><span class="special">*</span><span class="special">)</span><span class="special">;</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="keyword">void</span> <a class="link" href="kernel.html#idp7433936-bb"><span class="identifier">set_arg</span></a><span class="special">(</span><span class="identifier">size_t</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span><span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="kernel.html#idp7439632-bb"><span class="keyword">operator</span> <span class="identifier">cl_kernel</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="comment">// <a class="link" href="kernel.html#idp7810816-bb">public member functions</a></span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <a class="link" href="kernel.html#idp7811568-bb"><span class="identifier">name</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="identifier">size_t</span> <a class="link" href="kernel.html#idp7813840-bb"><span class="identifier">num_args</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<a class="link" href="program.html" title="Class program">program</a> <a class="link" href="kernel.html#idp7816240-bb"><span class="identifier">get_program</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<a class="link" href="context.html" title="Class context">context</a> <a class="link" href="kernel.html#idp7818640-bb"><span class="identifier">get_context</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="identifier">T</span> <a class="link" href="kernel.html#idp7821040-bb"><span class="identifier">get_info</span></a><span class="special">(</span><span class="identifier">cl_kernel_info</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="keyword">void</span> <a class="link" href="kernel.html#idp7826704-bb"><span class="identifier">set_arg</span></a><span class="special">(</span><span class="identifier">size_t</span><span class="special">,</span> <span class="identifier">size_t</span><span class="special">,</span> <span class="keyword">const</span> <span class="keyword">void</span><span class="special">*</span><span class="special">)</span><span class="special">;</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="keyword">void</span> <a class="link" href="kernel.html#idp7832912-bb"><span class="identifier">set_arg</span></a><span class="special">(</span><span class="identifier">size_t</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span><span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="kernel.html#idp7838608-bb"><span class="keyword">operator</span> <span class="identifier">cl_kernel</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="special">}</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp36172992"></a><h2>Description</h2>
|
||||
<a name="idp6912064"></a><h2>Description</h2>
|
||||
<p>
|
||||
Once created, kernels are executed on a compute device using one
|
||||
of the following methods:
|
||||
</p>
|
||||
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
|
||||
<li class="listitem"><a class="link" href="command_queue.html#idp7241248-bb">command_queue::enqueue_nd_range_kernel()</a></li>
|
||||
<li class="listitem"><a class="link" href="command_queue.html#idp7249088-bb">command_queue::enqueue_task()</a></li>
|
||||
<li class="listitem"><a class="link" href="command_queue.html#idp7628544-bb">command_queue::enqueue_nd_range_kernel()</a></li>
|
||||
<li class="listitem"><a class="link" href="command_queue.html#idp7636512-bb">command_queue::enqueue_task()</a></li>
|
||||
</ul></div>
|
||||
<p>
|
||||
</p>
|
||||
@@ -60,32 +61,40 @@
|
||||
<a class="link" href="command_queue.html" title="Class command_queue">command_queue</a>
|
||||
</p>
|
||||
<div class="refsect2">
|
||||
<a name="idp36179008"></a><h3>
|
||||
<a name="idp6918080"></a><h3>
|
||||
<a name="boost.compute.kernelconstruct-copy-destruct"></a><code class="computeroutput">kernel</code>
|
||||
public
|
||||
construct/copy/destruct</h3>
|
||||
<div class="orderedlist"><ol class="orderedlist" type="1">
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><a name="idp7399744-bb"></a><span class="identifier">kernel</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="program.html" title="Class program">program</a><span class="special">&</span> program<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span> name<span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><a name="idp7793136-bb"></a><span class="identifier">kernel</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="program.html" title="Class program">program</a><span class="special">&</span> program<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span> name<span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Creates a new kernel object from <code class="computeroutput">program</code> with
|
||||
<code class="computeroutput">name</code>.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><a name="idp7404320-bb"></a><span class="identifier">kernel</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="kernel.html" title="Class kernel">kernel</a> <span class="special">&</span> other<span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="keyword">explicit</span> <a name="idp7797712-bb"></a><span class="identifier">kernel</span><span class="special">(</span><span class="identifier">cl_kernel</span> kernel<span class="special">,</span> <span class="keyword">bool</span> retain <span class="special">=</span> <span class="keyword">true</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Creates a new kernel object for <code class="computeroutput">kernel</code>. If
|
||||
<code class="computeroutput">retain</code> is <code class="computeroutput">true</code> (the default) the
|
||||
reference count for <code class="computeroutput">kernel</code> will be incremented.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><a name="idp7803296-bb"></a><span class="identifier">kernel</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="kernel.html" title="Class kernel">kernel</a> <span class="special">&</span> other<span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Creates a new kernel object as a copy of <code class="computeroutput">other</code>.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout">kernel& <a name="idp7407504-bb"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="kernel.html" title="Class kernel">kernel</a> <span class="special">&</span> other<span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout">kernel& <a name="idp7806480-bb"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="kernel.html" title="Class kernel">kernel</a> <span class="special">&</span> other<span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Copies the kernel from <code class="computeroutput">other</code>.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><a name="idp7410688-bb"></a><span class="special">~</span><span class="identifier">kernel</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><a name="idp7809664-bb"></a><span class="special">~</span><span class="identifier">kernel</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Destroys the kernel object.
|
||||
</p>
|
||||
@@ -93,42 +102,42 @@
|
||||
</ol></div>
|
||||
</div>
|
||||
<div class="refsect2">
|
||||
<a name="idp36211216"></a><h3>
|
||||
<a name="idp7411840-bb"></a><code class="computeroutput">kernel</code> public member functions</h3>
|
||||
<a name="idp6960912"></a><h3>
|
||||
<a name="idp7810816-bb"></a><code class="computeroutput">kernel</code> public member functions</h3>
|
||||
<div class="orderedlist"><ol class="orderedlist" type="1">
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <a name="idp7412592-bb"></a><span class="identifier">name</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <a name="idp7811568-bb"></a><span class="identifier">name</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Returns the name of the kernel.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="identifier">size_t</span> <a name="idp7414864-bb"></a><span class="identifier">num_args</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="identifier">size_t</span> <a name="idp7813840-bb"></a><span class="identifier">num_args</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Returns the number of arguments that the kernel function
|
||||
expects.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><a class="link" href="program.html" title="Class program">program</a> <a name="idp7417264-bb"></a><span class="identifier">get_program</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><a class="link" href="program.html" title="Class program">program</a> <a name="idp7816240-bb"></a><span class="identifier">get_program</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Returns the program for the kernel.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><a class="link" href="context.html" title="Class context">context</a> <a name="idp7419664-bb"></a><span class="identifier">get_context</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><a class="link" href="context.html" title="Class context">context</a> <a name="idp7818640-bb"></a><span class="identifier">get_context</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Returns the context for the kernel.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="identifier">T</span> <a name="idp7422064-bb"></a><span class="identifier">get_info</span><span class="special">(</span><span class="identifier">cl_kernel_info</span> info<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="identifier">T</span> <a name="idp7821040-bb"></a><span class="identifier">get_info</span><span class="special">(</span><span class="identifier">cl_kernel_info</span> info<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Returns information about the kernel.
|
||||
</p>
|
||||
<p>
|
||||
For example, to get the name of the kernel (without using the
|
||||
<code class="computeroutput"><a class="link" href="kernel.html#idp7412592-bb">name()</a></code> method):
|
||||
<code class="computeroutput"><a class="link" href="kernel.html#idp7811568-bb">name()</a></code> method):
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
std::string function_name = kernel.get_info<std::string>(CL_KERNEL_FUNCTION_NAME);
|
||||
@@ -137,20 +146,20 @@ std::string function_name = kernel.get_info<std::string>(CL_KERNEL_FUNCTIO
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="keyword">void</span> <a name="idp7427728-bb"></a><span class="identifier">set_arg</span><span class="special">(</span><span class="identifier">size_t</span> index<span class="special">,</span> <span class="identifier">size_t</span> size<span class="special">,</span> <span class="keyword">const</span> <span class="keyword">void</span><span class="special">*</span> value<span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="keyword">void</span> <a name="idp7826704-bb"></a><span class="identifier">set_arg</span><span class="special">(</span><span class="identifier">size_t</span> index<span class="special">,</span> <span class="identifier">size_t</span> size<span class="special">,</span> <span class="keyword">const</span> <span class="keyword">void</span><span class="special">*</span> value<span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Sets the argument at <code class="computeroutput">index</code> to <code class="computeroutput">value</code>
|
||||
with <code class="computeroutput">size</code>.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="keyword">void</span> <a name="idp7433936-bb"></a><span class="identifier">set_arg</span><span class="special">(</span><span class="identifier">size_t</span> index<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span><span class="special">&</span> value<span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="keyword">void</span> <a name="idp7832912-bb"></a><span class="identifier">set_arg</span><span class="special">(</span><span class="identifier">size_t</span> index<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span><span class="special">&</span> value<span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Sets the argument at <code class="computeroutput">index</code> to <code class="computeroutput">value</code>.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"> <a name="idp7439632-bb"></a><span class="keyword">operator</span> <span class="identifier">cl_kernel</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"> <a name="idp7838608-bb"></a><span class="keyword">operator</span> <span class="identifier">cl_kernel</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Converts the kernel object to a <code class="computeroutput">cl_kernel</code>.
|
||||
</p>
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<span class="identifier">lower_bound</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span><span class="special">&</span> value<span class="special">,</span>
|
||||
<span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp38246288"></a><h2>Description</h2>
|
||||
<a name="idp9013504"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns an iterator pointing to the first element in the range
|
||||
sorted range [<code class="computeroutput">first</code>, <code class="computeroutput">last</code>) that is not
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<a class="link" href="buffer_iterator.html" title="Class template buffer_iterator">buffer_iterator</a><span class="special"><</span><span class="identifier">T</span><span class="special">></span>
|
||||
<span class="identifier">make_buffer_iterator</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="buffer.html" title="Class buffer">buffer</a><span class="special">&</span> buffer<span class="special">,</span> <span class="identifier">size_t</span> index <span class="special">=</span> <span class="number">0</span><span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp39726192"></a><h2>Description</h2>
|
||||
<a name="idp10493520"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns a new <code class="computeroutput"><a class="link" href="buffer_iterator.html" title="Class template buffer_iterator">buffer_iterator</a></code> for
|
||||
<code class="computeroutput">buffer</code> at <code class="computeroutput">index</code>.
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<a class="link" href="constant_iterator.html" title="Class template constant_iterator">constant_iterator</a><span class="special"><</span><span class="identifier">T</span><span class="special">></span>
|
||||
<span class="identifier">make_constant_iterator</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">T</span><span class="special">&</span> value<span class="special">,</span> <span class="identifier">size_t</span> index <span class="special">=</span> <span class="number">0</span><span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp39783152"></a><h2>Description</h2>
|
||||
<a name="idp10550512"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns a new <code class="computeroutput"><a class="link" href="constant_iterator.html" title="Class template constant_iterator">constant_iterator</a></code> with
|
||||
<code class="computeroutput">value</code> at <code class="computeroutput">index</code>.
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span>
|
||||
<a class="link" href="counting_iterator.html" title="Class template counting_iterator">counting_iterator</a><span class="special"><</span><span class="identifier">T</span><span class="special">></span> <span class="identifier">make_counting_iterator</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">T</span><span class="special">&</span> init<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp39835184"></a><h2>Description</h2>
|
||||
<a name="idp10602576"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns a new <code class="computeroutput"><a class="link" href="counting_iterator.html" title="Class template counting_iterator">counting_iterator</a></code> starting
|
||||
at <code class="computeroutput">init</code>.
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<a class="link" href="permutation_iterator.html" title="Class template permutation_iterator">permutation_iterator</a><span class="special"><</span><span class="identifier">ElementIterator</span><span class="special">,</span> <span class="identifier">IndexIterator</span><span class="special">></span>
|
||||
<span class="identifier">make_permutation_iterator</span><span class="special">(</span><span class="identifier">ElementIterator</span> e<span class="special">,</span> <span class="identifier">IndexIterator</span> i<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp39894656"></a><h2>Description</h2>
|
||||
<a name="idp10661984"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns a new <code class="computeroutput"><a class="link" href="permutation_iterator.html" title="Class template permutation_iterator">permutation_iterator</a></code> for
|
||||
element iterator <code class="computeroutput">e</code> and index iterator <code class="computeroutput">i</code>.
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<a class="link" href="transform_iterator.html" title="Class template transform_iterator">transform_iterator</a><span class="special"><</span><span class="identifier">InputIterator</span><span class="special">,</span> <span class="identifier">UnaryFunction</span><span class="special">></span>
|
||||
<span class="identifier">make_transform_iterator</span><span class="special">(</span><span class="identifier">InputIterator</span> iterator<span class="special">,</span> <span class="identifier">UnaryFunction</span> function<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp39954848"></a><h2>Description</h2>
|
||||
<a name="idp10722272"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns a new <code class="computeroutput"><a class="link" href="transform_iterator.html" title="Class template transform_iterator">transform_iterator</a></code> with
|
||||
<code class="computeroutput">iterator</code> and <code class="computeroutput">transform</code>.
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> IteratorTuple<span class="special">></span>
|
||||
<a class="link" href="zip_iterator.html" title="Class template zip_iterator">zip_iterator</a><span class="special"><</span><span class="identifier">IteratorTuple</span><span class="special">></span> <span class="identifier">make_zip_iterator</span><span class="special">(</span><span class="identifier">IteratorTuple</span> iterators<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp40004416"></a><h2>Description</h2>
|
||||
<a name="idp10771872"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns a new <code class="computeroutput"><a class="link" href="zip_iterator.html" title="Class template zip_iterator">zip_iterator</a></code> with
|
||||
<code class="computeroutput">iterators</code>.
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<span class="identifier">InputIterator</span>
|
||||
<span class="identifier">max_element</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span> <span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp38282400"></a><h2>Description</h2>
|
||||
<a name="idp9049344"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns an iterator pointing the the element in the range
|
||||
[<code class="computeroutput">first</code>, <code class="computeroutput">last</code>) with the maximum value.
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
<span class="identifier">merge</span><span class="special">(</span><span class="identifier">InputIterator1</span> first1<span class="special">,</span> <span class="identifier">InputIterator1</span> last1<span class="special">,</span> <span class="identifier">InputIterator2</span> first2<span class="special">,</span>
|
||||
<span class="identifier">InputIterator2</span> last2<span class="special">,</span> <span class="identifier">OutputIterator</span> result<span class="special">,</span> <span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp38330784"></a><h2>Description</h2>
|
||||
<a name="idp9097904"></a><h2>Description</h2>
|
||||
<p>
|
||||
Merges the sorted values in the range [<code class="computeroutput">first1</code>,
|
||||
<code class="computeroutput">last1</code>) with the sorted values in the range
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<span class="identifier">InputIterator</span>
|
||||
<span class="identifier">min_element</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span> <span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp38367904"></a><h2>Description</h2>
|
||||
<a name="idp9134912"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns an iterator pointing the the element in the range
|
||||
[<code class="computeroutput">first</code>, <code class="computeroutput">last</code>) with the minimum value.
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<span class="identifier">minmax_element</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span>
|
||||
<span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp38411008"></a><h2>Description</h2>
|
||||
<a name="idp9177840"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns a pair of iterators with the first pointing to the minimum
|
||||
element and the second pointing to the maximum element in the range
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<span class="identifier">mismatch</span><span class="special">(</span><span class="identifier">InputIterator1</span> first1<span class="special">,</span> <span class="identifier">InputIterator1</span> last1<span class="special">,</span> <span class="identifier">InputIterator2</span> first2<span class="special">,</span>
|
||||
<span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp38460784"></a><h2>Description</h2>
|
||||
<a name="idp9227552"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns a pair of iterators pointing to the first position where
|
||||
the range [<code class="computeroutput">first1</code>, <code class="computeroutput">last1</code>) and the range
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<span class="keyword">bool</span> <span class="identifier">none_of</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span>
|
||||
<span class="identifier">UnaryPredicate</span> predicate<span class="special">,</span> <span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp38500272"></a><h2>Description</h2>
|
||||
<a name="idp9267024"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns <code class="computeroutput">true</code> if <code class="computeroutput">predicate</code> returns
|
||||
<code class="computeroutput">true</code> for none of the elements in the range
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<span class="identifier">partial_sum</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span> <span class="identifier">OutputIterator</span> result<span class="special">,</span>
|
||||
<span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp38544112"></a><h2>Description</h2>
|
||||
<a name="idp9310800"></a><h2>Description</h2>
|
||||
<p>
|
||||
Calculates the partial sum of the elements in the range
|
||||
[<code class="computeroutput">first</code>, <code class="computeroutput">last</code>) and writes the resulting
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<span class="identifier">Iterator</span> <span class="identifier">partition</span><span class="special">(</span><span class="identifier">Iterator</span> first<span class="special">,</span> <span class="identifier">Iterator</span> last<span class="special">,</span> <span class="identifier">UnaryPredicate</span> predicate<span class="special">,</span>
|
||||
<span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp38584976"></a><h2>Description</h2>
|
||||
<a name="idp9351712"></a><h2>Description</h2>
|
||||
<p>
|
||||
Partitions the values in the range [<code class="computeroutput">first</code>,
|
||||
<code class="computeroutput">last</code>) according to <code class="computeroutput">predicate</code>.
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
<span class="identifier">OutputIterator1</span> first_true<span class="special">,</span> <span class="identifier">OutputIterator2</span> first_false<span class="special">,</span>
|
||||
<span class="identifier">UnaryPredicate</span> predicate<span class="special">,</span> <span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp38646720"></a><h2>Description</h2>
|
||||
<a name="idp9413504"></a><h2>Description</h2>
|
||||
<p>
|
||||
Copies all the elements in the range [<code class="computeroutput">first</code>,
|
||||
<code class="computeroutput">last</code>) for which <code class="computeroutput">predicate</code> returns
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
<span class="keyword">class</span> <a class="link" href="permutation_iterator.html" title="Class template permutation_iterator">permutation_iterator</a> <span class="special">{</span>
|
||||
<span class="special">}</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp39875648"></a><h2>Description</h2>
|
||||
<a name="idp10642928"></a><h2>Description</h2>
|
||||
<p>
|
||||
The <code class="computeroutput">permutation_iterator</code> class provides an iterator
|
||||
which returns the value at a position determined by a separate
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<span class="keyword">class</span> <a class="link" href="pinned_allocator.html" title="Class template pinned_allocator">pinned_allocator</a> <span class="special">{</span>
|
||||
<span class="special">}</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp39566016"></a><h2>Description</h2>
|
||||
<a name="idp10333184"></a><h2>Description</h2>
|
||||
<p>
|
||||
See also: <a class="link" href="allocator.html" title="Class template allocator">allocator</a>
|
||||
</p>
|
||||
|
||||
@@ -28,54 +28,54 @@
|
||||
<span class="keyword">class</span> <a class="link" href="platform.html" title="Class platform">platform</a> <span class="special">{</span>
|
||||
<span class="keyword">public</span><span class="special">:</span>
|
||||
<span class="comment">// <a class="link" href="platform.html#boost.compute.platformconstruct-copy-destruct">construct/copy/destruct</a></span>
|
||||
<span class="keyword">explicit</span> <a class="link" href="platform.html#idp7448560-bb"><span class="identifier">platform</span></a><span class="special">(</span><span class="identifier">cl_platform_id</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="platform.html#idp7451600-bb"><span class="identifier">platform</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="platform.html" title="Class platform">platform</a> <span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
platform& <a class="link" href="platform.html#idp7454784-bb"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="platform.html" title="Class platform">platform</a> <span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="platform.html#idp7457968-bb"><span class="special">~</span><span class="identifier">platform</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
|
||||
<span class="keyword">explicit</span> <a class="link" href="platform.html#idp7847536-bb"><span class="identifier">platform</span></a><span class="special">(</span><span class="identifier">cl_platform_id</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="platform.html#idp7850576-bb"><span class="identifier">platform</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="platform.html" title="Class platform">platform</a> <span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
platform& <a class="link" href="platform.html#idp7853760-bb"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="platform.html" title="Class platform">platform</a> <span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="platform.html#idp7856944-bb"><span class="special">~</span><span class="identifier">platform</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
|
||||
|
||||
<span class="comment">// <a class="link" href="platform.html#idp7459120-bb">public member functions</a></span>
|
||||
<span class="identifier">cl_platform_id</span> <a class="link" href="platform.html#idp7459872-bb"><span class="identifier">id</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <a class="link" href="platform.html#idp7462144-bb"><span class="identifier">name</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <a class="link" href="platform.html#idp7464416-bb"><span class="identifier">vendor</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="identifier">T</span> <a class="link" href="platform.html#idp7466688-bb"><span class="identifier">get_info</span></a><span class="special">(</span><span class="identifier">cl_platform_info</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special"><</span><a class="link" href="device.html" title="Class device">device</a><span class="special">></span> <a class="link" href="platform.html#idp7470848-bb"><span class="identifier">devices</span></a><span class="special">(</span><span class="identifier">cl_device_type</span> <span class="special">=</span> <span class="identifier">CL_DEVICE_TYPE_ALL</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="identifier">size_t</span> <a class="link" href="platform.html#idp7474896-bb"><span class="identifier">device_count</span></a><span class="special">(</span><span class="identifier">cl_device_type</span> <span class="special">=</span> <span class="identifier">CL_DEVICE_TYPE_ALL</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="comment">// <a class="link" href="platform.html#idp7858096-bb">public member functions</a></span>
|
||||
<span class="identifier">cl_platform_id</span> <a class="link" href="platform.html#idp7858848-bb"><span class="identifier">id</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <a class="link" href="platform.html#idp7861120-bb"><span class="identifier">name</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <a class="link" href="platform.html#idp7863392-bb"><span class="identifier">vendor</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="identifier">T</span> <a class="link" href="platform.html#idp7865664-bb"><span class="identifier">get_info</span></a><span class="special">(</span><span class="identifier">cl_platform_info</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special"><</span><a class="link" href="device.html" title="Class device">device</a><span class="special">></span> <a class="link" href="platform.html#idp7869824-bb"><span class="identifier">devices</span></a><span class="special">(</span><span class="identifier">cl_device_type</span> <span class="special">=</span> <span class="identifier">CL_DEVICE_TYPE_ALL</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="identifier">size_t</span> <a class="link" href="platform.html#idp7873872-bb"><span class="identifier">device_count</span></a><span class="special">(</span><span class="identifier">cl_device_type</span> <span class="special">=</span> <span class="identifier">CL_DEVICE_TYPE_ALL</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
|
||||
<span class="comment">// <a class="link" href="platform.html#idp7478432-bb">public static functions</a></span>
|
||||
<span class="keyword">static</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special"><</span><a class="link" href="platform.html" title="Class platform">platform</a><span class="special">></span> <a class="link" href="platform.html#idp7479184-bb"><span class="identifier">platforms</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
|
||||
<span class="keyword">static</span> <span class="identifier">size_t</span> <a class="link" href="platform.html#idp7481968-bb"><span class="identifier">platform_count</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
|
||||
<span class="comment">// <a class="link" href="platform.html#idp7877792-bb">public static functions</a></span>
|
||||
<span class="keyword">static</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special"><</span><a class="link" href="platform.html" title="Class platform">platform</a><span class="special">></span> <a class="link" href="platform.html#idp7878688-bb"><span class="identifier">platforms</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
|
||||
<span class="keyword">static</span> <span class="identifier">size_t</span> <a class="link" href="platform.html#idp7881904-bb"><span class="identifier">platform_count</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
|
||||
<span class="special">}</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp36369152"></a><h2>Description</h2>
|
||||
<a name="idp7118720"></a><h2>Description</h2>
|
||||
<p>
|
||||
The platform class provides an interface to an OpenCL platform.
|
||||
</p>
|
||||
<div class="refsect2">
|
||||
<a name="idp36370176"></a><h3>
|
||||
<a name="idp7119648"></a><h3>
|
||||
<a name="boost.compute.platformconstruct-copy-destruct"></a><code class="computeroutput">platform</code>
|
||||
public
|
||||
construct/copy/destruct</h3>
|
||||
<div class="orderedlist"><ol class="orderedlist" type="1">
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="keyword">explicit</span> <a name="idp7448560-bb"></a><span class="identifier">platform</span><span class="special">(</span><span class="identifier">cl_platform_id</span> id<span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="keyword">explicit</span> <a name="idp7847536-bb"></a><span class="identifier">platform</span><span class="special">(</span><span class="identifier">cl_platform_id</span> id<span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Creates a new platform object for <code class="computeroutput">id</code>.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><a name="idp7451600-bb"></a><span class="identifier">platform</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="platform.html" title="Class platform">platform</a> <span class="special">&</span> other<span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><a name="idp7850576-bb"></a><span class="identifier">platform</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="platform.html" title="Class platform">platform</a> <span class="special">&</span> other<span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Creates a new platform object as a copy of <code class="computeroutput">other</code>.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout">platform& <a name="idp7454784-bb"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="platform.html" title="Class platform">platform</a> <span class="special">&</span> other<span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout">platform& <a name="idp7853760-bb"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="platform.html" title="Class platform">platform</a> <span class="special">&</span> other<span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Copies the platform from <code class="computeroutput">other</code>.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><a name="idp7457968-bb"></a><span class="special">~</span><span class="identifier">platform</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><a name="idp7856944-bb"></a><span class="special">~</span><span class="identifier">platform</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Destroys the platform object.
|
||||
</p>
|
||||
@@ -83,41 +83,41 @@
|
||||
</ol></div>
|
||||
</div>
|
||||
<div class="refsect2">
|
||||
<a name="idp36397264"></a><h3>
|
||||
<a name="idp7459120-bb"></a><code class="computeroutput">platform</code> public member functions</h3>
|
||||
<a name="idp7146672"></a><h3>
|
||||
<a name="idp7858096-bb"></a><code class="computeroutput">platform</code> public member functions</h3>
|
||||
<div class="orderedlist"><ol class="orderedlist" type="1">
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="identifier">cl_platform_id</span> <a name="idp7459872-bb"></a><span class="identifier">id</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="identifier">cl_platform_id</span> <a name="idp7858848-bb"></a><span class="identifier">id</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Returns the ID of the platform.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <a name="idp7462144-bb"></a><span class="identifier">name</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <a name="idp7861120-bb"></a><span class="identifier">name</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Returns the name of the platform.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <a name="idp7464416-bb"></a><span class="identifier">vendor</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <a name="idp7863392-bb"></a><span class="identifier">vendor</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Returns the name of the vendor of the platform.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="identifier">T</span> <a name="idp7466688-bb"></a><span class="identifier">get_info</span><span class="special">(</span><span class="identifier">cl_platform_info</span> info<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="identifier">T</span> <a name="idp7865664-bb"></a><span class="identifier">get_info</span><span class="special">(</span><span class="identifier">cl_platform_info</span> info<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Returns information about the platform.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special"><</span><a class="link" href="device.html" title="Class device">device</a><span class="special">></span> <a name="idp7470848-bb"></a><span class="identifier">devices</span><span class="special">(</span><span class="identifier">cl_device_type</span> type <span class="special">=</span> <span class="identifier">CL_DEVICE_TYPE_ALL</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special"><</span><a class="link" href="device.html" title="Class device">device</a><span class="special">></span> <a name="idp7869824-bb"></a><span class="identifier">devices</span><span class="special">(</span><span class="identifier">cl_device_type</span> type <span class="special">=</span> <span class="identifier">CL_DEVICE_TYPE_ALL</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Returns a vector of devices for the platform.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="identifier">size_t</span> <a name="idp7474896-bb"></a><span class="identifier">device_count</span><span class="special">(</span><span class="identifier">cl_device_type</span> type <span class="special">=</span> <span class="identifier">CL_DEVICE_TYPE_ALL</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="identifier">size_t</span> <a name="idp7873872-bb"></a><span class="identifier">device_count</span><span class="special">(</span><span class="identifier">cl_device_type</span> type <span class="special">=</span> <span class="identifier">CL_DEVICE_TYPE_ALL</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Returns the number of devices on the platform.
|
||||
</p>
|
||||
@@ -125,18 +125,18 @@
|
||||
</ol></div>
|
||||
</div>
|
||||
<div class="refsect2">
|
||||
<a name="idp36443392"></a><h3>
|
||||
<a name="idp7478432-bb"></a><code class="computeroutput">platform</code> public static functions</h3>
|
||||
<a name="idp7192864"></a><h3>
|
||||
<a name="idp7877792-bb"></a><code class="computeroutput">platform</code> public static functions</h3>
|
||||
<div class="orderedlist"><ol class="orderedlist" type="1">
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="keyword">static</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special"><</span><a class="link" href="platform.html" title="Class platform">platform</a><span class="special">></span> <a name="idp7479184-bb"></a><span class="identifier">platforms</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="keyword">static</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special"><</span><a class="link" href="platform.html" title="Class platform">platform</a><span class="special">></span> <a name="idp7878688-bb"></a><span class="identifier">platforms</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Returns a vector of all the OpenCL platforms available on the
|
||||
system.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="keyword">static</span> <span class="identifier">size_t</span> <a name="idp7481968-bb"></a><span class="identifier">platform_count</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="keyword">static</span> <span class="identifier">size_t</span> <a name="idp7881904-bb"></a><span class="identifier">platform_count</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Returns the total number of OpenCL platforms available on the
|
||||
system.
|
||||
|
||||
@@ -28,52 +28,61 @@
|
||||
<span class="keyword">class</span> <a class="link" href="program.html" title="Class program">program</a> <span class="special">{</span>
|
||||
<span class="keyword">public</span><span class="special">:</span>
|
||||
<span class="comment">// <a class="link" href="program.html#boost.compute.programconstruct-copy-destruct">construct/copy/destruct</a></span>
|
||||
<a class="link" href="program.html#idp7489520-bb"><span class="identifier">program</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="program.html#idp7490928-bb"><span class="identifier">program</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="program.html" title="Class program">program</a><span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
program& <a class="link" href="program.html#idp7494112-bb"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="program.html" title="Class program">program</a><span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="program.html#idp7497296-bb"><span class="special">~</span><span class="identifier">program</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="program.html#idp7890640-bb"><span class="identifier">program</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
|
||||
<span class="keyword">explicit</span> <a class="link" href="program.html#idp7892368-bb"><span class="identifier">program</span></a><span class="special">(</span><span class="identifier">cl_program</span><span class="special">,</span> <span class="keyword">bool</span> <span class="special">=</span> <span class="keyword">true</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="program.html#idp7898976-bb"><span class="identifier">program</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="program.html" title="Class program">program</a><span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
program& <a class="link" href="program.html#idp7902768-bb"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="program.html" title="Class program">program</a><span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="program.html#idp7906512-bb"><span class="special">~</span><span class="identifier">program</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
|
||||
|
||||
<span class="comment">// <a class="link" href="program.html#idp7498448-bb">public member functions</a></span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <a class="link" href="program.html#idp7499200-bb"><span class="identifier">source</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="identifier">T</span> <a class="link" href="program.html#idp7501568-bb"><span class="identifier">get_info</span></a><span class="special">(</span><span class="identifier">cl_program_info</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="keyword">void</span> <a class="link" href="program.html#idp7505728-bb"><span class="identifier">build</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span> <span class="special">=</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="program.html#idp7509536-bb"><span class="keyword">operator</span> <span class="identifier">cl_program</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="comment">// <a class="link" href="program.html#idp7907904-bb">public member functions</a></span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <a class="link" href="program.html#idp7908784-bb"><span class="identifier">source</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="identifier">T</span> <a class="link" href="program.html#idp7911520-bb"><span class="identifier">get_info</span></a><span class="special">(</span><span class="identifier">cl_program_info</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
<span class="keyword">void</span> <a class="link" href="program.html#idp7916416-bb"><span class="identifier">build</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span> <span class="special">=</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span>
|
||||
<a class="link" href="program.html#idp7920912-bb"><span class="keyword">operator</span> <span class="identifier">cl_program</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
|
||||
|
||||
<span class="comment">// <a class="link" href="program.html#idp7511680-bb">public static functions</a></span>
|
||||
<span class="keyword">static</span> <a class="link" href="program.html" title="Class program">program</a> <a class="link" href="program.html#idp7512432-bb"><span class="identifier">create_with_source</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="context.html" title="Class context">context</a><span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
<span class="keyword">static</span> <a class="link" href="program.html" title="Class program">program</a> <a class="link" href="program.html#idp7518000-bb"><span class="identifier">create_with_source_file</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="context.html" title="Class context">context</a><span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
<span class="comment">// <a class="link" href="program.html#idp7923440-bb">public static functions</a></span>
|
||||
<span class="keyword">static</span> <a class="link" href="program.html" title="Class program">program</a> <a class="link" href="program.html#idp7924352-bb"><span class="identifier">create_with_source</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="context.html" title="Class context">context</a><span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
<span class="keyword">static</span> <a class="link" href="program.html" title="Class program">program</a> <a class="link" href="program.html#idp7930880-bb"><span class="identifier">create_with_source_file</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="context.html" title="Class context">context</a><span class="special">&</span><span class="special">)</span><span class="special">;</span>
|
||||
<span class="special">}</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp36544864"></a><h2>Description</h2>
|
||||
<a name="idp7301184"></a><h2>Description</h2>
|
||||
<p>
|
||||
See also: <a class="link" href="kernel.html" title="Class kernel">kernel</a>
|
||||
</p>
|
||||
<div class="refsect2">
|
||||
<a name="idp36546624"></a><h3>
|
||||
<a name="idp7302944"></a><h3>
|
||||
<a name="boost.compute.programconstruct-copy-destruct"></a><code class="computeroutput">program</code>
|
||||
public
|
||||
construct/copy/destruct</h3>
|
||||
<div class="orderedlist"><ol class="orderedlist" type="1">
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><a name="idp7489520-bb"></a><span class="identifier">program</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><a name="idp7890640-bb"></a><span class="identifier">program</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Creates a null program object.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><a name="idp7490928-bb"></a><span class="identifier">program</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="program.html" title="Class program">program</a><span class="special">&</span> other<span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="keyword">explicit</span> <a name="idp7892368-bb"></a><span class="identifier">program</span><span class="special">(</span><span class="identifier">cl_program</span> program<span class="special">,</span> <span class="keyword">bool</span> retain <span class="special">=</span> <span class="keyword">true</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Creates a new program object for <code class="computeroutput">program</code>. If
|
||||
<code class="computeroutput">retain</code> is <code class="computeroutput">true</code> (the default) the
|
||||
reference count for <code class="computeroutput">program</code> will be incremented.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><a name="idp7898976-bb"></a><span class="identifier">program</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="program.html" title="Class program">program</a><span class="special">&</span> other<span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Creates a new program object as a copy of <code class="computeroutput">other</code>.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout">program& <a name="idp7494112-bb"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="program.html" title="Class program">program</a><span class="special">&</span> other<span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout">program& <a name="idp7902768-bb"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="program.html" title="Class program">program</a><span class="special">&</span> other<span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Copies the program from <code class="computeroutput">other</code>.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><a name="idp7497296-bb"></a><span class="special">~</span><span class="identifier">program</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><a name="idp7906512-bb"></a><span class="special">~</span><span class="identifier">program</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Destroys the program object.
|
||||
</p>
|
||||
@@ -81,29 +90,29 @@
|
||||
</ol></div>
|
||||
</div>
|
||||
<div class="refsect2">
|
||||
<a name="idp36571328"></a><h3>
|
||||
<a name="idp7498448-bb"></a><code class="computeroutput">program</code> public member functions</h3>
|
||||
<a name="idp7338560"></a><h3>
|
||||
<a name="idp7907904-bb"></a><code class="computeroutput">program</code> public member functions</h3>
|
||||
<div class="orderedlist"><ol class="orderedlist" type="1">
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <a name="idp7499200-bb"></a><span class="identifier">source</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <a name="idp7908784-bb"></a><span class="identifier">source</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Returns the source code for the program.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="identifier">T</span> <a name="idp7501568-bb"></a><span class="identifier">get_info</span><span class="special">(</span><span class="identifier">cl_program_info</span> info<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="identifier">T</span> <a name="idp7911520-bb"></a><span class="identifier">get_info</span><span class="special">(</span><span class="identifier">cl_program_info</span> info<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Returns information about the program.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="keyword">void</span> <a name="idp7505728-bb"></a><span class="identifier">build</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span> options <span class="special">=</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"><span class="keyword">void</span> <a name="idp7916416-bb"></a><span class="identifier">build</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span> options <span class="special">=</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Builds the program with <code class="computeroutput">options</code>.
|
||||
</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"> <a name="idp7509536-bb"></a><span class="keyword">operator</span> <span class="identifier">cl_program</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<pre class="literallayout"> <a name="idp7920912-bb"></a><span class="keyword">operator</span> <span class="identifier">cl_program</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Converts the program object to a <code class="computeroutput">cl_program</code>.
|
||||
</p>
|
||||
@@ -111,12 +120,12 @@
|
||||
</ol></div>
|
||||
</div>
|
||||
<div class="refsect2">
|
||||
<a name="idp36606192"></a><h3>
|
||||
<a name="idp7511680-bb"></a><code class="computeroutput">program</code> public static functions</h3>
|
||||
<a name="idp7373424"></a><h3>
|
||||
<a name="idp7923440-bb"></a><code class="computeroutput">program</code> public static functions</h3>
|
||||
<div class="orderedlist"><ol class="orderedlist" type="1">
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="keyword">static</span> <a class="link" href="program.html" title="Class program">program</a>
|
||||
<a name="idp7512432-bb"></a><span class="identifier">create_with_source</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span> source<span class="special">,</span> <span class="keyword">const</span> <a class="link" href="context.html" title="Class context">context</a><span class="special">&</span> context<span class="special">)</span><span class="special">;</span></pre>
|
||||
<a name="idp7924352-bb"></a><span class="identifier">create_with_source</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span> source<span class="special">,</span> <span class="keyword">const</span> <a class="link" href="context.html" title="Class context">context</a><span class="special">&</span> context<span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Creates a new program object with <code class="computeroutput">source</code> in
|
||||
<code class="computeroutput">context</code>.
|
||||
@@ -124,7 +133,7 @@
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<pre class="literallayout"><span class="keyword">static</span> <a class="link" href="program.html" title="Class program">program</a>
|
||||
<a name="idp7518000-bb"></a><span class="identifier">create_with_source_file</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span> file<span class="special">,</span> <span class="keyword">const</span> <a class="link" href="context.html" title="Class context">context</a><span class="special">&</span> context<span class="special">)</span><span class="special">;</span></pre>
|
||||
<a name="idp7930880-bb"></a><span class="identifier">create_with_source_file</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span> file<span class="special">,</span> <span class="keyword">const</span> <a class="link" href="context.html" title="Class context">context</a><span class="special">&</span> context<span class="special">)</span><span class="special">;</span></pre>
|
||||
<p>
|
||||
Creates a new program object with <code class="computeroutput">file</code> in
|
||||
<code class="computeroutput">context</code>.
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> Iterator<span class="special">></span>
|
||||
<span class="keyword">void</span> <span class="identifier">random_shuffle</span><span class="special">(</span><span class="identifier">Iterator</span> first<span class="special">,</span> <span class="identifier">Iterator</span> last<span class="special">,</span> <span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp38687536"></a><h2>Description</h2>
|
||||
<a name="idp9454448"></a><h2>Description</h2>
|
||||
<p>
|
||||
Randomly shuffles the values in the range [<code class="computeroutput">first</code>,
|
||||
<code class="computeroutput">last</code>).
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<span class="identifier">T</span> <span class="identifier">reduce</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span> <span class="identifier">T</span> init<span class="special">,</span>
|
||||
<span class="identifier">BinaryFunction</span> function<span class="special">,</span> <span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp38816832"></a><h2>Description</h2>
|
||||
<a name="idp9583792"></a><h2>Description</h2>
|
||||
<p>
|
||||
Returns the result of applying <code class="computeroutput">function</code> to the
|
||||
elements in the range [<code class="computeroutput">first</code>, <code class="computeroutput">last</code>)
|
||||
@@ -37,7 +37,7 @@
|
||||
</p>
|
||||
<p>
|
||||
The difference between the <code class="computeroutput">reduce()</code> function and the
|
||||
<code class="computeroutput"><a class="link" href="accumulate_idp7575216.html" title="Function template accumulate">accumulate()</a></code> function is that
|
||||
<code class="computeroutput"><a class="link" href="accumulate_idp7997392.html" title="Function template accumulate">accumulate()</a></code> function is that
|
||||
<code class="computeroutput">reduce()</code> requires the binary operator to be
|
||||
commutative.
|
||||
</p>
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<span class="identifier">Iterator</span> <span class="identifier">remove</span><span class="special">(</span><span class="identifier">Iterator</span> first<span class="special">,</span> <span class="identifier">Iterator</span> last<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span><span class="special">&</span> value<span class="special">,</span>
|
||||
<span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp38728896"></a><h2>Description</h2>
|
||||
<a name="idp9495840"></a><h2>Description</h2>
|
||||
<p>
|
||||
Removes each element equal to <code class="computeroutput">value</code> in the range
|
||||
[<code class="computeroutput">first</code>, <code class="computeroutput">last</code>).
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<span class="identifier">Iterator</span> <span class="identifier">remove_if</span><span class="special">(</span><span class="identifier">Iterator</span> first<span class="special">,</span> <span class="identifier">Iterator</span> last<span class="special">,</span> <span class="identifier">UnaryPredicate</span> predicate<span class="special">,</span>
|
||||
<span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp38769984"></a><h2>Description</h2>
|
||||
<a name="idp9537008"></a><h2>Description</h2>
|
||||
<p>
|
||||
Removes each element for which <code class="computeroutput">predicate</code> returns
|
||||
<code class="computeroutput">true</code> in the range [<code class="computeroutput">first</code>,
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<span class="keyword">void</span> <span class="identifier">replace</span><span class="special">(</span><span class="identifier">Iterator</span> first<span class="special">,</span> <span class="identifier">Iterator</span> last<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span><span class="special">&</span> old_value<span class="special">,</span>
|
||||
<span class="keyword">const</span> <span class="identifier">T</span><span class="special">&</span> new_value<span class="special">,</span> <span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp38867648"></a><h2>Description</h2>
|
||||
<a name="idp9634560"></a><h2>Description</h2>
|
||||
<p>
|
||||
Replaces each instance of <code class="computeroutput">old_value</code> in the range
|
||||
[<code class="computeroutput">first</code>, <code class="computeroutput">last</code>) with
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<span class="identifier">OutputIterator</span> result<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span><span class="special">&</span> old_value<span class="special">,</span>
|
||||
<span class="keyword">const</span> <span class="identifier">T</span><span class="special">&</span> new_value<span class="special">,</span> <span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp38920752"></a><h2>Description</h2>
|
||||
<a name="idp9687744"></a><h2>Description</h2>
|
||||
<p>
|
||||
Copies the values in the range [<code class="computeroutput">first</code>,
|
||||
<code class="computeroutput">last</code>) to the range beginning at <code class="computeroutput">result</code>
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> Iterator<span class="special">></span>
|
||||
<span class="keyword">void</span> <span class="identifier">reverse</span><span class="special">(</span><span class="identifier">Iterator</span> first<span class="special">,</span> <span class="identifier">Iterator</span> last<span class="special">,</span> <span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp38958272"></a><h2>Description</h2>
|
||||
<a name="idp9724992"></a><h2>Description</h2>
|
||||
<p>
|
||||
Reverses the values in the range [<code class="computeroutput">first</code>,
|
||||
<code class="computeroutput">last</code>).
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<span class="identifier">reverse_copy</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span> <span class="identifier">OutputIterator</span> result<span class="special">,</span>
|
||||
<span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp38997264"></a><h2>Description</h2>
|
||||
<a name="idp9763936"></a><h2>Description</h2>
|
||||
<p>
|
||||
Copies the values in the range [<code class="computeroutput">first</code>,
|
||||
<code class="computeroutput">last</code>) in reversed order to the range beginning at
|
||||
|
||||
@@ -7,13 +7,13 @@
|
||||
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Compute">
|
||||
<link rel="up" href="../../compute/reference.html#header.boost.compute.algorithm.scatter_hpp" title="Header <boost/compute/algorithm/scatter.hpp>">
|
||||
<link rel="prev" href="reverse_copy.html" title="Function template reverse_copy">
|
||||
<link rel="next" href="sort_idp8299552.html" title="Function template sort">
|
||||
<link rel="next" href="sort_idp8728864.html" title="Function template sort">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="reverse_copy.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.scatter_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="sort_idp8299552.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
<a accesskey="p" href="reverse_copy.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.scatter_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="sort_idp8728864.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="refentry">
|
||||
<a name="boost.compute.scatter"></a><div class="titlepage"></div>
|
||||
@@ -30,7 +30,7 @@
|
||||
<span class="keyword">void</span> <span class="identifier">scatter</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span> <span class="identifier">MapIterator</span> map<span class="special">,</span>
|
||||
<span class="identifier">OutputIterator</span> result<span class="special">,</span> <span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp39044960"></a><h2>Description</h2>
|
||||
<a name="idp9811584"></a><h2>Description</h2>
|
||||
<p>
|
||||
Copies the elements from the range [<code class="computeroutput">first</code>,
|
||||
<code class="computeroutput">last</code>) to the range beginning at <code class="computeroutput">result</code>
|
||||
@@ -52,7 +52,7 @@
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="reverse_copy.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.scatter_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="sort_idp8299552.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
<a accesskey="p" href="reverse_copy.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.scatter_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="sort_idp8728864.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
54
boost/compute/sort_idp7710096.html
Normal file
54
boost/compute/sort_idp7710096.html
Normal file
@@ -0,0 +1,54 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||
<title>Function template sort</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
||||
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Compute">
|
||||
<link rel="up" href="../../compute/reference.html#header.boost.compute.algorithm.sort_hpp" title="Header <boost/compute/algorithm/sort.hpp>">
|
||||
<link rel="prev" href="scatter.html" title="Function template scatter">
|
||||
<link rel="next" href="sort_idp7721856.html" title="Function template sort">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="scatter.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.sort_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="sort_idp7721856.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="refentry">
|
||||
<a name="boost.compute.sort_idp7710096"></a><div class="titlepage"></div>
|
||||
<div class="refnamediv">
|
||||
<h2><span class="refentrytitle">Function template sort</span></h2>
|
||||
<p>boost::compute::sort</p>
|
||||
</div>
|
||||
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
|
||||
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../compute/reference.html#header.boost.compute.algorithm.sort_hpp" title="Header <boost/compute/algorithm/sort.hpp>">boost/compute/algorithm/sort.hpp</a>>
|
||||
|
||||
</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> Iterator<span class="special">></span>
|
||||
<span class="keyword">void</span> <span class="identifier">sort</span><span class="special">(</span><span class="identifier">Iterator</span> first<span class="special">,</span> <span class="identifier">Iterator</span> last<span class="special">,</span> <span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp38345536"></a><h2>Description</h2>
|
||||
<p>
|
||||
Sorts the values in the range [<code class="computeroutput">first</code>,
|
||||
<code class="computeroutput">last</code>).
|
||||
</p>
|
||||
<p>
|
||||
See also: <code class="computeroutput"><a class="link" href="is_sorted.html" title="Function template is_sorted">is_sorted()</a></code>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2013 Kyle Lutz<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="scatter.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.sort_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="sort_idp7721856.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
56
boost/compute/sort_idp7721856.html
Normal file
56
boost/compute/sort_idp7721856.html
Normal file
@@ -0,0 +1,56 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||
<title>Function template sort</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
||||
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Compute">
|
||||
<link rel="up" href="../../compute/reference.html#header.boost.compute.algorithm.stable_sort_hpp" title="Header <boost/compute/algorithm/stable_sort.hpp>">
|
||||
<link rel="prev" href="sort_idp7710096.html" title="Function template sort">
|
||||
<link rel="next" href="swap_ranges.html" title="Function template swap_ranges">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="sort_idp7710096.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.stable_sort_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="swap_ranges.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="refentry">
|
||||
<a name="boost.compute.sort_idp7721856"></a><div class="titlepage"></div>
|
||||
<div class="refnamediv">
|
||||
<h2><span class="refentrytitle">Function template sort</span></h2>
|
||||
<p>boost::compute::sort</p>
|
||||
</div>
|
||||
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
|
||||
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../compute/reference.html#header.boost.compute.algorithm.stable_sort_hpp" title="Header <boost/compute/algorithm/stable_sort.hpp>">boost/compute/algorithm/stable_sort.hpp</a>>
|
||||
|
||||
</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> Iterator<span class="special">></span>
|
||||
<span class="keyword">void</span> <span class="identifier">sort</span><span class="special">(</span><span class="identifier">Iterator</span> first<span class="special">,</span> <span class="identifier">Iterator</span> last<span class="special">,</span> <span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp38380736"></a><h2>Description</h2>
|
||||
<p>
|
||||
Sorts the values in the range [<code class="computeroutput">first</code>,
|
||||
<code class="computeroutput">last</code>). The relative order of identical values is
|
||||
preserved.
|
||||
</p>
|
||||
<p>
|
||||
See also: <code class="computeroutput"><a class="link" href="copy.html" title="Function template copy">copy()</a></code>
|
||||
<code class="computeroutput"><a class="link" href="is_sorted.html" title="Function template is_sorted">is_sorted()</a></code>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2013 Kyle Lutz<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="sort_idp7710096.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.stable_sort_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="swap_ranges.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
54
boost/compute/sort_idp8017152.html
Normal file
54
boost/compute/sort_idp8017152.html
Normal file
@@ -0,0 +1,54 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||
<title>Function template sort</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
||||
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Compute">
|
||||
<link rel="up" href="../../compute/reference.html#header.boost.compute.algorithm.sort_hpp" title="Header <boost/compute/algorithm/sort.hpp>">
|
||||
<link rel="prev" href="scatter.html" title="Function template scatter">
|
||||
<link rel="next" href="sort_idp8028912.html" title="Function template sort">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="scatter.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.sort_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="sort_idp8028912.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="refentry">
|
||||
<a name="boost.compute.sort_idp8017152"></a><div class="titlepage"></div>
|
||||
<div class="refnamediv">
|
||||
<h2><span class="refentrytitle">Function template sort</span></h2>
|
||||
<p>boost::compute::sort</p>
|
||||
</div>
|
||||
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
|
||||
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../compute/reference.html#header.boost.compute.algorithm.sort_hpp" title="Header <boost/compute/algorithm/sort.hpp>">boost/compute/algorithm/sort.hpp</a>>
|
||||
|
||||
</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> Iterator<span class="special">></span>
|
||||
<span class="keyword">void</span> <span class="identifier">sort</span><span class="special">(</span><span class="identifier">Iterator</span> first<span class="special">,</span> <span class="identifier">Iterator</span> last<span class="special">,</span> <span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp8686848"></a><h2>Description</h2>
|
||||
<p>
|
||||
Sorts the values in the range [<code class="computeroutput">first</code>,
|
||||
<code class="computeroutput">last</code>).
|
||||
</p>
|
||||
<p>
|
||||
See also: <code class="computeroutput"><a class="link" href="is_sorted.html" title="Function template is_sorted">is_sorted()</a></code>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2013 Kyle Lutz<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="scatter.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.sort_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="sort_idp8028912.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
56
boost/compute/sort_idp8028912.html
Normal file
56
boost/compute/sort_idp8028912.html
Normal file
@@ -0,0 +1,56 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||
<title>Function template sort</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
||||
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Compute">
|
||||
<link rel="up" href="../../compute/reference.html#header.boost.compute.algorithm.stable_sort_hpp" title="Header <boost/compute/algorithm/stable_sort.hpp>">
|
||||
<link rel="prev" href="sort_idp8017152.html" title="Function template sort">
|
||||
<link rel="next" href="swap_ranges.html" title="Function template swap_ranges">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="sort_idp8017152.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.stable_sort_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="swap_ranges.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="refentry">
|
||||
<a name="boost.compute.sort_idp8028912"></a><div class="titlepage"></div>
|
||||
<div class="refnamediv">
|
||||
<h2><span class="refentrytitle">Function template sort</span></h2>
|
||||
<p>boost::compute::sort</p>
|
||||
</div>
|
||||
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
|
||||
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../compute/reference.html#header.boost.compute.algorithm.stable_sort_hpp" title="Header <boost/compute/algorithm/stable_sort.hpp>">boost/compute/algorithm/stable_sort.hpp</a>>
|
||||
|
||||
</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> Iterator<span class="special">></span>
|
||||
<span class="keyword">void</span> <span class="identifier">sort</span><span class="special">(</span><span class="identifier">Iterator</span> first<span class="special">,</span> <span class="identifier">Iterator</span> last<span class="special">,</span> <span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp8721872"></a><h2>Description</h2>
|
||||
<p>
|
||||
Sorts the values in the range [<code class="computeroutput">first</code>,
|
||||
<code class="computeroutput">last</code>). The relative order of identical values is
|
||||
preserved.
|
||||
</p>
|
||||
<p>
|
||||
See also: <code class="computeroutput"><a class="link" href="copy.html" title="Function template copy">copy()</a></code>
|
||||
<code class="computeroutput"><a class="link" href="is_sorted.html" title="Function template is_sorted">is_sorted()</a></code>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2013 Kyle Lutz<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="sort_idp8017152.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.stable_sort_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="swap_ranges.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
54
boost/compute/sort_idp8677856.html
Normal file
54
boost/compute/sort_idp8677856.html
Normal file
@@ -0,0 +1,54 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||
<title>Function template sort</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
||||
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Compute">
|
||||
<link rel="up" href="../../compute/reference.html#header.boost.compute.algorithm.sort_hpp" title="Header <boost/compute/algorithm/sort.hpp>">
|
||||
<link rel="prev" href="scatter.html" title="Function template scatter">
|
||||
<link rel="next" href="sort_idp8689616.html" title="Function template sort">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="scatter.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.sort_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="sort_idp8689616.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="refentry">
|
||||
<a name="boost.compute.sort_idp8677856"></a><div class="titlepage"></div>
|
||||
<div class="refnamediv">
|
||||
<h2><span class="refentrytitle">Function template sort</span></h2>
|
||||
<p>boost::compute::sort</p>
|
||||
</div>
|
||||
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
|
||||
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../compute/reference.html#header.boost.compute.algorithm.sort_hpp" title="Header <boost/compute/algorithm/sort.hpp>">boost/compute/algorithm/sort.hpp</a>>
|
||||
|
||||
</span>
|
||||
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> Iterator<span class="special">></span>
|
||||
<span class="keyword">void</span> <span class="identifier">sort</span><span class="special">(</span><span class="identifier">Iterator</span> first<span class="special">,</span> <span class="identifier">Iterator</span> last<span class="special">,</span> <span class="identifier">command_queue</span> <span class="special">&</span> queue<span class="special">)</span><span class="special">;</span></pre></div>
|
||||
<div class="refsect1">
|
||||
<a name="idp9850464"></a><h2>Description</h2>
|
||||
<p>
|
||||
Sorts the values in the range [<code class="computeroutput">first</code>,
|
||||
<code class="computeroutput">last</code>).
|
||||
</p>
|
||||
<p>
|
||||
See also: <code class="computeroutput"><a class="link" href="is_sorted.html" title="Function template is_sorted">is_sorted()</a></code>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2013 Kyle Lutz<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="scatter.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../compute/reference.html#header.boost.compute.algorithm.sort_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="sort_idp8689616.html"><img src="../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user