1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>ViennaCL - The Vienna Computing Library: viennacl/tools/entry_proxy.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">ViennaCL - The Vienna Computing Library
 <span id="projectnumber">1.7.1</span>
</div>
<div id="projectbrief">Free open-source GPU-accelerated linear algebra and solver library.</div>
</td>
<td> <div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('entry__proxy_8hpp_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark"> </span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(11)"><span class="SelectionMark"> </span>Pages</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="headertitle">
<div class="title">entry_proxy.hpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="entry__proxy_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#ifndef VIENNACL_TOOLS_ENTRY_PROXY_HPP_</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#define VIENNACL_TOOLS_ENTRY_PROXY_HPP_</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> </div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">/* =========================================================================</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> Copyright (c) 2010-2016, Institute for Microelectronics,</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> Institute for Analysis and Scientific Computing,</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> TU Wien.</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> Portions of this software are copyright by UChicago Argonne, LLC.</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"></span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> -----------------</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> ViennaCL - The Vienna Computing Library</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> -----------------</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"></span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> Project Head: Karl Rupp rupp@iue.tuwien.ac.at</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"></span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> (A list of authors and contributors can be found in the manual)</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"></span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> License: MIT (X11), see file LICENSE in the base directory</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment">============================================================================= */</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> </div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include "<a class="code" href="forwards_8h.html">viennacl/forwards.h</a>"</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include "<a class="code" href="scalar_8hpp.html">viennacl/scalar.hpp</a>"</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">namespace </span>viennacl</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> {</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="comment">//proxy class for single vector entries (this is a slow operation!!)</span></div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="comment"></span><span class="keyword">template</span><<span class="keyword">typename</span> NumericT></div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="keyword">class </span>entry_proxy</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> {</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="keyword">public</span>:</div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="classviennacl_1_1entry__proxy.html#a5aab26f84f0a0f33a16c801826e8b5aa"> 44</a></span>  <span class="keyword">typedef</span> <a class="code" href="classviennacl_1_1backend_1_1mem__handle.html">viennacl::backend::mem_handle</a> <a class="code" href="classviennacl_1_1entry__proxy.html#a5aab26f84f0a0f33a16c801826e8b5aa">handle_type</a>;</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> </div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="classviennacl_1_1entry__proxy.html#a42a889aa89772a30c2d58d5588a3ac04"> 51</a></span>  <span class="keyword">explicit</span> <a class="code" href="classviennacl_1_1entry__proxy.html#a42a889aa89772a30c2d58d5588a3ac04">entry_proxy</a>(<a class="code" href="namespaceviennacl.html#a98a0afcc513111ffa0bd138f891930df">vcl_size_t</a> mem_offset,</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <a class="code" href="classviennacl_1_1backend_1_1mem__handle.html">handle_type</a> & mem_handle)</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  : index_(mem_offset), mem_handle_(mem_handle) {}</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> </div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> </div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="comment">//operators:</span></div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="classviennacl_1_1entry__proxy.html#a20d1e6598ba396eca5441e81866692bb"> 59</a></span> <span class="comment"></span> <a class="code" href="classviennacl_1_1entry__proxy.html">entry_proxy</a> & <a class="code" href="classviennacl_1_1entry__proxy.html#a20d1e6598ba396eca5441e81866692bb">operator+=</a>(<a class="code" href="tests_2src_2bisect_8cpp.html#a52b5d30a2d7b064678644a3bf49b7f6c">NumericT</a> value)</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  {</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <a class="code" href="tests_2src_2bisect_8cpp.html#a52b5d30a2d7b064678644a3bf49b7f6c">NumericT</a> temp = read();</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  temp += value;</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  write(temp);</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  }</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> </div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="classviennacl_1_1entry__proxy.html#a9e5cbe868cfad0720aba407d149c75e1"> 69</a></span>  <a class="code" href="classviennacl_1_1entry__proxy.html">entry_proxy</a> & <a class="code" href="classviennacl_1_1entry__proxy.html#a9e5cbe868cfad0720aba407d149c75e1">operator-=</a>(<a class="code" href="tests_2src_2bisect_8cpp.html#a52b5d30a2d7b064678644a3bf49b7f6c">NumericT</a> value)</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  {</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <a class="code" href="tests_2src_2bisect_8cpp.html#a52b5d30a2d7b064678644a3bf49b7f6c">NumericT</a> temp = read();</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  temp -= value;</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  write(temp);</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  }</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span> </div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="classviennacl_1_1entry__proxy.html#adc3fc7c7cb5e7602eedd2d3b4ce35e1c"> 79</a></span>  <a class="code" href="classviennacl_1_1entry__proxy.html">entry_proxy</a> & <a class="code" href="classviennacl_1_1entry__proxy.html#adc3fc7c7cb5e7602eedd2d3b4ce35e1c">operator*=</a>(<a class="code" href="tests_2src_2bisect_8cpp.html#a52b5d30a2d7b064678644a3bf49b7f6c">NumericT</a> value)</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  {</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <a class="code" href="tests_2src_2bisect_8cpp.html#a52b5d30a2d7b064678644a3bf49b7f6c">NumericT</a> temp = read();</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  temp *= value;</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  write(temp);</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  }</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> </div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="classviennacl_1_1entry__proxy.html#ab12fabdb323eefb4892edde6f7b3bf16"> 89</a></span>  <a class="code" href="classviennacl_1_1entry__proxy.html">entry_proxy</a> & <a class="code" href="classviennacl_1_1entry__proxy.html#ab12fabdb323eefb4892edde6f7b3bf16">operator/=</a>(<a class="code" href="tests_2src_2bisect_8cpp.html#a52b5d30a2d7b064678644a3bf49b7f6c">NumericT</a> value)</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  {</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <a class="code" href="tests_2src_2bisect_8cpp.html#a52b5d30a2d7b064678644a3bf49b7f6c">NumericT</a> temp = read();</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  temp /= value;</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  write(temp);</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  }</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span> </div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="classviennacl_1_1entry__proxy.html#aeb73ef2abb2e995991e5ee4d10dfb099"> 99</a></span>  <a class="code" href="classviennacl_1_1entry__proxy.html">entry_proxy</a> & <a class="code" href="classviennacl_1_1entry__proxy.html#aeb73ef2abb2e995991e5ee4d10dfb099">operator=</a>(<a class="code" href="tests_2src_2bisect_8cpp.html#a52b5d30a2d7b064678644a3bf49b7f6c">NumericT</a> value)</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  {</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  write(value);</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  }</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span> </div>
<div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="classviennacl_1_1entry__proxy.html#a7219f5d36ca71d3bab8987747cb77d1c"> 107</a></span>  <a class="code" href="classviennacl_1_1entry__proxy.html">entry_proxy</a> & <a class="code" href="classviennacl_1_1entry__proxy.html#a7219f5d36ca71d3bab8987747cb77d1c">operator=</a>(<a class="code" href="classviennacl_1_1scalar.html">scalar<NumericT></a> <span class="keyword">const</span> & value)</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  {</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <a class="code" href="namespaceviennacl_1_1backend.html#a39a91fd7aa68ebf64bd7bfa409732ec0">viennacl::backend::memory_copy</a>(value.<a class="code" href="classviennacl_1_1scalar.html#a9a62e56c8941de87f86b6b7ccd4987e3">handle</a>(), mem_handle_, 0, <span class="keyword">sizeof</span>(<a class="code" href="tests_2src_2bisect_8cpp.html#a52b5d30a2d7b064678644a3bf49b7f6c">NumericT</a>)*index_, <span class="keyword">sizeof</span>(<a class="code" href="tests_2src_2bisect_8cpp.html#a52b5d30a2d7b064678644a3bf49b7f6c">NumericT</a>));</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  }</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span> </div>
<div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="classviennacl_1_1entry__proxy.html#ae0c4cf27e795235d75556894e677e0af"> 115</a></span>  <a class="code" href="classviennacl_1_1entry__proxy.html">entry_proxy</a> & <a class="code" href="classviennacl_1_1entry__proxy.html#ae0c4cf27e795235d75556894e677e0af">operator=</a>(<a class="code" href="classviennacl_1_1entry__proxy.html">entry_proxy</a> <span class="keyword">const</span> & other)</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  {</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <a class="code" href="namespaceviennacl_1_1backend.html#a39a91fd7aa68ebf64bd7bfa409732ec0">viennacl::backend::memory_copy</a>(other.handle(), mem_handle_, <span class="keyword">sizeof</span>(<a class="code" href="tests_2src_2bisect_8cpp.html#a52b5d30a2d7b064678644a3bf49b7f6c">NumericT</a>) * other.index_, <span class="keyword">sizeof</span>(<a class="code" href="tests_2src_2bisect_8cpp.html#a52b5d30a2d7b064678644a3bf49b7f6c">NumericT</a>)*index_, <span class="keyword">sizeof</span>(<a class="code" href="tests_2src_2bisect_8cpp.html#a52b5d30a2d7b064678644a3bf49b7f6c">NumericT</a>));</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  }</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span> </div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <span class="comment">//type conversion:</span></div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="comment">// allows to write something like:</span></div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="comment">// double test = vector(4);</span></div>
<div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="classviennacl_1_1entry__proxy.html#a719287b50d86b5c8a047af7dbe4a5b3a"> 130</a></span> <span class="comment"></span> <span class="keyword">operator</span> <a class="code" href="tests_2src_2bisect_8cpp.html#a52b5d30a2d7b064678644a3bf49b7f6c">NumericT</a> ()<span class="keyword"> const</span></div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span> <span class="keyword"> </span>{</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <a class="code" href="tests_2src_2bisect_8cpp.html#a52b5d30a2d7b064678644a3bf49b7f6c">NumericT</a> temp = read();</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="keywordflow">return</span> temp;</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  }</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span> </div>
<div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="classviennacl_1_1entry__proxy.html#a4433439fd4233b8bc585d8d8f2cc7619"> 138</a></span>  <a class="code" href="namespaceviennacl.html#a98a0afcc513111ffa0bd138f891930df">vcl_size_t</a> <a class="code" href="classviennacl_1_1entry__proxy.html#a4433439fd4233b8bc585d8d8f2cc7619">index</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> index_; }</div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span> </div>
<div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="classviennacl_1_1entry__proxy.html#acf681a2389ab0b31b5f660205f39ab77"> 142</a></span>  <a class="code" href="classviennacl_1_1backend_1_1mem__handle.html">handle_type</a> <span class="keyword">const</span> & <a class="code" href="classviennacl_1_1entry__proxy.html#acf681a2389ab0b31b5f660205f39ab77">handle</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mem_handle_; }</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span> </div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span> <span class="keyword">private</span>:</div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <a class="code" href="tests_2src_2bisect_8cpp.html#a52b5d30a2d7b064678644a3bf49b7f6c">NumericT</a> read()<span class="keyword"> const</span></div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span> <span class="keyword"> </span>{</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <a class="code" href="tests_2src_2bisect_8cpp.html#a52b5d30a2d7b064678644a3bf49b7f6c">NumericT</a> temp;</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <a class="code" href="namespaceviennacl_1_1backend.html#a62854cfd6f04404b274f8ede36f63e2d">viennacl::backend::memory_read</a>(mem_handle_, <span class="keyword">sizeof</span>(<a class="code" href="tests_2src_2bisect_8cpp.html#a52b5d30a2d7b064678644a3bf49b7f6c">NumericT</a>)*index_, <span class="keyword">sizeof</span>(<a class="code" href="tests_2src_2bisect_8cpp.html#a52b5d30a2d7b064678644a3bf49b7f6c">NumericT</a>), &temp);</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  <span class="keywordflow">return</span> temp;</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  }</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span> </div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <span class="keywordtype">void</span> write(<a class="code" href="tests_2src_2bisect_8cpp.html#a52b5d30a2d7b064678644a3bf49b7f6c">NumericT</a> value)</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  {</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <a class="code" href="namespaceviennacl_1_1backend.html#a06bdedb2bc72dc1922cada91e9bbbd61">viennacl::backend::memory_write</a>(mem_handle_, <span class="keyword">sizeof</span>(<a class="code" href="tests_2src_2bisect_8cpp.html#a52b5d30a2d7b064678644a3bf49b7f6c">NumericT</a>)*index_, <span class="keyword">sizeof</span>(<a class="code" href="tests_2src_2bisect_8cpp.html#a52b5d30a2d7b064678644a3bf49b7f6c">NumericT</a>), &value);</div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  }</div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span> </div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <a class="code" href="namespaceviennacl.html#a98a0afcc513111ffa0bd138f891930df">vcl_size_t</a> index_;</div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  <a class="code" href="classviennacl_1_1backend_1_1mem__handle.html">viennacl::backend::mem_handle</a> & mem_handle_;</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span> }; <span class="comment">//entry_proxy</span></div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span> </div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span> </div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span> </div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span> </div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span> </div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span> </div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span> </div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span> <span class="keyword">template</span><<span class="keyword">typename</span> NumericT></div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span> <span class="keyword">class </span>const_entry_proxy</div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span> {</div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  <span class="keyword">typedef</span> const_entry_proxy<NumericT> self_type;</div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span> <span class="keyword">public</span>:</div>
<div class="line"><a name="l00183"></a><span class="lineno"><a class="line" href="classviennacl_1_1const__entry__proxy.html#a8f916f229ef166b16006b514b13d1318"> 183</a></span>  <span class="keyword">typedef</span> <a class="code" href="classviennacl_1_1backend_1_1mem__handle.html">viennacl::backend::mem_handle</a> <a class="code" href="classviennacl_1_1const__entry__proxy.html#a8f916f229ef166b16006b514b13d1318">handle_type</a>;</div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span> </div>
<div class="line"><a name="l00190"></a><span class="lineno"><a class="line" href="classviennacl_1_1const__entry__proxy.html#a9906f1d945b78b11ab14feef6367d2c8"> 190</a></span>  <span class="keyword">explicit</span> <a class="code" href="classviennacl_1_1const__entry__proxy.html#a9906f1d945b78b11ab14feef6367d2c8">const_entry_proxy</a>(<a class="code" href="namespaceviennacl.html#a98a0afcc513111ffa0bd138f891930df">vcl_size_t</a> mem_offset,</div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  <a class="code" href="classviennacl_1_1backend_1_1mem__handle.html">handle_type</a> <span class="keyword">const</span> & mem_handle)</div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  : index_(mem_offset), mem_handle_(mem_handle) {}</div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span> </div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span> </div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  <span class="comment">//type conversion:</span></div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  <span class="comment">// allows to write something like:</span></div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  <span class="comment">// double test = vector(4);</span></div>
<div class="line"><a name="l00204"></a><span class="lineno"><a class="line" href="classviennacl_1_1const__entry__proxy.html#abc1b268a517bbb435434b9bf54f2313a"> 204</a></span> <span class="comment"></span> <span class="keyword">operator</span> <a class="code" href="tests_2src_2bisect_8cpp.html#a52b5d30a2d7b064678644a3bf49b7f6c">NumericT</a> ()<span class="keyword"> const</span></div>
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span> <span class="keyword"> </span>{</div>
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  <a class="code" href="tests_2src_2bisect_8cpp.html#a52b5d30a2d7b064678644a3bf49b7f6c">NumericT</a> temp = read();</div>
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  <span class="keywordflow">return</span> temp;</div>
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  }</div>
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span> </div>
<div class="line"><a name="l00212"></a><span class="lineno"><a class="line" href="classviennacl_1_1const__entry__proxy.html#ac364f96496deec7473be1126f12279fc"> 212</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classviennacl_1_1const__entry__proxy.html#ac364f96496deec7473be1126f12279fc">index</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> index_; }</div>
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span> </div>
<div class="line"><a name="l00216"></a><span class="lineno"><a class="line" href="classviennacl_1_1const__entry__proxy.html#afd3d3e90596401bb6cb6309cb6d46fb4"> 216</a></span>  <a class="code" href="classviennacl_1_1backend_1_1mem__handle.html">handle_type</a> <span class="keyword">const</span> & <a class="code" href="classviennacl_1_1const__entry__proxy.html#afd3d3e90596401bb6cb6309cb6d46fb4">handle</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mem_handle_; }</div>
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span> </div>
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span> <span class="keyword">private</span>:</div>
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  <a class="code" href="tests_2src_2bisect_8cpp.html#a52b5d30a2d7b064678644a3bf49b7f6c">NumericT</a> read()<span class="keyword"> const</span></div>
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span> <span class="keyword"> </span>{</div>
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  <a class="code" href="tests_2src_2bisect_8cpp.html#a52b5d30a2d7b064678644a3bf49b7f6c">NumericT</a> temp;</div>
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  <a class="code" href="namespaceviennacl_1_1backend.html#a62854cfd6f04404b274f8ede36f63e2d">viennacl::backend::memory_read</a>(mem_handle_, <span class="keyword">sizeof</span>(<a class="code" href="tests_2src_2bisect_8cpp.html#a52b5d30a2d7b064678644a3bf49b7f6c">NumericT</a>)*index_, <span class="keyword">sizeof</span>(<a class="code" href="tests_2src_2bisect_8cpp.html#a52b5d30a2d7b064678644a3bf49b7f6c">NumericT</a>), &temp);</div>
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  <span class="keywordflow">return</span> temp;</div>
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  }</div>
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span> </div>
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  <a class="code" href="namespaceviennacl.html#a98a0afcc513111ffa0bd138f891930df">vcl_size_t</a> index_;</div>
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  <a class="code" href="classviennacl_1_1backend_1_1mem__handle.html">viennacl::backend::mem_handle</a> <span class="keyword">const</span> & mem_handle_;</div>
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span> }; <span class="comment">//entry_proxy</span></div>
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span> </div>
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span> }</div>
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span> </div>
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span> <span class="preprocessor">#endif</span></div>
<div class="ttc" id="classviennacl_1_1const__entry__proxy_html_a9906f1d945b78b11ab14feef6367d2c8"><div class="ttname"><a href="classviennacl_1_1const__entry__proxy.html#a9906f1d945b78b11ab14feef6367d2c8">viennacl::const_entry_proxy::const_entry_proxy</a></div><div class="ttdeci">const_entry_proxy(vcl_size_t mem_offset, handle_type const &mem_handle)</div><div class="ttdoc">The constructor for the proxy class. Declared explicit to avoid any surprises created by the compiler...</div><div class="ttdef"><b>Definition:</b> <a href="entry__proxy_8hpp_source.html#l00190">entry_proxy.hpp:190</a></div></div>
<div class="ttc" id="namespaceviennacl_1_1backend_html_a06bdedb2bc72dc1922cada91e9bbbd61"><div class="ttname"><a href="namespaceviennacl_1_1backend.html#a06bdedb2bc72dc1922cada91e9bbbd61">viennacl::backend::memory_write</a></div><div class="ttdeci">void memory_write(mem_handle &dst_buffer, vcl_size_t dst_offset, vcl_size_t bytes_to_write, const void *ptr, bool async=false)</div><div class="ttdoc">Writes data from main RAM identified by 'ptr' to the buffer identified by 'dst_buffer'. </div><div class="ttdef"><b>Definition:</b> <a href="memory_8hpp_source.html#l00220">memory.hpp:220</a></div></div>
<div class="ttc" id="classviennacl_1_1scalar_html"><div class="ttname"><a href="classviennacl_1_1scalar.html">viennacl::scalar</a></div><div class="ttdoc">This class represents a single scalar value on the GPU and behaves mostly like a built-in scalar type...</div><div class="ttdef"><b>Definition:</b> <a href="forwards_8h_source.html#l00227">forwards.h:227</a></div></div>
<div class="ttc" id="classviennacl_1_1scalar_html_a9a62e56c8941de87f86b6b7ccd4987e3"><div class="ttname"><a href="classviennacl_1_1scalar.html#a9a62e56c8941de87f86b6b7ccd4987e3">viennacl::scalar::handle</a></div><div class="ttdeci">handle_type & handle()</div><div class="ttdoc">Returns the memory handle, non-const version. </div><div class="ttdef"><b>Definition:</b> <a href="scalar_8hpp_source.html#l00833">scalar.hpp:833</a></div></div>
<div class="ttc" id="forwards_8h_html"><div class="ttname"><a href="forwards_8h.html">forwards.h</a></div><div class="ttdoc">This file provides the forward declarations for the main types used within ViennaCL. </div></div>
<div class="ttc" id="namespaceviennacl_1_1backend_html_a62854cfd6f04404b274f8ede36f63e2d"><div class="ttname"><a href="namespaceviennacl_1_1backend.html#a62854cfd6f04404b274f8ede36f63e2d">viennacl::backend::memory_read</a></div><div class="ttdeci">void memory_read(mem_handle const &src_buffer, vcl_size_t src_offset, vcl_size_t bytes_to_read, void *ptr, bool async=false)</div><div class="ttdoc">Reads data from a buffer back to main RAM. </div><div class="ttdef"><b>Definition:</b> <a href="memory_8hpp_source.html#l00261">memory.hpp:261</a></div></div>
<div class="ttc" id="classviennacl_1_1entry__proxy_html_a9e5cbe868cfad0720aba407d149c75e1"><div class="ttname"><a href="classviennacl_1_1entry__proxy.html#a9e5cbe868cfad0720aba407d149c75e1">viennacl::entry_proxy::operator-=</a></div><div class="ttdeci">entry_proxy & operator-=(NumericT value)</div><div class="ttdoc">Inplace subtraction of a CPU floating point value. </div><div class="ttdef"><b>Definition:</b> <a href="entry__proxy_8hpp_source.html#l00069">entry_proxy.hpp:69</a></div></div>
<div class="ttc" id="classviennacl_1_1entry__proxy_html_a5aab26f84f0a0f33a16c801826e8b5aa"><div class="ttname"><a href="classviennacl_1_1entry__proxy.html#a5aab26f84f0a0f33a16c801826e8b5aa">viennacl::entry_proxy::handle_type</a></div><div class="ttdeci">viennacl::backend::mem_handle handle_type</div><div class="ttdef"><b>Definition:</b> <a href="entry__proxy_8hpp_source.html#l00044">entry_proxy.hpp:44</a></div></div>
<div class="ttc" id="classviennacl_1_1entry__proxy_html_ab12fabdb323eefb4892edde6f7b3bf16"><div class="ttname"><a href="classviennacl_1_1entry__proxy.html#ab12fabdb323eefb4892edde6f7b3bf16">viennacl::entry_proxy::operator/=</a></div><div class="ttdeci">entry_proxy & operator/=(NumericT value)</div><div class="ttdoc">Inplace division by a CPU floating point value. </div><div class="ttdef"><b>Definition:</b> <a href="entry__proxy_8hpp_source.html#l00089">entry_proxy.hpp:89</a></div></div>
<div class="ttc" id="tests_2src_2bisect_8cpp_html_a52b5d30a2d7b064678644a3bf49b7f6c"><div class="ttname"><a href="tests_2src_2bisect_8cpp.html#a52b5d30a2d7b064678644a3bf49b7f6c">NumericT</a></div><div class="ttdeci">float NumericT</div><div class="ttdef"><b>Definition:</b> <a href="tests_2src_2bisect_8cpp_source.html#l00040">bisect.cpp:40</a></div></div>
<div class="ttc" id="classviennacl_1_1entry__proxy_html_a20d1e6598ba396eca5441e81866692bb"><div class="ttname"><a href="classviennacl_1_1entry__proxy.html#a20d1e6598ba396eca5441e81866692bb">viennacl::entry_proxy::operator+=</a></div><div class="ttdeci">entry_proxy & operator+=(NumericT value)</div><div class="ttdoc">Inplace addition of a CPU floating point value. </div><div class="ttdef"><b>Definition:</b> <a href="entry__proxy_8hpp_source.html#l00059">entry_proxy.hpp:59</a></div></div>
<div class="ttc" id="classviennacl_1_1entry__proxy_html_a4433439fd4233b8bc585d8d8f2cc7619"><div class="ttname"><a href="classviennacl_1_1entry__proxy.html#a4433439fd4233b8bc585d8d8f2cc7619">viennacl::entry_proxy::index</a></div><div class="ttdeci">vcl_size_t index() const </div><div class="ttdoc">Returns the index of the represented element. </div><div class="ttdef"><b>Definition:</b> <a href="entry__proxy_8hpp_source.html#l00138">entry_proxy.hpp:138</a></div></div>
<div class="ttc" id="classviennacl_1_1entry__proxy_html_ae0c4cf27e795235d75556894e677e0af"><div class="ttname"><a href="classviennacl_1_1entry__proxy.html#ae0c4cf27e795235d75556894e677e0af">viennacl::entry_proxy::operator=</a></div><div class="ttdeci">entry_proxy & operator=(entry_proxy const &other)</div><div class="ttdoc">Assignment of another GPU value. </div><div class="ttdef"><b>Definition:</b> <a href="entry__proxy_8hpp_source.html#l00115">entry_proxy.hpp:115</a></div></div>
<div class="ttc" id="classviennacl_1_1entry__proxy_html_aeb73ef2abb2e995991e5ee4d10dfb099"><div class="ttname"><a href="classviennacl_1_1entry__proxy.html#aeb73ef2abb2e995991e5ee4d10dfb099">viennacl::entry_proxy::operator=</a></div><div class="ttdeci">entry_proxy & operator=(NumericT value)</div><div class="ttdoc">Assignment of a CPU floating point value. </div><div class="ttdef"><b>Definition:</b> <a href="entry__proxy_8hpp_source.html#l00099">entry_proxy.hpp:99</a></div></div>
<div class="ttc" id="classviennacl_1_1entry__proxy_html_adc3fc7c7cb5e7602eedd2d3b4ce35e1c"><div class="ttname"><a href="classviennacl_1_1entry__proxy.html#adc3fc7c7cb5e7602eedd2d3b4ce35e1c">viennacl::entry_proxy::operator*=</a></div><div class="ttdeci">entry_proxy & operator*=(NumericT value)</div><div class="ttdoc">Inplace multiplication with a CPU floating point value. </div><div class="ttdef"><b>Definition:</b> <a href="entry__proxy_8hpp_source.html#l00079">entry_proxy.hpp:79</a></div></div>
<div class="ttc" id="namespaceviennacl_html_a98a0afcc513111ffa0bd138f891930df"><div class="ttname"><a href="namespaceviennacl.html#a98a0afcc513111ffa0bd138f891930df">viennacl::vcl_size_t</a></div><div class="ttdeci">std::size_t vcl_size_t</div><div class="ttdef"><b>Definition:</b> <a href="forwards_8h_source.html#l00075">forwards.h:75</a></div></div>
<div class="ttc" id="classviennacl_1_1entry__proxy_html_a42a889aa89772a30c2d58d5588a3ac04"><div class="ttname"><a href="classviennacl_1_1entry__proxy.html#a42a889aa89772a30c2d58d5588a3ac04">viennacl::entry_proxy::entry_proxy</a></div><div class="ttdeci">entry_proxy(vcl_size_t mem_offset, handle_type &mem_handle)</div><div class="ttdoc">The constructor for the proxy class. Declared explicit to avoid any surprises created by the compiler...</div><div class="ttdef"><b>Definition:</b> <a href="entry__proxy_8hpp_source.html#l00051">entry_proxy.hpp:51</a></div></div>
<div class="ttc" id="classviennacl_1_1entry__proxy_html_acf681a2389ab0b31b5f660205f39ab77"><div class="ttname"><a href="classviennacl_1_1entry__proxy.html#acf681a2389ab0b31b5f660205f39ab77">viennacl::entry_proxy::handle</a></div><div class="ttdeci">handle_type const & handle() const </div><div class="ttdoc">Returns the memory viennacl::ocl::handle. </div><div class="ttdef"><b>Definition:</b> <a href="entry__proxy_8hpp_source.html#l00142">entry_proxy.hpp:142</a></div></div>
<div class="ttc" id="namespaceviennacl_1_1backend_html_a39a91fd7aa68ebf64bd7bfa409732ec0"><div class="ttname"><a href="namespaceviennacl_1_1backend.html#a39a91fd7aa68ebf64bd7bfa409732ec0">viennacl::backend::memory_copy</a></div><div class="ttdeci">void memory_copy(mem_handle const &src_buffer, mem_handle &dst_buffer, vcl_size_t src_offset, vcl_size_t dst_offset, vcl_size_t bytes_to_copy)</div><div class="ttdoc">Copies 'bytes_to_copy' bytes from address 'src_buffer + src_offset' to memory starting at address 'ds...</div><div class="ttdef"><b>Definition:</b> <a href="memory_8hpp_source.html#l00140">memory.hpp:140</a></div></div>
<div class="ttc" id="classviennacl_1_1backend_1_1mem__handle_html"><div class="ttname"><a href="classviennacl_1_1backend_1_1mem__handle.html">viennacl::backend::mem_handle</a></div><div class="ttdoc">Main abstraction class for multiple memory domains. Represents a buffer in either main RAM...</div><div class="ttdef"><b>Definition:</b> <a href="mem__handle_8hpp_source.html#l00089">mem_handle.hpp:89</a></div></div>
<div class="ttc" id="classviennacl_1_1const__entry__proxy_html_a8f916f229ef166b16006b514b13d1318"><div class="ttname"><a href="classviennacl_1_1const__entry__proxy.html#a8f916f229ef166b16006b514b13d1318">viennacl::const_entry_proxy::handle_type</a></div><div class="ttdeci">viennacl::backend::mem_handle handle_type</div><div class="ttdef"><b>Definition:</b> <a href="entry__proxy_8hpp_source.html#l00183">entry_proxy.hpp:183</a></div></div>
<div class="ttc" id="classviennacl_1_1const__entry__proxy_html_ac364f96496deec7473be1126f12279fc"><div class="ttname"><a href="classviennacl_1_1const__entry__proxy.html#ac364f96496deec7473be1126f12279fc">viennacl::const_entry_proxy::index</a></div><div class="ttdeci">unsigned int index() const </div><div class="ttdoc">Returns the index of the represented element. </div><div class="ttdef"><b>Definition:</b> <a href="entry__proxy_8hpp_source.html#l00212">entry_proxy.hpp:212</a></div></div>
<div class="ttc" id="classviennacl_1_1entry__proxy_html"><div class="ttname"><a href="classviennacl_1_1entry__proxy.html">viennacl::entry_proxy</a></div><div class="ttdoc">A proxy class for a single element of a vector or matrix. This proxy should not be noticed by end-use...</div><div class="ttdef"><b>Definition:</b> <a href="forwards_8h_source.html#l00233">forwards.h:233</a></div></div>
<div class="ttc" id="scalar_8hpp_html"><div class="ttname"><a href="scalar_8hpp.html">scalar.hpp</a></div><div class="ttdoc">Implementation of the ViennaCL scalar class. </div></div>
<div class="ttc" id="classviennacl_1_1const__entry__proxy_html_afd3d3e90596401bb6cb6309cb6d46fb4"><div class="ttname"><a href="classviennacl_1_1const__entry__proxy.html#afd3d3e90596401bb6cb6309cb6d46fb4">viennacl::const_entry_proxy::handle</a></div><div class="ttdeci">handle_type const & handle() const </div><div class="ttdoc">Returns the memory handle. </div><div class="ttdef"><b>Definition:</b> <a href="entry__proxy_8hpp_source.html#l00216">entry_proxy.hpp:216</a></div></div>
<div class="ttc" id="classviennacl_1_1entry__proxy_html_a7219f5d36ca71d3bab8987747cb77d1c"><div class="ttname"><a href="classviennacl_1_1entry__proxy.html#a7219f5d36ca71d3bab8987747cb77d1c">viennacl::entry_proxy::operator=</a></div><div class="ttdeci">entry_proxy & operator=(scalar< NumericT > const &value)</div><div class="ttdoc">Assignment of a GPU floating point value. Avoids unnecessary GPU->CPU->GPU transfers. </div><div class="ttdef"><b>Definition:</b> <a href="entry__proxy_8hpp_source.html#l00107">entry_proxy.hpp:107</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_c82e3d11dd171600f4a6e0cab1ec1e0d.html">viennacl</a></li><li class="navelem"><a class="el" href="dir_54216ae2e4dd664125f44b7fd28e4307.html">tools</a></li><li class="navelem"><a class="el" href="entry__proxy_8hpp.html">entry_proxy.hpp</a></li>
<li class="footer">Generated on Wed Jan 20 2016 22:32:43 for ViennaCL - The Vienna Computing Library by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
</ul>
</div>
</body>
</html>
|