arm_compute v18.03
[platform/upstream/armcl.git] / documentation / classarm__compute_1_1_g_c_arithmetic_addition.xhtml
1 <!-- HTML header for doxygen 1.8.9.1-->
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
6 <meta http-equiv="X-UA-Compatible" content="IE=9"/>
7 <meta name="generator" content="Doxygen 1.8.11"/>
8 <meta name="robots" content="NOINDEX, NOFOLLOW" /> <!-- Prevent indexing by search engines -->
9 <title>Compute Library: GCArithmeticAddition Class Reference</title>
10 <link href="tabs.css" rel="stylesheet" type="text/css"/>
11 <script type="text/javascript" src="jquery.js"></script>
12 <script type="text/javascript" src="dynsections.js"></script>
13 <link href="navtree.css" rel="stylesheet" type="text/css"/>
14 <script type="text/javascript" src="resize.js"></script>
15 <script type="text/javascript" src="navtreedata.js"></script>
16 <script type="text/javascript" src="navtree.js"></script>
17 <script type="text/javascript">
18   $(document).ready(initResizable);
19   $(window).load(resizeHeight);
20 </script>
21 <link href="search/search.css" rel="stylesheet" type="text/css"/>
22 <script type="text/javascript" src="search/searchdata.js"></script>
23 <script type="text/javascript" src="search/search.js"></script>
24 <script type="text/javascript">
25   $(document).ready(function() { init_search(); });
26 </script>
27 <script type="text/x-mathjax-config">
28   MathJax.Hub.Config({
29     extensions: ["tex2jax.js"],
30     jax: ["input/TeX","output/HTML-CSS"],
31 });
32 </script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
33 <link href="doxygen.css" rel="stylesheet" type="text/css" />
34 </head>
35 <body>
36 <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
37 <div id="titlearea">
38 <table cellspacing="0" cellpadding="0">
39  <tbody>
40  <tr style="height: 56px;">
41   <td style="padding-left: 0.5em;">
42    <div id="projectname">Compute Library
43    &#160;<span id="projectnumber">18.03</span>
44    </div>
45   </td>
46  </tr>
47  </tbody>
48 </table>
49 </div>
50 <!-- end header part -->
51 <!-- Generated by Doxygen 1.8.11 -->
52 <script type="text/javascript">
53 var searchBox = new SearchBox("searchBox", "search",false,'Search');
54 </script>
55   <div id="navrow1" class="tabs">
56     <ul class="tablist">
57       <li><a href="index.xhtml"><span>Main&#160;Page</span></a></li>
58       <li><a href="pages.xhtml"><span>Related&#160;Pages</span></a></li>
59       <li><a href="namespaces.xhtml"><span>Namespaces</span></a></li>
60       <li class="current"><a href="annotated.xhtml"><span>Data&#160;Structures</span></a></li>
61       <li><a href="files.xhtml"><span>Files</span></a></li>
62       <li>
63         <div id="MSearchBox" class="MSearchBoxInactive">
64         <span class="left">
65           <img id="MSearchSelect" src="search/mag_sel.png"
66                onmouseover="return searchBox.OnSearchSelectShow()"
67                onmouseout="return searchBox.OnSearchSelectHide()"
68                alt=""/>
69           <input type="text" id="MSearchField" value="Search" accesskey="S"
70                onfocus="searchBox.OnSearchFieldFocus(true)" 
71                onblur="searchBox.OnSearchFieldFocus(false)" 
72                onkeyup="searchBox.OnSearchFieldChange(event)"/>
73           </span><span class="right">
74             <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
75           </span>
76         </div>
77       </li>
78     </ul>
79   </div>
80   <div id="navrow2" class="tabs2">
81     <ul class="tablist">
82       <li><a href="annotated.xhtml"><span>Data&#160;Structures</span></a></li>
83       <li><a href="classes.xhtml"><span>Data&#160;Structure&#160;Index</span></a></li>
84       <li><a href="inherits.xhtml"><span>Class&#160;Hierarchy</span></a></li>
85       <li><a href="functions.xhtml"><span>Data&#160;Fields</span></a></li>
86     </ul>
87   </div>
88 </div><!-- top -->
89 <div id="side-nav" class="ui-resizable side-nav-resizable">
90   <div id="nav-tree">
91     <div id="nav-tree-contents">
92       <div id="nav-sync" class="sync"></div>
93     </div>
94   </div>
95   <div id="splitbar" style="-moz-user-select:none;" 
96        class="ui-resizable-handle">
97   </div>
98 </div>
99 <script type="text/javascript">
100 $(document).ready(function(){initNavTree('classarm__compute_1_1_g_c_arithmetic_addition.xhtml','');});
101 </script>
102 <div id="doc-content">
103 <!-- window showing the filter options -->
104 <div id="MSearchSelectWindow"
105      onmouseover="return searchBox.OnSearchSelectShow()"
106      onmouseout="return searchBox.OnSearchSelectHide()"
107      onkeydown="return searchBox.OnSearchSelectKey(event)">
108 </div>
109
110 <!-- iframe showing the search results (closed by default) -->
111 <div id="MSearchResultsWindow">
112 <iframe src="javascript:void(0)" frameborder="0" 
113         name="MSearchResults" id="MSearchResults">
114 </iframe>
115 </div>
116
117 <div class="header">
118   <div class="summary">
119 <a href="#pub-methods">Public Member Functions</a> &#124;
120 <a href="#pub-static-methods">Static Public Member Functions</a>  </div>
121   <div class="headertitle">
122 <div class="title">GCArithmeticAddition Class Reference</div>  </div>
123 </div><!--header-->
124 <div class="contents">
125
126 <p>Basic function to run <a class="el" href="classarm__compute_1_1_g_c_arithmetic_addition_kernel.xhtml">GCArithmeticAdditionKernel</a>.  
127  <a href="classarm__compute_1_1_g_c_arithmetic_addition.xhtml#details">More...</a></p>
128
129 <p><code>#include &lt;<a class="el" href="_g_c_arithmetic_addition_8h_source.xhtml">GCArithmeticAddition.h</a>&gt;</code></p>
130 <div class="dynheader">
131 Collaboration diagram for GCArithmeticAddition:</div>
132 <div class="dyncontent">
133 <div class="center"><iframe scrolling="no" frameborder="0" src="classarm__compute_1_1_g_c_arithmetic_addition__coll__graph.svg" width="170" height="187"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
134 </div>
135 <center><span class="legend">[<a target="top" href="graph_legend.xhtml">legend</a>]</span></center></div>
136 <table class="memberdecls">
137 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
138 Public Member Functions</h2></td></tr>
139 <tr class="memitem:a77d4c38915be03f7fa7031c73470b0c6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_g_c_arithmetic_addition.xhtml#a77d4c38915be03f7fa7031c73470b0c6">configure</a> (const <a class="el" href="classarm__compute_1_1_i_g_c_tensor.xhtml">IGCTensor</a> *input1, const <a class="el" href="classarm__compute_1_1_i_g_c_tensor.xhtml">IGCTensor</a> *input2, <a class="el" href="classarm__compute_1_1_i_g_c_tensor.xhtml">IGCTensor</a> *output, <a class="el" href="namespacearm__compute.xhtml#a82b8ac759c804bc1fb4e2d21e178fb6f">ConvertPolicy</a> policy)</td></tr>
140 <tr class="memdesc:a77d4c38915be03f7fa7031c73470b0c6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialise the kernel's inputs, output and convertion policy.  <a href="#a77d4c38915be03f7fa7031c73470b0c6">More...</a><br /></td></tr>
141 <tr class="separator:a77d4c38915be03f7fa7031c73470b0c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
142 <tr class="inherit_header pub_methods_classarm__compute_1_1_i_g_c_simple_function"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classarm__compute_1_1_i_g_c_simple_function')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classarm__compute_1_1_i_g_c_simple_function.xhtml">IGCSimpleFunction</a></td></tr>
143 <tr class="memitem:a40ffdcd627e53bb68a3acf734a19fa21 inherit pub_methods_classarm__compute_1_1_i_g_c_simple_function"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_i_g_c_simple_function.xhtml#a40ffdcd627e53bb68a3acf734a19fa21">IGCSimpleFunction</a> ()</td></tr>
144 <tr class="memdesc:a40ffdcd627e53bb68a3acf734a19fa21 inherit pub_methods_classarm__compute_1_1_i_g_c_simple_function"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor.  <a href="#a40ffdcd627e53bb68a3acf734a19fa21">More...</a><br /></td></tr>
145 <tr class="separator:a40ffdcd627e53bb68a3acf734a19fa21 inherit pub_methods_classarm__compute_1_1_i_g_c_simple_function"><td class="memSeparator" colspan="2">&#160;</td></tr>
146 <tr class="memitem:ab5fd6e96c07aaaed2747c7e16ed5951e inherit pub_methods_classarm__compute_1_1_i_g_c_simple_function"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_i_g_c_simple_function.xhtml#ab5fd6e96c07aaaed2747c7e16ed5951e">run</a> () overridefinal</td></tr>
147 <tr class="memdesc:ab5fd6e96c07aaaed2747c7e16ed5951e inherit pub_methods_classarm__compute_1_1_i_g_c_simple_function"><td class="mdescLeft">&#160;</td><td class="mdescRight">Run the kernels contained in the function.  <a href="#ab5fd6e96c07aaaed2747c7e16ed5951e">More...</a><br /></td></tr>
148 <tr class="separator:ab5fd6e96c07aaaed2747c7e16ed5951e inherit pub_methods_classarm__compute_1_1_i_g_c_simple_function"><td class="memSeparator" colspan="2">&#160;</td></tr>
149 <tr class="inherit_header pub_methods_classarm__compute_1_1_i_function"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classarm__compute_1_1_i_function')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classarm__compute_1_1_i_function.xhtml">IFunction</a></td></tr>
150 <tr class="memitem:ab921ecc3f3f6ae2b4bd61f3e1998d8c4 inherit pub_methods_classarm__compute_1_1_i_function"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_i_function.xhtml#ab921ecc3f3f6ae2b4bd61f3e1998d8c4">~IFunction</a> ()=default</td></tr>
151 <tr class="memdesc:ab921ecc3f3f6ae2b4bd61f3e1998d8c4 inherit pub_methods_classarm__compute_1_1_i_function"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="#ab921ecc3f3f6ae2b4bd61f3e1998d8c4">More...</a><br /></td></tr>
152 <tr class="separator:ab921ecc3f3f6ae2b4bd61f3e1998d8c4 inherit pub_methods_classarm__compute_1_1_i_function"><td class="memSeparator" colspan="2">&#160;</td></tr>
153 </table><table class="memberdecls">
154 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
155 Static Public Member Functions</h2></td></tr>
156 <tr class="memitem:a04feec137aacf18c1e22af13d98ff780"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classarm__compute_1_1_status.xhtml">Status</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_g_c_arithmetic_addition.xhtml#a04feec137aacf18c1e22af13d98ff780">validate</a> (const <a class="el" href="classarm__compute_1_1_i_tensor_info.xhtml">ITensorInfo</a> *input1, const <a class="el" href="classarm__compute_1_1_i_tensor_info.xhtml">ITensorInfo</a> *input2, const <a class="el" href="classarm__compute_1_1_i_tensor_info.xhtml">ITensorInfo</a> *output, <a class="el" href="namespacearm__compute.xhtml#a82b8ac759c804bc1fb4e2d21e178fb6f">ConvertPolicy</a> policy)</td></tr>
157 <tr class="memdesc:a04feec137aacf18c1e22af13d98ff780"><td class="mdescLeft">&#160;</td><td class="mdescRight">Static function to check if given info will lead to a valid configuration of <a class="el" href="classarm__compute_1_1_g_c_arithmetic_addition.xhtml">GCArithmeticAddition</a>.  <a href="#a04feec137aacf18c1e22af13d98ff780">More...</a><br /></td></tr>
158 <tr class="separator:a04feec137aacf18c1e22af13d98ff780"><td class="memSeparator" colspan="2">&#160;</td></tr>
159 </table>
160 <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
161 <div class="textblock"><p>Basic function to run <a class="el" href="classarm__compute_1_1_g_c_arithmetic_addition_kernel.xhtml">GCArithmeticAdditionKernel</a>. </p>
162 <dl class="section note"><dt>Note</dt><dd>The tensor data type for the inputs must be F16. </dd>
163 <dd>
164 The function performs an arithmetic addition between two tensors. </dd></dl>
165
166 <p>Definition at line <a class="el" href="_g_c_arithmetic_addition_8h_source.xhtml#l00039">39</a> of file <a class="el" href="_g_c_arithmetic_addition_8h_source.xhtml">GCArithmeticAddition.h</a>.</p>
167 </div><h2 class="groupheader">Member Function Documentation</h2>
168 <a class="anchor" id="a77d4c38915be03f7fa7031c73470b0c6"></a>
169 <div class="memitem">
170 <div class="memproto">
171       <table class="memname">
172         <tr>
173           <td class="memname">void configure </td>
174           <td>(</td>
175           <td class="paramtype">const <a class="el" href="classarm__compute_1_1_i_g_c_tensor.xhtml">IGCTensor</a> *&#160;</td>
176           <td class="paramname"><em>input1</em>, </td>
177         </tr>
178         <tr>
179           <td class="paramkey"></td>
180           <td></td>
181           <td class="paramtype">const <a class="el" href="classarm__compute_1_1_i_g_c_tensor.xhtml">IGCTensor</a> *&#160;</td>
182           <td class="paramname"><em>input2</em>, </td>
183         </tr>
184         <tr>
185           <td class="paramkey"></td>
186           <td></td>
187           <td class="paramtype"><a class="el" href="classarm__compute_1_1_i_g_c_tensor.xhtml">IGCTensor</a> *&#160;</td>
188           <td class="paramname"><em>output</em>, </td>
189         </tr>
190         <tr>
191           <td class="paramkey"></td>
192           <td></td>
193           <td class="paramtype"><a class="el" href="namespacearm__compute.xhtml#a82b8ac759c804bc1fb4e2d21e178fb6f">ConvertPolicy</a>&#160;</td>
194           <td class="paramname"><em>policy</em>&#160;</td>
195         </tr>
196         <tr>
197           <td></td>
198           <td>)</td>
199           <td></td><td></td>
200         </tr>
201       </table>
202 </div><div class="memdoc">
203
204 <p>Initialise the kernel's inputs, output and convertion policy. </p>
205 <dl class="params"><dt>Parameters</dt><dd>
206   <table class="params">
207     <tr><td class="paramdir">[in]</td><td class="paramname">input1</td><td>First tensor input. Data types supported: F16. </td></tr>
208     <tr><td class="paramdir">[in]</td><td class="paramname">input2</td><td>Second tensor input. Data types supported: F16. </td></tr>
209     <tr><td class="paramdir">[out]</td><td class="paramname">output</td><td>Output tensor. Data types supported: F16. </td></tr>
210     <tr><td class="paramdir">[in]</td><td class="paramname">policy</td><td>Policy to use to handle overflow. </td></tr>
211   </table>
212   </dd>
213 </dl>
214
215 </div>
216 </div>
217 <a class="anchor" id="a04feec137aacf18c1e22af13d98ff780"></a>
218 <div class="memitem">
219 <div class="memproto">
220 <table class="mlabels">
221   <tr>
222   <td class="mlabels-left">
223       <table class="memname">
224         <tr>
225           <td class="memname">static <a class="el" href="classarm__compute_1_1_status.xhtml">Status</a> validate </td>
226           <td>(</td>
227           <td class="paramtype">const <a class="el" href="classarm__compute_1_1_i_tensor_info.xhtml">ITensorInfo</a> *&#160;</td>
228           <td class="paramname"><em>input1</em>, </td>
229         </tr>
230         <tr>
231           <td class="paramkey"></td>
232           <td></td>
233           <td class="paramtype">const <a class="el" href="classarm__compute_1_1_i_tensor_info.xhtml">ITensorInfo</a> *&#160;</td>
234           <td class="paramname"><em>input2</em>, </td>
235         </tr>
236         <tr>
237           <td class="paramkey"></td>
238           <td></td>
239           <td class="paramtype">const <a class="el" href="classarm__compute_1_1_i_tensor_info.xhtml">ITensorInfo</a> *&#160;</td>
240           <td class="paramname"><em>output</em>, </td>
241         </tr>
242         <tr>
243           <td class="paramkey"></td>
244           <td></td>
245           <td class="paramtype"><a class="el" href="namespacearm__compute.xhtml#a82b8ac759c804bc1fb4e2d21e178fb6f">ConvertPolicy</a>&#160;</td>
246           <td class="paramname"><em>policy</em>&#160;</td>
247         </tr>
248         <tr>
249           <td></td>
250           <td>)</td>
251           <td></td><td></td>
252         </tr>
253       </table>
254   </td>
255   <td class="mlabels-right">
256 <span class="mlabels"><span class="mlabel">static</span></span>  </td>
257   </tr>
258 </table>
259 </div><div class="memdoc">
260
261 <p>Static function to check if given info will lead to a valid configuration of <a class="el" href="classarm__compute_1_1_g_c_arithmetic_addition.xhtml">GCArithmeticAddition</a>. </p>
262 <dl class="params"><dt>Parameters</dt><dd>
263   <table class="params">
264     <tr><td class="paramdir">[in]</td><td class="paramname">input1</td><td>First tensor input info. Data types supported: F16. </td></tr>
265     <tr><td class="paramdir">[in]</td><td class="paramname">input2</td><td>Second tensor input info. Data types supported: F16. </td></tr>
266     <tr><td class="paramdir">[in]</td><td class="paramname">output</td><td>Output tensor info. Data types supported: F16. </td></tr>
267     <tr><td class="paramdir">[in]</td><td class="paramname">policy</td><td>Policy to use to handle overflow.</td></tr>
268   </table>
269   </dd>
270 </dl>
271 <dl class="section return"><dt>Returns</dt><dd>a status </dd></dl>
272
273 </div>
274 </div>
275 <hr/>The documentation for this class was generated from the following file:<ul>
276 <li>arm_compute/runtime/GLES_COMPUTE/functions/<a class="el" href="_g_c_arithmetic_addition_8h_source.xhtml">GCArithmeticAddition.h</a></li>
277 </ul>
278 </div><!-- contents -->
279 </div><!-- doc-content -->
280 <!-- start footer part -->
281 <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
282   <ul>
283     <li class="navelem"><a class="el" href="namespacearm__compute.xhtml">arm_compute</a></li><li class="navelem"><a class="el" href="classarm__compute_1_1_g_c_arithmetic_addition.xhtml">GCArithmeticAddition</a></li>
284     <li class="footer">Generated on Fri Mar 2 2018 12:37:58 for Compute Library by
285     <a href="http://www.doxygen.org/index.html">
286     <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
287   </ul>
288 </div>
289 </body>
290 </html>