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
|
<!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/linalg/opencl/common.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('linalg_2opencl_2common_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">common.hpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="linalg_2opencl_2common_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_LINALG_OPENCL_COMMON_HPP_</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#define VIENNACL_LINALG_OPENCL_COMMON_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="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <cmath></span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> </div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include "<a class="code" href="forwards_8h.html">viennacl/forwards.h</a>"</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include "<a class="code" href="platform_8hpp.html">viennacl/ocl/platform.hpp</a>"</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include "<a class="code" href="traits_2handle_8hpp.html">viennacl/traits/handle.hpp</a>"</span></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> <span class="keyword">namespace </span>viennacl</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> {</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="keyword">namespace </span>linalg</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> {</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="keyword">namespace </span>opencl</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> {</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="keyword">namespace </span>detail</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> {</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> </div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#a685282399bcfb05ee912c02fed7f922f"> 42</a></span> <span class="keyword">inline</span> cl_uint <a class="code" href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#a685282399bcfb05ee912c02fed7f922f">make_options</a>(<a class="code" href="namespaceviennacl.html#a98a0afcc513111ffa0bd138f891930df">vcl_size_t</a> length, <span class="keywordtype">bool</span> reciprocal, <span class="keywordtype">bool</span> <a class="code" href="namespaceviennacl_1_1linalg_1_1host__based_1_1detail.html#abd382e4bde97fb842b7b52b2b4d36379">flip_sign</a>)</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> {</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keywordflow">return</span> <span class="keyword">static_cast<</span>cl_uint<span class="keyword">></span>( ((length > 1) ? (cl_uint(length) << 2) : 0) + (reciprocal ? 2 : 0) + (flip_sign ? 1 : 0) );</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> }</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> </div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> </div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#a7acbdad2a5672bc7129b8a7662a282bb"> 49</a></span> <span class="keyword">inline</span> std::string <a class="code" href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#a7acbdad2a5672bc7129b8a7662a282bb">sparse_dense_matmult_kernel_name</a>(<span class="keywordtype">bool</span> B_transposed, <span class="keywordtype">bool</span> B_row_major, <span class="keywordtype">bool</span> C_row_major)</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> {</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keywordflow">if</span> (B_transposed)</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  {</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keywordflow">if</span> (B_row_major && C_row_major)</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="keywordflow">return</span> <span class="stringliteral">"trans_mat_mult_row_row"</span>;</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="keywordflow">if</span> (B_row_major && !C_row_major)</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keywordflow">return</span> <span class="stringliteral">"trans_mat_mult_row_col"</span>;</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keywordflow">if</span> (!B_row_major && C_row_major)</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="keywordflow">return</span> <span class="stringliteral">"trans_mat_mult_col_row"</span>;</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> </div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keywordflow">return</span> <span class="stringliteral">"trans_mat_mult_col_col"</span>;</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  }</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> </div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keywordflow">if</span> (B_row_major && C_row_major)</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keywordflow">return</span> <span class="stringliteral">"mat_mult_row_row"</span>;</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keywordflow">if</span> (B_row_major && !C_row_major)</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keywordflow">return</span> <span class="stringliteral">"mat_mult_row_col"</span>;</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="keywordflow">if</span> (!B_row_major && C_row_major)</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keywordflow">return</span> <span class="stringliteral">"mat_mult_col_row"</span>;</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span> </div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="keywordflow">return</span> <span class="stringliteral">"mat_mult_col_col"</span>;</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span> }</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span> </div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span> </div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span> </div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> <span class="keyword">template</span><<span class="keyword">typename</span> SomeT></div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#a1ed4b5fefdb8188be7ba2909a66bc653"> 76</a></span> <a class="code" href="classviennacl_1_1ocl_1_1device.html">ocl::device</a> <span class="keyword">const</span> & <a class="code" href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#a1ed4b5fefdb8188be7ba2909a66bc653">current_device</a>(SomeT <span class="keyword">const</span> & obj) { <span class="keywordflow">return</span> traits::opencl_handle(obj).context().current_device(); }</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span> </div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#aaeb876e922457f997cd0e7f2a51c4e1d"> 78</a></span> <span class="keyword">inline</span> std::string <a class="code" href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#aaeb876e922457f997cd0e7f2a51c4e1d">op_to_string</a>(<a class="code" href="structviennacl_1_1op__abs.html">op_abs</a>) { <span class="keywordflow">return</span> <span class="stringliteral">"abs"</span>; }</div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#a2bd490c2d7b21ec32230923b7c81bd0d"> 79</a></span> <span class="keyword">inline</span> std::string <a class="code" href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#aaeb876e922457f997cd0e7f2a51c4e1d">op_to_string</a>(<a class="code" href="structviennacl_1_1op__acos.html">op_acos</a>) { <span class="keywordflow">return</span> <span class="stringliteral">"acos"</span>; }</div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#a0264ec51ee18d98373ee4d8efd3976b4"> 80</a></span> <span class="keyword">inline</span> std::string <a class="code" href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#aaeb876e922457f997cd0e7f2a51c4e1d">op_to_string</a>(<a class="code" href="structviennacl_1_1op__asin.html">op_asin</a>) { <span class="keywordflow">return</span> <span class="stringliteral">"asin"</span>; }</div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#ae201d64c8b784292b2d9ebce683c408f"> 81</a></span> <span class="keyword">inline</span> std::string <a class="code" href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#aaeb876e922457f997cd0e7f2a51c4e1d">op_to_string</a>(<a class="code" href="structviennacl_1_1op__atan.html">op_atan</a>) { <span class="keywordflow">return</span> <span class="stringliteral">"atan"</span>; }</div>
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#af5d430b3c73ae4f648448e70e407d805"> 82</a></span> <span class="keyword">inline</span> std::string <a class="code" href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#aaeb876e922457f997cd0e7f2a51c4e1d">op_to_string</a>(<a class="code" href="structviennacl_1_1op__ceil.html">op_ceil</a>) { <span class="keywordflow">return</span> <span class="stringliteral">"ceil"</span>; }</div>
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#a706ada240e749a7fce2b59d8b0c307bc"> 83</a></span> <span class="keyword">inline</span> std::string <a class="code" href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#aaeb876e922457f997cd0e7f2a51c4e1d">op_to_string</a>(<a class="code" href="structviennacl_1_1op__cos.html">op_cos</a>) { <span class="keywordflow">return</span> <span class="stringliteral">"cos"</span>; }</div>
<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#a3747235a0998169ffadee525577d930e"> 84</a></span> <span class="keyword">inline</span> std::string <a class="code" href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#aaeb876e922457f997cd0e7f2a51c4e1d">op_to_string</a>(<a class="code" href="structviennacl_1_1op__cosh.html">op_cosh</a>) { <span class="keywordflow">return</span> <span class="stringliteral">"cosh"</span>; }</div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#a463f2f570185fea98e0a1182b81f3ed2"> 85</a></span> <span class="keyword">inline</span> std::string <a class="code" href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#aaeb876e922457f997cd0e7f2a51c4e1d">op_to_string</a>(<a class="code" href="structviennacl_1_1op__exp.html">op_exp</a>) { <span class="keywordflow">return</span> <span class="stringliteral">"exp"</span>; }</div>
<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#a259dfb67a35ecf1c7309ed8d758fc1b2"> 86</a></span> <span class="keyword">inline</span> std::string <a class="code" href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#aaeb876e922457f997cd0e7f2a51c4e1d">op_to_string</a>(<a class="code" href="structviennacl_1_1op__fabs.html">op_fabs</a>) { <span class="keywordflow">return</span> <span class="stringliteral">"fabs"</span>; }</div>
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#a3bbbf414930d196b64d32eed990ed41b"> 87</a></span> <span class="keyword">inline</span> std::string <a class="code" href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#aaeb876e922457f997cd0e7f2a51c4e1d">op_to_string</a>(<a class="code" href="structviennacl_1_1op__floor.html">op_floor</a>) { <span class="keywordflow">return</span> <span class="stringliteral">"floor"</span>; }</div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#a783260fb41b8a52a796fa781db119fb1"> 88</a></span> <span class="keyword">inline</span> std::string <a class="code" href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#aaeb876e922457f997cd0e7f2a51c4e1d">op_to_string</a>(<a class="code" href="structviennacl_1_1op__log.html">op_log</a>) { <span class="keywordflow">return</span> <span class="stringliteral">"log"</span>; }</div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#ab631c1d3f69abf29c6fbdc692372d208"> 89</a></span> <span class="keyword">inline</span> std::string <a class="code" href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#aaeb876e922457f997cd0e7f2a51c4e1d">op_to_string</a>(<a class="code" href="structviennacl_1_1op__log10.html">op_log10</a>) { <span class="keywordflow">return</span> <span class="stringliteral">"log10"</span>; }</div>
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#a3a8f0ed5e591a8db7b6f58d6dcb0d876"> 90</a></span> <span class="keyword">inline</span> std::string <a class="code" href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#aaeb876e922457f997cd0e7f2a51c4e1d">op_to_string</a>(<a class="code" href="structviennacl_1_1op__sin.html">op_sin</a>) { <span class="keywordflow">return</span> <span class="stringliteral">"sin"</span>; }</div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#a886e3de6509c88a2afb0de8867eaf931"> 91</a></span> <span class="keyword">inline</span> std::string <a class="code" href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#aaeb876e922457f997cd0e7f2a51c4e1d">op_to_string</a>(<a class="code" href="structviennacl_1_1op__sinh.html">op_sinh</a>) { <span class="keywordflow">return</span> <span class="stringliteral">"sinh"</span>; }</div>
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#a1096d35aebcbc5f8bda827682385ad0c"> 92</a></span> <span class="keyword">inline</span> std::string <a class="code" href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#aaeb876e922457f997cd0e7f2a51c4e1d">op_to_string</a>(<a class="code" href="structviennacl_1_1op__sqrt.html">op_sqrt</a>) { <span class="keywordflow">return</span> <span class="stringliteral">"sqrt"</span>; }</div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#a887095b7f33bd650dafbe5c3a439bbae"> 93</a></span> <span class="keyword">inline</span> std::string <a class="code" href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#aaeb876e922457f997cd0e7f2a51c4e1d">op_to_string</a>(<a class="code" href="structviennacl_1_1op__tan.html">op_tan</a>) { <span class="keywordflow">return</span> <span class="stringliteral">"tan"</span>; }</div>
<div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#a492429cdf1788cb5b2da254f8975e045"> 94</a></span> <span class="keyword">inline</span> std::string <a class="code" href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#aaeb876e922457f997cd0e7f2a51c4e1d">op_to_string</a>(<a class="code" href="structviennacl_1_1op__tanh.html">op_tanh</a>) { <span class="keywordflow">return</span> <span class="stringliteral">"tanh"</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> } <span class="comment">//namespace detail</span></div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span> } <span class="comment">//namespace opencl</span></div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> } <span class="comment">//namespace linalg</span></div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span> } <span class="comment">//namespace viennacl</span></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> </div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span> <span class="preprocessor">#endif</span></div>
<div class="ttc" id="structviennacl_1_1op__cosh_html"><div class="ttname"><a href="structviennacl_1_1op__cosh.html">viennacl::op_cosh</a></div><div class="ttdoc">A tag class representing the cosh() function. </div><div class="ttdef"><b>Definition:</b> <a href="forwards_8h_source.html#l00155">forwards.h:155</a></div></div>
<div class="ttc" id="structviennacl_1_1op__tan_html"><div class="ttname"><a href="structviennacl_1_1op__tan.html">viennacl::op_tan</a></div><div class="ttdoc">A tag class representing the tan() function. </div><div class="ttdef"><b>Definition:</b> <a href="forwards_8h_source.html#l00181">forwards.h:181</a></div></div>
<div class="ttc" id="platform_8hpp_html"><div class="ttname"><a href="platform_8hpp.html">platform.hpp</a></div><div class="ttdoc">Implements a OpenCL platform within ViennaCL. </div></div>
<div class="ttc" id="namespaceviennacl_1_1linalg_1_1opencl_1_1detail_html_a7acbdad2a5672bc7129b8a7662a282bb"><div class="ttname"><a href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#a7acbdad2a5672bc7129b8a7662a282bb">viennacl::linalg::opencl::detail::sparse_dense_matmult_kernel_name</a></div><div class="ttdeci">std::string sparse_dense_matmult_kernel_name(bool B_transposed, bool B_row_major, bool C_row_major)</div><div class="ttdoc">Returns the OpenCL kernel string for the operation C = A * B with A sparse, B, C dense matrices...</div><div class="ttdef"><b>Definition:</b> <a href="linalg_2opencl_2common_8hpp_source.html#l00049">common.hpp:49</a></div></div>
<div class="ttc" id="structviennacl_1_1op__abs_html"><div class="ttname"><a href="structviennacl_1_1op__abs.html">viennacl::op_abs</a></div><div class="ttdoc">A tag class representing the modulus function for integers. </div><div class="ttdef"><b>Definition:</b> <a href="forwards_8h_source.html#l00137">forwards.h:137</a></div></div>
<div class="ttc" id="structviennacl_1_1op__ceil_html"><div class="ttname"><a href="structviennacl_1_1op__ceil.html">viennacl::op_ceil</a></div><div class="ttdoc">A tag class representing the ceil() function. </div><div class="ttdef"><b>Definition:</b> <a href="forwards_8h_source.html#l00151">forwards.h:151</a></div></div>
<div class="ttc" id="classviennacl_1_1ocl_1_1device_html"><div class="ttname"><a href="classviennacl_1_1ocl_1_1device.html">viennacl::ocl::device</a></div><div class="ttdoc">A class representing a compute device (e.g. a GPU) </div><div class="ttdef"><b>Definition:</b> <a href="device_8hpp_source.html#l00049">device.hpp:49</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="structviennacl_1_1op__log_html"><div class="ttname"><a href="structviennacl_1_1op__log.html">viennacl::op_log</a></div><div class="ttdoc">A tag class representing the log() function. </div><div class="ttdef"><b>Definition:</b> <a href="forwards_8h_source.html#l00171">forwards.h:171</a></div></div>
<div class="ttc" id="structviennacl_1_1op__tanh_html"><div class="ttname"><a href="structviennacl_1_1op__tanh.html">viennacl::op_tanh</a></div><div class="ttdoc">A tag class representing the tanh() function. </div><div class="ttdef"><b>Definition:</b> <a href="forwards_8h_source.html#l00183">forwards.h:183</a></div></div>
<div class="ttc" id="structviennacl_1_1op__fabs_html"><div class="ttname"><a href="structviennacl_1_1op__fabs.html">viennacl::op_fabs</a></div><div class="ttdoc">A tag class representing the fabs() function. </div><div class="ttdef"><b>Definition:</b> <a href="forwards_8h_source.html#l00159">forwards.h:159</a></div></div>
<div class="ttc" id="structviennacl_1_1op__atan_html"><div class="ttname"><a href="structviennacl_1_1op__atan.html">viennacl::op_atan</a></div><div class="ttdoc">A tag class representing the atan() function. </div><div class="ttdef"><b>Definition:</b> <a href="forwards_8h_source.html#l00147">forwards.h:147</a></div></div>
<div class="ttc" id="structviennacl_1_1op__sinh_html"><div class="ttname"><a href="structviennacl_1_1op__sinh.html">viennacl::op_sinh</a></div><div class="ttdoc">A tag class representing the sinh() function. </div><div class="ttdef"><b>Definition:</b> <a href="forwards_8h_source.html#l00177">forwards.h:177</a></div></div>
<div class="ttc" id="structviennacl_1_1op__exp_html"><div class="ttname"><a href="structviennacl_1_1op__exp.html">viennacl::op_exp</a></div><div class="ttdoc">A tag class representing the exp() function. </div><div class="ttdef"><b>Definition:</b> <a href="forwards_8h_source.html#l00157">forwards.h:157</a></div></div>
<div class="ttc" id="namespaceviennacl_1_1linalg_1_1host__based_1_1detail_html_abd382e4bde97fb842b7b52b2b4d36379"><div class="ttname"><a href="namespaceviennacl_1_1linalg_1_1host__based_1_1detail.html#abd382e4bde97fb842b7b52b2b4d36379">viennacl::linalg::host_based::detail::flip_sign</a></div><div class="ttdeci">NumericT flip_sign(NumericT val)</div><div class="ttdef"><b>Definition:</b> <a href="host__based_2vector__operations_8hpp_source.html#l00057">vector_operations.hpp:57</a></div></div>
<div class="ttc" id="namespaceviennacl_1_1linalg_1_1opencl_1_1detail_html_a685282399bcfb05ee912c02fed7f922f"><div class="ttname"><a href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#a685282399bcfb05ee912c02fed7f922f">viennacl::linalg::opencl::detail::make_options</a></div><div class="ttdeci">cl_uint make_options(vcl_size_t length, bool reciprocal, bool flip_sign)</div><div class="ttdef"><b>Definition:</b> <a href="linalg_2opencl_2common_8hpp_source.html#l00042">common.hpp:42</a></div></div>
<div class="ttc" id="namespaceviennacl_1_1linalg_1_1opencl_1_1detail_html_a1ed4b5fefdb8188be7ba2909a66bc653"><div class="ttname"><a href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#a1ed4b5fefdb8188be7ba2909a66bc653">viennacl::linalg::opencl::detail::current_device</a></div><div class="ttdeci">ocl::device const & current_device(SomeT const &obj)</div><div class="ttdef"><b>Definition:</b> <a href="linalg_2opencl_2common_8hpp_source.html#l00076">common.hpp:76</a></div></div>
<div class="ttc" id="structviennacl_1_1op__sqrt_html"><div class="ttname"><a href="structviennacl_1_1op__sqrt.html">viennacl::op_sqrt</a></div><div class="ttdoc">A tag class representing the sqrt() function. </div><div class="ttdef"><b>Definition:</b> <a href="forwards_8h_source.html#l00179">forwards.h:179</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="structviennacl_1_1op__sin_html"><div class="ttname"><a href="structviennacl_1_1op__sin.html">viennacl::op_sin</a></div><div class="ttdoc">A tag class representing the sin() function. </div><div class="ttdef"><b>Definition:</b> <a href="forwards_8h_source.html#l00175">forwards.h:175</a></div></div>
<div class="ttc" id="structviennacl_1_1op__floor_html"><div class="ttname"><a href="structviennacl_1_1op__floor.html">viennacl::op_floor</a></div><div class="ttdoc">A tag class representing the floor() function. </div><div class="ttdef"><b>Definition:</b> <a href="forwards_8h_source.html#l00163">forwards.h:163</a></div></div>
<div class="ttc" id="structviennacl_1_1op__asin_html"><div class="ttname"><a href="structviennacl_1_1op__asin.html">viennacl::op_asin</a></div><div class="ttdoc">A tag class representing the asin() function. </div><div class="ttdef"><b>Definition:</b> <a href="forwards_8h_source.html#l00141">forwards.h:141</a></div></div>
<div class="ttc" id="traits_2handle_8hpp_html"><div class="ttname"><a href="traits_2handle_8hpp.html">handle.hpp</a></div><div class="ttdoc">Extracts the underlying OpenCL handle from a vector, a matrix, an expression etc. ...</div></div>
<div class="ttc" id="structviennacl_1_1op__acos_html"><div class="ttname"><a href="structviennacl_1_1op__acos.html">viennacl::op_acos</a></div><div class="ttdoc">A tag class representing the acos() function. </div><div class="ttdef"><b>Definition:</b> <a href="forwards_8h_source.html#l00139">forwards.h:139</a></div></div>
<div class="ttc" id="namespaceviennacl_1_1linalg_1_1opencl_1_1detail_html_aaeb876e922457f997cd0e7f2a51c4e1d"><div class="ttname"><a href="namespaceviennacl_1_1linalg_1_1opencl_1_1detail.html#aaeb876e922457f997cd0e7f2a51c4e1d">viennacl::linalg::opencl::detail::op_to_string</a></div><div class="ttdeci">std::string op_to_string(op_abs)</div><div class="ttdef"><b>Definition:</b> <a href="linalg_2opencl_2common_8hpp_source.html#l00078">common.hpp:78</a></div></div>
<div class="ttc" id="structviennacl_1_1op__log10_html"><div class="ttname"><a href="structviennacl_1_1op__log10.html">viennacl::op_log10</a></div><div class="ttdoc">A tag class representing the log10() function. </div><div class="ttdef"><b>Definition:</b> <a href="forwards_8h_source.html#l00173">forwards.h:173</a></div></div>
<div class="ttc" id="structviennacl_1_1op__cos_html"><div class="ttname"><a href="structviennacl_1_1op__cos.html">viennacl::op_cos</a></div><div class="ttdoc">A tag class representing the cos() function. </div><div class="ttdef"><b>Definition:</b> <a href="forwards_8h_source.html#l00153">forwards.h:153</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_63cde087767c4ed65c7901ffc6e293fe.html">linalg</a></li><li class="navelem"><a class="el" href="dir_9df590563da805a074404567c6e27abf.html">opencl</a></li><li class="navelem"><a class="el" href="linalg_2opencl_2common_8hpp.html">common.hpp</a></li>
<li class="footer">Generated on Wed Jan 20 2016 22:32:39 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>
|