mirror of
https://github.com/ml-explore/mlx.git
synced 2025-06-25 18:11:15 +08:00
828 lines
120 KiB
HTML
828 lines
120 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
|
<meta name="generator" content="Doxygen 1.12.0"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>MLX: mlx/backend/metal/kernels/unary_ops.h 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>
|
|
<script type="text/javascript" src="clipboard.js"></script>
|
|
<link href="navtree.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="resize.js"></script>
|
|
<script type="text/javascript" src="cookie.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></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 id="projectrow">
|
|
<td id="projectalign">
|
|
<div id="projectname">MLX
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.12.0 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() { codefold.init(0); });
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search',false);
|
|
$(function() { init_search(); });
|
|
});
|
|
/* @license-end */
|
|
</script>
|
|
<div id="main-nav"></div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function(){ initResizable(false); });
|
|
/* @license-end */
|
|
</script>
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<div id="MSearchResults">
|
|
<div class="SRPage">
|
|
<div id="SRIndex">
|
|
<div id="SRResults"></div>
|
|
<div class="SRStatus" id="Loading">Loading...</div>
|
|
<div class="SRStatus" id="Searching">Searching...</div>
|
|
<div class="SRStatus" id="NoMatches">No Matches</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_938ab0ecf10b8b860ff766c820f665fd.html">mlx</a></li><li class="navelem"><a class="el" href="dir_1d446c9bd3c99228254c9484e0bc5c06.html">backend</a></li><li class="navelem"><a class="el" href="dir_d0c977ea65824390717cdb7efc36c157.html">metal</a></li><li class="navelem"><a class="el" href="dir_70a37effa88bcbd6b791977fa1e64356.html">kernels</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div id="doc-content">
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">unary_ops.h</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="unary__ops_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">// Copyright © 2023-2024 Apple Inc.</span></div>
|
|
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span> </div>
|
|
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="preprocessor">#pragma once</span></div>
|
|
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span> </div>
|
|
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="preprocessor">#include <metal_integer></span></div>
|
|
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="preprocessor">#include <metal_math></span></div>
|
|
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span> </div>
|
|
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="preprocessor">#include "<a class="code" href="erf_8h.html">mlx/backend/metal/kernels/erf.h</a>"</span></div>
|
|
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="preprocessor">#include "<a class="code" href="expm1f_8h.html">mlx/backend/metal/kernels/expm1f.h</a>"</span></div>
|
|
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span> </div>
|
|
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="keyword">namespace </span>{</div>
|
|
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span>constant <span class="keywordtype">float</span> inf = metal::numeric_limits<float>::infinity();</div>
|
|
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span>}</div>
|
|
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span> </div>
|
|
<div class="foldopen" id="foldopen00015" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"><a class="line" href="struct_abs.html"> 15</a></span><span class="keyword">struct </span><a class="code hl_struct" href="struct_abs.html">Abs</a> {</div>
|
|
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span> <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
|
<div class="foldopen" id="foldopen00017" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"><a class="line" href="struct_abs.html#a9e7481dfcc162509769852026ff4a344"> 17</a></span> T <a class="code hl_function" href="struct_abs.html#a9e7481dfcc162509769852026ff4a344">operator()</a>(T x) {</div>
|
|
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacemetal.html#a87c5122c60f9a12afceb9925a5b78ffb">metal::abs</a>(x);</div>
|
|
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> <span class="keyword">template</span> <></div>
|
|
<div class="foldopen" id="foldopen00021" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"><a class="line" href="struct_abs.html#a0ca113fd036151c443df3f83cc667f28"> 21</a></span> uint8_t <a class="code hl_function" href="struct_abs.html#a0ca113fd036151c443df3f83cc667f28">operator()</a>(uint8_t x) {</div>
|
|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> <span class="keywordflow">return</span> x;</div>
|
|
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> <span class="keyword">template</span> <></div>
|
|
<div class="foldopen" id="foldopen00025" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"><a class="line" href="struct_abs.html#adaeab32a7e377dc990077ab15f3dc4c2"> 25</a></span> uint16_t <a class="code hl_function" href="struct_abs.html#adaeab32a7e377dc990077ab15f3dc4c2">operator()</a>(uint16_t x) {</div>
|
|
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> <span class="keywordflow">return</span> x;</div>
|
|
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> <span class="keyword">template</span> <></div>
|
|
<div class="foldopen" id="foldopen00029" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"><a class="line" href="struct_abs.html#a99d2a2f37a6cddd3168b0224f2a9b963"> 29</a></span> uint32_t <a class="code hl_function" href="struct_abs.html#a99d2a2f37a6cddd3168b0224f2a9b963">operator()</a>(uint32_t x) {</div>
|
|
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> <span class="keywordflow">return</span> x;</div>
|
|
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> <span class="keyword">template</span> <></div>
|
|
<div class="foldopen" id="foldopen00033" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="struct_abs.html#ac9cbc02422d930479303f240a7ea6c71"> 33</a></span> uint64_t <a class="code hl_function" href="struct_abs.html#ac9cbc02422d930479303f240a7ea6c71">operator()</a>(uint64_t x) {</div>
|
|
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> <span class="keywordflow">return</span> x;</div>
|
|
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> <span class="keyword">template</span> <></div>
|
|
<div class="foldopen" id="foldopen00037" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"><a class="line" href="struct_abs.html#ac30835b27784d451bd2e4524c8eb9e11"> 37</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="struct_abs.html#ac30835b27784d451bd2e4524c8eb9e11">operator()</a>(<span class="keywordtype">bool</span> x) {</div>
|
|
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> <span class="keywordflow">return</span> x;</div>
|
|
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> <span class="keyword">template</span> <></div>
|
|
<div class="foldopen" id="foldopen00041" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="struct_abs.html#ab82917d6b30a2c579e7eb879d305c5fc"> 41</a></span> <a class="code hl_struct" href="structcomplex64__t.html">complex64_t</a> <a class="code hl_function" href="struct_abs.html#ab82917d6b30a2c579e7eb879d305c5fc">operator()</a>(<a class="code hl_struct" href="structcomplex64__t.html">complex64_t</a> x) {</div>
|
|
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> <span class="keywordflow">return</span> {<a class="code hl_function" href="namespacemetal_1_1precise.html#acb213467361cd2cab93a8d5ea1aa5bfd">metal::precise::sqrt</a>(x.<a class="code hl_variable" href="structcomplex64__t.html#abbd4a0092eca9f112c1c5ae1a133a27e">real</a> * x.<a class="code hl_variable" href="structcomplex64__t.html#abbd4a0092eca9f112c1c5ae1a133a27e">real</a> + x.<a class="code hl_variable" href="structcomplex64__t.html#a94037c0cf8451aaff7cb4d154a8426de">imag</a> * x.<a class="code hl_variable" href="structcomplex64__t.html#a94037c0cf8451aaff7cb4d154a8426de">imag</a>), 0};</div>
|
|
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> </div>
|
|
<div class="foldopen" id="foldopen00046" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"><a class="line" href="struct_arc_cos.html"> 46</a></span><span class="keyword">struct </span><a class="code hl_struct" href="struct_arc_cos.html">ArcCos</a> {</div>
|
|
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
|
<div class="foldopen" id="foldopen00048" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="struct_arc_cos.html#a5553cecf58511e24e76ac97f2d90b9ac"> 48</a></span> T <a class="code hl_function" href="struct_arc_cos.html#a5553cecf58511e24e76ac97f2d90b9ac">operator()</a>(T x) {</div>
|
|
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacemetal_1_1precise.html#a8a2bcc89fc0b7e74f0453f82f89a8604">metal::precise::acos</a>(x);</div>
|
|
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> </div>
|
|
<div class="foldopen" id="foldopen00053" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"><a class="line" href="struct_arc_cosh.html"> 53</a></span><span class="keyword">struct </span><a class="code hl_struct" href="struct_arc_cosh.html">ArcCosh</a> {</div>
|
|
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
|
<div class="foldopen" id="foldopen00055" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"><a class="line" href="struct_arc_cosh.html#a5c9e7712c14c97298b23ec48e19abc58"> 55</a></span> T <a class="code hl_function" href="struct_arc_cosh.html#a5c9e7712c14c97298b23ec48e19abc58">operator()</a>(T x) {</div>
|
|
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacemetal_1_1precise.html#a1f489fabffab969b8677b56bb1136067">metal::precise::acosh</a>(x);</div>
|
|
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> </div>
|
|
<div class="foldopen" id="foldopen00060" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"><a class="line" href="struct_arc_sin.html"> 60</a></span><span class="keyword">struct </span><a class="code hl_struct" href="struct_arc_sin.html">ArcSin</a> {</div>
|
|
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
|
<div class="foldopen" id="foldopen00062" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"><a class="line" href="struct_arc_sin.html#a0343872f2da93bae2bb0baadf49da022"> 62</a></span> T <a class="code hl_function" href="struct_arc_sin.html#a0343872f2da93bae2bb0baadf49da022">operator()</a>(T x) {</div>
|
|
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacemetal_1_1precise.html#adc7b8b6e12e320cb32030f728dcbf438">metal::precise::asin</a>(x);</div>
|
|
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> </div>
|
|
<div class="foldopen" id="foldopen00067" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"><a class="line" href="struct_arc_sinh.html"> 67</a></span><span class="keyword">struct </span><a class="code hl_struct" href="struct_arc_sinh.html">ArcSinh</a> {</div>
|
|
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
|
<div class="foldopen" id="foldopen00069" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"><a class="line" href="struct_arc_sinh.html#a3066fb7dc7c3180100fb55ff94af6a7a"> 69</a></span> T <a class="code hl_function" href="struct_arc_sinh.html#a3066fb7dc7c3180100fb55ff94af6a7a">operator()</a>(T x) {</div>
|
|
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacemetal_1_1precise.html#aaad1cdde6687c8011fbc5fda1bb13424">metal::precise::asinh</a>(x);</div>
|
|
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> </div>
|
|
<div class="foldopen" id="foldopen00074" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"><a class="line" href="struct_arc_tan.html"> 74</a></span><span class="keyword">struct </span><a class="code hl_struct" href="struct_arc_tan.html">ArcTan</a> {</div>
|
|
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
|
<div class="foldopen" id="foldopen00076" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"><a class="line" href="struct_arc_tan.html#af3a0aec6acec8ae8f5e4c4d5cf8c91ba"> 76</a></span> T <a class="code hl_function" href="struct_arc_tan.html#af3a0aec6acec8ae8f5e4c4d5cf8c91ba">operator()</a>(T x) {</div>
|
|
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacemetal_1_1precise.html#aaaf4b5f4786a912089bbf0ae7619a6be">metal::precise::atan</a>(x);</div>
|
|
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> </div>
|
|
<div class="foldopen" id="foldopen00081" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"><a class="line" href="struct_arc_tanh.html"> 81</a></span><span class="keyword">struct </span><a class="code hl_struct" href="struct_arc_tanh.html">ArcTanh</a> {</div>
|
|
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
|
<div class="foldopen" id="foldopen00083" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"><a class="line" href="struct_arc_tanh.html#a37dc3e01ec2830de7e82ed6c6363ac88"> 83</a></span> T <a class="code hl_function" href="struct_arc_tanh.html#a37dc3e01ec2830de7e82ed6c6363ac88">operator()</a>(T x) {</div>
|
|
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacemetal_1_1precise.html#a902994837653b90c47f4285673e712c4">metal::precise::atanh</a>(x);</div>
|
|
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> </div>
|
|
<div class="foldopen" id="foldopen00088" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"><a class="line" href="struct_ceil.html"> 88</a></span><span class="keyword">struct </span><a class="code hl_struct" href="struct_ceil.html">Ceil</a> {</div>
|
|
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
|
<div class="foldopen" id="foldopen00090" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"><a class="line" href="struct_ceil.html#a5e2a4ef1b012f5d352064489156e5e44"> 90</a></span> T <a class="code hl_function" href="struct_ceil.html#a5e2a4ef1b012f5d352064489156e5e44">operator()</a>(T x) {</div>
|
|
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacemetal.html#ad63204d38bc01df6ffc64583f7886b3c">metal::ceil</a>(x);</div>
|
|
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> <span class="keyword">template</span> <></div>
|
|
<div class="foldopen" id="foldopen00094" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"><a class="line" href="struct_ceil.html#a455cd8083ba859993077f2e078ae165b"> 94</a></span> int8_t <a class="code hl_function" href="struct_ceil.html#a455cd8083ba859993077f2e078ae165b">operator()</a>(int8_t x) {</div>
|
|
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> <span class="keywordflow">return</span> x;</div>
|
|
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> <span class="keyword">template</span> <></div>
|
|
<div class="foldopen" id="foldopen00098" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"><a class="line" href="struct_ceil.html#a2acb61bc658c7a216795e7f76ebcf98a"> 98</a></span> int16_t <a class="code hl_function" href="struct_ceil.html#a2acb61bc658c7a216795e7f76ebcf98a">operator()</a>(int16_t x) {</div>
|
|
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> <span class="keywordflow">return</span> x;</div>
|
|
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> <span class="keyword">template</span> <></div>
|
|
<div class="foldopen" id="foldopen00102" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"><a class="line" href="struct_ceil.html#aef8c37f7a8ee3fc80700d605a09891fb"> 102</a></span> int32_t <a class="code hl_function" href="struct_ceil.html#aef8c37f7a8ee3fc80700d605a09891fb">operator()</a>(int32_t x) {</div>
|
|
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> <span class="keywordflow">return</span> x;</div>
|
|
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> <span class="keyword">template</span> <></div>
|
|
<div class="foldopen" id="foldopen00106" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"><a class="line" href="struct_ceil.html#a93d0110511ad5dd200e12d37a3d7d6e3"> 106</a></span> int64_t <a class="code hl_function" href="struct_ceil.html#a93d0110511ad5dd200e12d37a3d7d6e3">operator()</a>(int64_t x) {</div>
|
|
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> <span class="keywordflow">return</span> x;</div>
|
|
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> <span class="keyword">template</span> <></div>
|
|
<div class="foldopen" id="foldopen00110" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"><a class="line" href="struct_ceil.html#aa335b745fa26e0f443cdb36298105484"> 110</a></span> uint8_t <a class="code hl_function" href="struct_ceil.html#aa335b745fa26e0f443cdb36298105484">operator()</a>(uint8_t x) {</div>
|
|
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> <span class="keywordflow">return</span> x;</div>
|
|
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> <span class="keyword">template</span> <></div>
|
|
<div class="foldopen" id="foldopen00114" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"><a class="line" href="struct_ceil.html#ade17e13b7f30f5c590fae1581a2013ac"> 114</a></span> uint16_t <a class="code hl_function" href="struct_ceil.html#ade17e13b7f30f5c590fae1581a2013ac">operator()</a>(uint16_t x) {</div>
|
|
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> <span class="keywordflow">return</span> x;</div>
|
|
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> <span class="keyword">template</span> <></div>
|
|
<div class="foldopen" id="foldopen00118" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"><a class="line" href="struct_ceil.html#a411c75cc35cdc088402e176a1defd22d"> 118</a></span> uint32_t <a class="code hl_function" href="struct_ceil.html#a411c75cc35cdc088402e176a1defd22d">operator()</a>(uint32_t x) {</div>
|
|
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> <span class="keywordflow">return</span> x;</div>
|
|
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> <span class="keyword">template</span> <></div>
|
|
<div class="foldopen" id="foldopen00122" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"><a class="line" href="struct_ceil.html#a9ac660ca29eef7a7429fceb7b917a68a"> 122</a></span> uint64_t <a class="code hl_function" href="struct_ceil.html#a9ac660ca29eef7a7429fceb7b917a68a">operator()</a>(uint64_t x) {</div>
|
|
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> <span class="keywordflow">return</span> x;</div>
|
|
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> <span class="keyword">template</span> <></div>
|
|
<div class="foldopen" id="foldopen00126" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"><a class="line" href="struct_ceil.html#a40de367e62f06ebd7e1330afa93a9ad9"> 126</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="struct_ceil.html#a40de367e62f06ebd7e1330afa93a9ad9">operator()</a>(<span class="keywordtype">bool</span> x) {</div>
|
|
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> <span class="keywordflow">return</span> x;</div>
|
|
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> </div>
|
|
<div class="foldopen" id="foldopen00131" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"><a class="line" href="struct_cos.html"> 131</a></span><span class="keyword">struct </span><a class="code hl_struct" href="struct_cos.html">Cos</a> {</div>
|
|
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
|
<div class="foldopen" id="foldopen00133" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"><a class="line" href="struct_cos.html#ae222f8710f6b8254c471ebd475aa5bda"> 133</a></span> T <a class="code hl_function" href="struct_cos.html#ae222f8710f6b8254c471ebd475aa5bda">operator()</a>(T x) {</div>
|
|
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacemetal_1_1precise.html#ac4941f62e7d8ab9d7cabbd967aa9f220">metal::precise::cos</a>(x);</div>
|
|
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> </div>
|
|
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> <span class="keyword">template</span> <></div>
|
|
<div class="foldopen" id="foldopen00138" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"><a class="line" href="struct_cos.html#a5f26feb1dcc4bec5f59a9ff511c5b163"> 138</a></span> <a class="code hl_struct" href="structcomplex64__t.html">complex64_t</a> <a class="code hl_function" href="struct_cos.html#a5f26feb1dcc4bec5f59a9ff511c5b163">operator()</a>(<a class="code hl_struct" href="structcomplex64__t.html">complex64_t</a> x) {</div>
|
|
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> <span class="keywordflow">return</span> {</div>
|
|
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> <a class="code hl_function" href="namespacemetal_1_1precise.html#ac4941f62e7d8ab9d7cabbd967aa9f220">metal::precise::cos</a>(x.<a class="code hl_variable" href="structcomplex64__t.html#abbd4a0092eca9f112c1c5ae1a133a27e">real</a>) * <a class="code hl_function" href="namespacemetal_1_1precise.html#a72d86d508300a9b58f4ccbbe70da4fbc">metal::precise::cosh</a>(x.<a class="code hl_variable" href="structcomplex64__t.html#a94037c0cf8451aaff7cb4d154a8426de">imag</a>),</div>
|
|
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> -<a class="code hl_function" href="namespacemetal_1_1precise.html#a71acf77ffd29c56f56afae0195c98a1c">metal::precise::sin</a>(x.<a class="code hl_variable" href="structcomplex64__t.html#abbd4a0092eca9f112c1c5ae1a133a27e">real</a>) * <a class="code hl_function" href="namespacemetal_1_1precise.html#abc8f4f59dd6e7204ab5d84f0af96331c">metal::precise::sinh</a>(x.<a class="code hl_variable" href="structcomplex64__t.html#a94037c0cf8451aaff7cb4d154a8426de">imag</a>)};</div>
|
|
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> </div>
|
|
<div class="foldopen" id="foldopen00145" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"><a class="line" href="struct_cosh.html"> 145</a></span><span class="keyword">struct </span><a class="code hl_struct" href="struct_cosh.html">Cosh</a> {</div>
|
|
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
|
<div class="foldopen" id="foldopen00147" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"><a class="line" href="struct_cosh.html#a5847ebeebb236fdc926798ddc16475ba"> 147</a></span> T <a class="code hl_function" href="struct_cosh.html#a5847ebeebb236fdc926798ddc16475ba">operator()</a>(T x) {</div>
|
|
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacemetal_1_1precise.html#a72d86d508300a9b58f4ccbbe70da4fbc">metal::precise::cosh</a>(x);</div>
|
|
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> </div>
|
|
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> <span class="keyword">template</span> <></div>
|
|
<div class="foldopen" id="foldopen00152" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"><a class="line" href="struct_cosh.html#aefdd91298dac16d528d29ee47e2f7252"> 152</a></span> <a class="code hl_struct" href="structcomplex64__t.html">complex64_t</a> <a class="code hl_function" href="struct_cosh.html#aefdd91298dac16d528d29ee47e2f7252">operator()</a>(<a class="code hl_struct" href="structcomplex64__t.html">complex64_t</a> x) {</div>
|
|
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> <span class="keywordflow">return</span> {</div>
|
|
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> <a class="code hl_function" href="namespacemetal_1_1precise.html#a72d86d508300a9b58f4ccbbe70da4fbc">metal::precise::cosh</a>(x.<a class="code hl_variable" href="structcomplex64__t.html#abbd4a0092eca9f112c1c5ae1a133a27e">real</a>) * <a class="code hl_function" href="namespacemetal_1_1precise.html#ac4941f62e7d8ab9d7cabbd967aa9f220">metal::precise::cos</a>(x.<a class="code hl_variable" href="structcomplex64__t.html#a94037c0cf8451aaff7cb4d154a8426de">imag</a>),</div>
|
|
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> <a class="code hl_function" href="namespacemetal_1_1precise.html#abc8f4f59dd6e7204ab5d84f0af96331c">metal::precise::sinh</a>(x.<a class="code hl_variable" href="structcomplex64__t.html#abbd4a0092eca9f112c1c5ae1a133a27e">real</a>) * <a class="code hl_function" href="namespacemetal_1_1precise.html#a71acf77ffd29c56f56afae0195c98a1c">metal::precise::sin</a>(x.<a class="code hl_variable" href="structcomplex64__t.html#a94037c0cf8451aaff7cb4d154a8426de">imag</a>)};</div>
|
|
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> </div>
|
|
<div class="foldopen" id="foldopen00159" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"><a class="line" href="struct_conjugate.html"> 159</a></span><span class="keyword">struct </span><a class="code hl_struct" href="struct_conjugate.html">Conjugate</a> {</div>
|
|
<div class="foldopen" id="foldopen00160" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"><a class="line" href="struct_conjugate.html#acb0a2694285f1f57c7654b371ce8cbd8"> 160</a></span> <a class="code hl_struct" href="structcomplex64__t.html">complex64_t</a> <a class="code hl_function" href="struct_conjugate.html#acb0a2694285f1f57c7654b371ce8cbd8">operator()</a>(<a class="code hl_struct" href="structcomplex64__t.html">complex64_t</a> x) {</div>
|
|
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> <span class="keywordflow">return</span> <a class="code hl_struct" href="structcomplex64__t.html">complex64_t</a>{x.<a class="code hl_variable" href="structcomplex64__t.html#abbd4a0092eca9f112c1c5ae1a133a27e">real</a>, -x.<a class="code hl_variable" href="structcomplex64__t.html#a94037c0cf8451aaff7cb4d154a8426de">imag</a>};</div>
|
|
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> </div>
|
|
<div class="foldopen" id="foldopen00165" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"><a class="line" href="struct_erf.html"> 165</a></span><span class="keyword">struct </span><a class="code hl_struct" href="struct_erf.html">Erf</a> {</div>
|
|
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span> <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
|
<div class="foldopen" id="foldopen00167" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"><a class="line" href="struct_erf.html#a80719402ad7f7d418859a6677d7b604d"> 167</a></span> T <a class="code hl_function" href="struct_erf.html#a80719402ad7f7d418859a6677d7b604d">operator()</a>(T x) {</div>
|
|
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> <span class="keywordflow">return</span> <span class="keyword">static_cast<</span>T<span class="keyword">></span>(<a class="code hl_function" href="erf_8h.html#a6ce199ee56105c67adbf8c48c019a8b2">erf</a>(<span class="keyword">static_cast<</span><span class="keywordtype">float</span><span class="keyword">></span>(x)));</div>
|
|
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> </div>
|
|
<div class="foldopen" id="foldopen00172" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"><a class="line" href="struct_erf_inv.html"> 172</a></span><span class="keyword">struct </span><a class="code hl_struct" href="struct_erf_inv.html">ErfInv</a> {</div>
|
|
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
|
<div class="foldopen" id="foldopen00174" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"><a class="line" href="struct_erf_inv.html#afbf3668d1a512e889f093a0bc7673309"> 174</a></span> T <a class="code hl_function" href="struct_erf_inv.html#afbf3668d1a512e889f093a0bc7673309">operator()</a>(T x) {</div>
|
|
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> <span class="keywordflow">return</span> <span class="keyword">static_cast<</span>T<span class="keyword">></span>(<a class="code hl_function" href="erf_8h.html#a1846e0d683c7aff826bb32addcc3b885">erfinv</a>(<span class="keyword">static_cast<</span><span class="keywordtype">float</span><span class="keyword">></span>(x)));</div>
|
|
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span> </div>
|
|
<div class="foldopen" id="foldopen00179" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"><a class="line" href="struct_exp.html"> 179</a></span><span class="keyword">struct </span><a class="code hl_struct" href="struct_exp.html">Exp</a> {</div>
|
|
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span> <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
|
<div class="foldopen" id="foldopen00181" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"><a class="line" href="struct_exp.html#a5ef395868e055348c0802fd5fe45669c"> 181</a></span> T <a class="code hl_function" href="struct_exp.html#a5ef395868e055348c0802fd5fe45669c">operator()</a>(T x) {</div>
|
|
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"> 182</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacemetal_1_1precise.html#a8d8d2d5700ce432b33cf47cf22528e8f">metal::precise::exp</a>(x);</div>
|
|
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</span> <span class="keyword">template</span> <></div>
|
|
<div class="foldopen" id="foldopen00185" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"><a class="line" href="struct_exp.html#a2b341ac400c4d145397950eb60734336"> 185</a></span> <a class="code hl_struct" href="structcomplex64__t.html">complex64_t</a> <a class="code hl_function" href="struct_exp.html#a2b341ac400c4d145397950eb60734336">operator()</a>(<a class="code hl_struct" href="structcomplex64__t.html">complex64_t</a> x) {</div>
|
|
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> <span class="keyword">auto</span> m = <a class="code hl_function" href="namespacemetal_1_1precise.html#a8d8d2d5700ce432b33cf47cf22528e8f">metal::precise::exp</a>(x.<a class="code hl_variable" href="structcomplex64__t.html#abbd4a0092eca9f112c1c5ae1a133a27e">real</a>);</div>
|
|
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span> <span class="keywordflow">return</span> {m * <a class="code hl_function" href="namespacemetal_1_1precise.html#ac4941f62e7d8ab9d7cabbd967aa9f220">metal::precise::cos</a>(x.<a class="code hl_variable" href="structcomplex64__t.html#a94037c0cf8451aaff7cb4d154a8426de">imag</a>), m * <a class="code hl_function" href="namespacemetal_1_1precise.html#a71acf77ffd29c56f56afae0195c98a1c">metal::precise::sin</a>(x.<a class="code hl_variable" href="structcomplex64__t.html#a94037c0cf8451aaff7cb4d154a8426de">imag</a>)};</div>
|
|
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span> </div>
|
|
<div class="foldopen" id="foldopen00191" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"><a class="line" href="struct_expm1.html"> 191</a></span><span class="keyword">struct </span><a class="code hl_struct" href="struct_expm1.html">Expm1</a> {</div>
|
|
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</span> <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
|
<div class="foldopen" id="foldopen00193" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"><a class="line" href="struct_expm1.html#a4b834d42cf0b84daf03fec62c222091a"> 193</a></span> T <a class="code hl_function" href="struct_expm1.html#a4b834d42cf0b84daf03fec62c222091a">operator()</a>(T x) {</div>
|
|
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"> 194</span> <span class="keywordflow">return</span> <span class="keyword">static_cast<</span>T<span class="keyword">></span>(<a class="code hl_function" href="expm1f_8h.html#a87f66d30e185950f42ce3641783cdc40">expm1f</a>(<span class="keyword">static_cast<</span><span class="keywordtype">float</span><span class="keyword">></span>(x)));</div>
|
|
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"> 195</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span> </div>
|
|
<div class="foldopen" id="foldopen00198" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"><a class="line" href="struct_floor.html"> 198</a></span><span class="keyword">struct </span><a class="code hl_struct" href="struct_floor.html">Floor</a> {</div>
|
|
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span> <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
|
<div class="foldopen" id="foldopen00200" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"><a class="line" href="struct_floor.html#ace3551f28429081e9f3a3dab0c84212b"> 200</a></span> T <a class="code hl_function" href="struct_floor.html#ace3551f28429081e9f3a3dab0c84212b">operator()</a>(T x) {</div>
|
|
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"> 201</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacemetal.html#a020790f30c28a9982c4a83deaa258277">metal::floor</a>(x);</div>
|
|
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno"> 202</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"> 203</span> <span class="keyword">template</span> <></div>
|
|
<div class="foldopen" id="foldopen00204" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"><a class="line" href="struct_floor.html#a10d7fd05b4c224c9f135451246d13014"> 204</a></span> int8_t <a class="code hl_function" href="struct_floor.html#a10d7fd05b4c224c9f135451246d13014">operator()</a>(int8_t x) {</div>
|
|
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno"> 205</span> <span class="keywordflow">return</span> x;</div>
|
|
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno"> 206</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno"> 207</span> <span class="keyword">template</span> <></div>
|
|
<div class="foldopen" id="foldopen00208" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno"><a class="line" href="struct_floor.html#a2865a04a492e3590302f4bd3215a10d7"> 208</a></span> int16_t <a class="code hl_function" href="struct_floor.html#a2865a04a492e3590302f4bd3215a10d7">operator()</a>(int16_t x) {</div>
|
|
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno"> 209</span> <span class="keywordflow">return</span> x;</div>
|
|
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno"> 210</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno"> 211</span> <span class="keyword">template</span> <></div>
|
|
<div class="foldopen" id="foldopen00212" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno"><a class="line" href="struct_floor.html#a41012343ff0463ec44b4d06196f41182"> 212</a></span> int32_t <a class="code hl_function" href="struct_floor.html#a41012343ff0463ec44b4d06196f41182">operator()</a>(int32_t x) {</div>
|
|
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno"> 213</span> <span class="keywordflow">return</span> x;</div>
|
|
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno"> 214</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno"> 215</span> <span class="keyword">template</span> <></div>
|
|
<div class="foldopen" id="foldopen00216" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno"><a class="line" href="struct_floor.html#aae3181d15856796aa0628cf30c92aa2e"> 216</a></span> int64_t <a class="code hl_function" href="struct_floor.html#aae3181d15856796aa0628cf30c92aa2e">operator()</a>(int64_t x) {</div>
|
|
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno"> 217</span> <span class="keywordflow">return</span> x;</div>
|
|
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno"> 218</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno"> 219</span> <span class="keyword">template</span> <></div>
|
|
<div class="foldopen" id="foldopen00220" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"><a class="line" href="struct_floor.html#ac6cf38d82c8e270911afdca4c69ad51b"> 220</a></span> uint8_t <a class="code hl_function" href="struct_floor.html#ac6cf38d82c8e270911afdca4c69ad51b">operator()</a>(uint8_t x) {</div>
|
|
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno"> 221</span> <span class="keywordflow">return</span> x;</div>
|
|
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno"> 222</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno"> 223</span> <span class="keyword">template</span> <></div>
|
|
<div class="foldopen" id="foldopen00224" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno"><a class="line" href="struct_floor.html#a78969b9e2b53ae248e72a67259eea5d8"> 224</a></span> uint16_t <a class="code hl_function" href="struct_floor.html#a78969b9e2b53ae248e72a67259eea5d8">operator()</a>(uint16_t x) {</div>
|
|
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno"> 225</span> <span class="keywordflow">return</span> x;</div>
|
|
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno"> 226</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno"> 227</span> <span class="keyword">template</span> <></div>
|
|
<div class="foldopen" id="foldopen00228" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno"><a class="line" href="struct_floor.html#a959009320ed622ed45b39becab1d5b98"> 228</a></span> uint32_t <a class="code hl_function" href="struct_floor.html#a959009320ed622ed45b39becab1d5b98">operator()</a>(uint32_t x) {</div>
|
|
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno"> 229</span> <span class="keywordflow">return</span> x;</div>
|
|
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno"> 230</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno"> 231</span> <span class="keyword">template</span> <></div>
|
|
<div class="foldopen" id="foldopen00232" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno"><a class="line" href="struct_floor.html#a7d04b83c3345cd867315cae2d7ff68ab"> 232</a></span> uint64_t <a class="code hl_function" href="struct_floor.html#a7d04b83c3345cd867315cae2d7ff68ab">operator()</a>(uint64_t x) {</div>
|
|
<div class="line"><a id="l00233" name="l00233"></a><span class="lineno"> 233</span> <span class="keywordflow">return</span> x;</div>
|
|
<div class="line"><a id="l00234" name="l00234"></a><span class="lineno"> 234</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno"> 235</span> <span class="keyword">template</span> <></div>
|
|
<div class="foldopen" id="foldopen00236" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno"><a class="line" href="struct_floor.html#abea845fe5e8e6b93bd4bca8717337e0b"> 236</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="struct_floor.html#abea845fe5e8e6b93bd4bca8717337e0b">operator()</a>(<span class="keywordtype">bool</span> x) {</div>
|
|
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno"> 237</span> <span class="keywordflow">return</span> x;</div>
|
|
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno"> 238</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno"> 239</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno"> 240</span> </div>
|
|
<div class="foldopen" id="foldopen00241" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno"><a class="line" href="struct_log.html"> 241</a></span><span class="keyword">struct </span><a class="code hl_struct" href="struct_log.html">Log</a> {</div>
|
|
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno"> 242</span> <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
|
<div class="foldopen" id="foldopen00243" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno"><a class="line" href="struct_log.html#a32a383cb6be06e616a75f23bf49089c3"> 243</a></span> T <a class="code hl_function" href="struct_log.html#a32a383cb6be06e616a75f23bf49089c3">operator()</a>(T x) {</div>
|
|
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno"> 244</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacemetal_1_1precise.html#a341c2b8c27d1bed860f85f8b355023d4">metal::precise::log</a>(x);</div>
|
|
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno"> 245</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno"> 246</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno"> 247</span> </div>
|
|
<div class="foldopen" id="foldopen00248" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno"><a class="line" href="struct_log2.html"> 248</a></span><span class="keyword">struct </span><a class="code hl_struct" href="struct_log2.html">Log2</a> {</div>
|
|
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno"> 249</span> <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
|
<div class="foldopen" id="foldopen00250" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno"><a class="line" href="struct_log2.html#ac1e067ecdcbdbffb6106e789c2b98b64"> 250</a></span> T <a class="code hl_function" href="struct_log2.html#ac1e067ecdcbdbffb6106e789c2b98b64">operator()</a>(T x) {</div>
|
|
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno"> 251</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacemetal_1_1precise.html#a632dbbdcc1a465cf4739a14306147573">metal::precise::log2</a>(x);</div>
|
|
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno"> 252</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno"> 253</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno"> 254</span> </div>
|
|
<div class="foldopen" id="foldopen00255" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno"><a class="line" href="struct_log10.html"> 255</a></span><span class="keyword">struct </span><a class="code hl_struct" href="struct_log10.html">Log10</a> {</div>
|
|
<div class="line"><a id="l00256" name="l00256"></a><span class="lineno"> 256</span> <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
|
<div class="foldopen" id="foldopen00257" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00257" name="l00257"></a><span class="lineno"><a class="line" href="struct_log10.html#ac596a74c1642a00f3eced07ee3334122"> 257</a></span> T <a class="code hl_function" href="struct_log10.html#ac596a74c1642a00f3eced07ee3334122">operator()</a>(T x) {</div>
|
|
<div class="line"><a id="l00258" name="l00258"></a><span class="lineno"> 258</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacemetal_1_1precise.html#a44239067e8e9248b1574353f98e94d72">metal::precise::log10</a>(x);</div>
|
|
<div class="line"><a id="l00259" name="l00259"></a><span class="lineno"> 259</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00260" name="l00260"></a><span class="lineno"> 260</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00261" name="l00261"></a><span class="lineno"> 261</span> </div>
|
|
<div class="foldopen" id="foldopen00262" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno"><a class="line" href="struct_log1p.html"> 262</a></span><span class="keyword">struct </span><a class="code hl_struct" href="struct_log1p.html">Log1p</a> {</div>
|
|
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno"> 263</span> <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
|
<div class="foldopen" id="foldopen00264" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno"><a class="line" href="struct_log1p.html#a4464c6e7bdbe55ffd7d961c695cd13ce"> 264</a></span> T <a class="code hl_function" href="struct_log1p.html#a4464c6e7bdbe55ffd7d961c695cd13ce">operator()</a>(T x) {</div>
|
|
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno"> 265</span> <span class="keywordflow">return</span> <a class="code hl_function" href="backend_2metal_2kernels_2utils_8h.html#a27c03f2f90ab56db2e4d59559a3d2e9a">log1p</a>(x);</div>
|
|
<div class="line"><a id="l00266" name="l00266"></a><span class="lineno"> 266</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno"> 267</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno"> 268</span> </div>
|
|
<div class="foldopen" id="foldopen00269" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno"><a class="line" href="struct_logical_not.html"> 269</a></span><span class="keyword">struct </span><a class="code hl_struct" href="struct_logical_not.html">LogicalNot</a> {</div>
|
|
<div class="line"><a id="l00270" name="l00270"></a><span class="lineno"> 270</span> <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
|
<div class="foldopen" id="foldopen00271" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00271" name="l00271"></a><span class="lineno"><a class="line" href="struct_logical_not.html#a8a620bac957ab8c09ac85adfddd96708"> 271</a></span> T <a class="code hl_function" href="struct_logical_not.html#a8a620bac957ab8c09ac85adfddd96708">operator()</a>(T x) {</div>
|
|
<div class="line"><a id="l00272" name="l00272"></a><span class="lineno"> 272</span> <span class="keywordflow">return</span> !x;</div>
|
|
<div class="line"><a id="l00273" name="l00273"></a><span class="lineno"> 273</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00274" name="l00274"></a><span class="lineno"> 274</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00275" name="l00275"></a><span class="lineno"> 275</span> </div>
|
|
<div class="foldopen" id="foldopen00276" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00276" name="l00276"></a><span class="lineno"><a class="line" href="struct_negative.html"> 276</a></span><span class="keyword">struct </span><a class="code hl_struct" href="struct_negative.html">Negative</a> {</div>
|
|
<div class="line"><a id="l00277" name="l00277"></a><span class="lineno"> 277</span> <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
|
<div class="foldopen" id="foldopen00278" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00278" name="l00278"></a><span class="lineno"><a class="line" href="struct_negative.html#af6879b374314a559faa321e8cce3d710"> 278</a></span> T <a class="code hl_function" href="struct_negative.html#af6879b374314a559faa321e8cce3d710">operator()</a>(T x) {</div>
|
|
<div class="line"><a id="l00279" name="l00279"></a><span class="lineno"> 279</span> <span class="keywordflow">return</span> -x;</div>
|
|
<div class="line"><a id="l00280" name="l00280"></a><span class="lineno"> 280</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00281" name="l00281"></a><span class="lineno"> 281</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno"> 282</span> </div>
|
|
<div class="foldopen" id="foldopen00283" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00283" name="l00283"></a><span class="lineno"><a class="line" href="struct_round.html"> 283</a></span><span class="keyword">struct </span><a class="code hl_struct" href="struct_round.html">Round</a> {</div>
|
|
<div class="line"><a id="l00284" name="l00284"></a><span class="lineno"> 284</span> <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
|
<div class="foldopen" id="foldopen00285" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno"><a class="line" href="struct_round.html#aa06a0195867e2ceb679c403b6909a1c4"> 285</a></span> T <a class="code hl_function" href="struct_round.html#aa06a0195867e2ceb679c403b6909a1c4">operator()</a>(T x) {</div>
|
|
<div class="line"><a id="l00286" name="l00286"></a><span class="lineno"> 286</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacemetal.html#a29ab6060527120eee745aec0daa06e01">metal::rint</a>(x);</div>
|
|
<div class="line"><a id="l00287" name="l00287"></a><span class="lineno"> 287</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00288" name="l00288"></a><span class="lineno"> 288</span> <span class="keyword">template</span> <></div>
|
|
<div class="foldopen" id="foldopen00289" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00289" name="l00289"></a><span class="lineno"><a class="line" href="struct_round.html#ad3a08f2276ff1033900bc0a7da812655"> 289</a></span> <a class="code hl_struct" href="structcomplex64__t.html">complex64_t</a> <a class="code hl_function" href="struct_round.html#ad3a08f2276ff1033900bc0a7da812655">operator()</a>(<a class="code hl_struct" href="structcomplex64__t.html">complex64_t</a> x) {</div>
|
|
<div class="line"><a id="l00290" name="l00290"></a><span class="lineno"> 290</span> <span class="keywordflow">return</span> {<a class="code hl_function" href="namespacemetal.html#a29ab6060527120eee745aec0daa06e01">metal::rint</a>(x.<a class="code hl_variable" href="structcomplex64__t.html#abbd4a0092eca9f112c1c5ae1a133a27e">real</a>), <a class="code hl_function" href="namespacemetal.html#a29ab6060527120eee745aec0daa06e01">metal::rint</a>(x.<a class="code hl_variable" href="structcomplex64__t.html#a94037c0cf8451aaff7cb4d154a8426de">imag</a>)};</div>
|
|
<div class="line"><a id="l00291" name="l00291"></a><span class="lineno"> 291</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00292" name="l00292"></a><span class="lineno"> 292</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00293" name="l00293"></a><span class="lineno"> 293</span> </div>
|
|
<div class="foldopen" id="foldopen00294" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00294" name="l00294"></a><span class="lineno"><a class="line" href="struct_sigmoid.html"> 294</a></span><span class="keyword">struct </span><a class="code hl_struct" href="struct_sigmoid.html">Sigmoid</a> {</div>
|
|
<div class="line"><a id="l00295" name="l00295"></a><span class="lineno"> 295</span> <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
|
<div class="foldopen" id="foldopen00296" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00296" name="l00296"></a><span class="lineno"><a class="line" href="struct_sigmoid.html#a75a24cd75cb4d4c9a072811b2d70ad55"> 296</a></span> T <a class="code hl_function" href="struct_sigmoid.html#a75a24cd75cb4d4c9a072811b2d70ad55">operator()</a>(T x) {</div>
|
|
<div class="line"><a id="l00297" name="l00297"></a><span class="lineno"> 297</span> <span class="keyword">auto</span> y = 1 / (1 + <a class="code hl_function" href="namespacemetal.html#ac2a0b3618d922ac014baac8189d44650">metal::exp</a>(-<a class="code hl_function" href="namespacemetal.html#a87c5122c60f9a12afceb9925a5b78ffb">metal::abs</a>(x)));</div>
|
|
<div class="line"><a id="l00298" name="l00298"></a><span class="lineno"> 298</span> <span class="keywordflow">return</span> (x < 0) ? 1 - y : y;</div>
|
|
<div class="line"><a id="l00299" name="l00299"></a><span class="lineno"> 299</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00300" name="l00300"></a><span class="lineno"> 300</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00301" name="l00301"></a><span class="lineno"> 301</span> </div>
|
|
<div class="foldopen" id="foldopen00302" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00302" name="l00302"></a><span class="lineno"><a class="line" href="struct_sign.html"> 302</a></span><span class="keyword">struct </span><a class="code hl_struct" href="struct_sign.html">Sign</a> {</div>
|
|
<div class="line"><a id="l00303" name="l00303"></a><span class="lineno"> 303</span> <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
|
<div class="foldopen" id="foldopen00304" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00304" name="l00304"></a><span class="lineno"><a class="line" href="struct_sign.html#aa3304c6b43bcad53061614b741d8403c"> 304</a></span> T <a class="code hl_function" href="struct_sign.html#aa3304c6b43bcad53061614b741d8403c">operator()</a>(T x) {</div>
|
|
<div class="line"><a id="l00305" name="l00305"></a><span class="lineno"> 305</span> <span class="keywordflow">return</span> (x > T(0)) - (x < T(0));</div>
|
|
<div class="line"><a id="l00306" name="l00306"></a><span class="lineno"> 306</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00307" name="l00307"></a><span class="lineno"> 307</span> <span class="keyword">template</span> <></div>
|
|
<div class="foldopen" id="foldopen00308" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00308" name="l00308"></a><span class="lineno"><a class="line" href="struct_sign.html#ac48992b675b8b28be1e27e1f2ec5d2f7"> 308</a></span> uint32_t <a class="code hl_function" href="struct_sign.html#ac48992b675b8b28be1e27e1f2ec5d2f7">operator()</a>(uint32_t x) {</div>
|
|
<div class="line"><a id="l00309" name="l00309"></a><span class="lineno"> 309</span> <span class="keywordflow">return</span> x != 0;</div>
|
|
<div class="line"><a id="l00310" name="l00310"></a><span class="lineno"> 310</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00311" name="l00311"></a><span class="lineno"> 311</span> <span class="keyword">template</span> <></div>
|
|
<div class="foldopen" id="foldopen00312" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00312" name="l00312"></a><span class="lineno"><a class="line" href="struct_sign.html#ae07a4249e1b61419a3b9ca6c337b7bb5"> 312</a></span> <a class="code hl_struct" href="structcomplex64__t.html">complex64_t</a> <a class="code hl_function" href="struct_sign.html#ae07a4249e1b61419a3b9ca6c337b7bb5">operator()</a>(<a class="code hl_struct" href="structcomplex64__t.html">complex64_t</a> x) {</div>
|
|
<div class="line"><a id="l00313" name="l00313"></a><span class="lineno"> 313</span> <span class="keywordflow">if</span> (x == <a class="code hl_struct" href="structcomplex64__t.html">complex64_t</a>(0)) {</div>
|
|
<div class="line"><a id="l00314" name="l00314"></a><span class="lineno"> 314</span> <span class="keywordflow">return</span> x;</div>
|
|
<div class="line"><a id="l00315" name="l00315"></a><span class="lineno"> 315</span> }</div>
|
|
<div class="line"><a id="l00316" name="l00316"></a><span class="lineno"> 316</span> <span class="keywordflow">return</span> x /</div>
|
|
<div class="line"><a id="l00317" name="l00317"></a><span class="lineno"> 317</span> (<a class="code hl_struct" href="structcomplex64__t.html">complex64_t</a>)<a class="code hl_function" href="namespacemetal_1_1precise.html#acb213467361cd2cab93a8d5ea1aa5bfd">metal::precise::sqrt</a>(x.<a class="code hl_variable" href="structcomplex64__t.html#abbd4a0092eca9f112c1c5ae1a133a27e">real</a> * x.<a class="code hl_variable" href="structcomplex64__t.html#abbd4a0092eca9f112c1c5ae1a133a27e">real</a> + x.<a class="code hl_variable" href="structcomplex64__t.html#a94037c0cf8451aaff7cb4d154a8426de">imag</a> * x.<a class="code hl_variable" href="structcomplex64__t.html#a94037c0cf8451aaff7cb4d154a8426de">imag</a>);</div>
|
|
<div class="line"><a id="l00318" name="l00318"></a><span class="lineno"> 318</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00319" name="l00319"></a><span class="lineno"> 319</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00320" name="l00320"></a><span class="lineno"> 320</span> </div>
|
|
<div class="foldopen" id="foldopen00321" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00321" name="l00321"></a><span class="lineno"><a class="line" href="struct_sin.html"> 321</a></span><span class="keyword">struct </span><a class="code hl_struct" href="struct_sin.html">Sin</a> {</div>
|
|
<div class="line"><a id="l00322" name="l00322"></a><span class="lineno"> 322</span> <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
|
<div class="foldopen" id="foldopen00323" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00323" name="l00323"></a><span class="lineno"><a class="line" href="struct_sin.html#a7caf98c777521fa5d5c6ddaaa3b779fd"> 323</a></span> T <a class="code hl_function" href="struct_sin.html#a7caf98c777521fa5d5c6ddaaa3b779fd">operator()</a>(T x) {</div>
|
|
<div class="line"><a id="l00324" name="l00324"></a><span class="lineno"> 324</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacemetal_1_1precise.html#a71acf77ffd29c56f56afae0195c98a1c">metal::precise::sin</a>(x);</div>
|
|
<div class="line"><a id="l00325" name="l00325"></a><span class="lineno"> 325</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00326" name="l00326"></a><span class="lineno"> 326</span> </div>
|
|
<div class="line"><a id="l00327" name="l00327"></a><span class="lineno"> 327</span> <span class="keyword">template</span> <></div>
|
|
<div class="foldopen" id="foldopen00328" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00328" name="l00328"></a><span class="lineno"><a class="line" href="struct_sin.html#aa510cf4595b6d49065ab6b602d8fcb14"> 328</a></span> <a class="code hl_struct" href="structcomplex64__t.html">complex64_t</a> <a class="code hl_function" href="struct_sin.html#aa510cf4595b6d49065ab6b602d8fcb14">operator()</a>(<a class="code hl_struct" href="structcomplex64__t.html">complex64_t</a> x) {</div>
|
|
<div class="line"><a id="l00329" name="l00329"></a><span class="lineno"> 329</span> <span class="keywordflow">return</span> {</div>
|
|
<div class="line"><a id="l00330" name="l00330"></a><span class="lineno"> 330</span> <a class="code hl_function" href="namespacemetal_1_1precise.html#a71acf77ffd29c56f56afae0195c98a1c">metal::precise::sin</a>(x.<a class="code hl_variable" href="structcomplex64__t.html#abbd4a0092eca9f112c1c5ae1a133a27e">real</a>) * <a class="code hl_function" href="namespacemetal_1_1precise.html#a72d86d508300a9b58f4ccbbe70da4fbc">metal::precise::cosh</a>(x.<a class="code hl_variable" href="structcomplex64__t.html#a94037c0cf8451aaff7cb4d154a8426de">imag</a>),</div>
|
|
<div class="line"><a id="l00331" name="l00331"></a><span class="lineno"> 331</span> <a class="code hl_function" href="namespacemetal_1_1precise.html#ac4941f62e7d8ab9d7cabbd967aa9f220">metal::precise::cos</a>(x.<a class="code hl_variable" href="structcomplex64__t.html#abbd4a0092eca9f112c1c5ae1a133a27e">real</a>) * <a class="code hl_function" href="namespacemetal_1_1precise.html#abc8f4f59dd6e7204ab5d84f0af96331c">metal::precise::sinh</a>(x.<a class="code hl_variable" href="structcomplex64__t.html#a94037c0cf8451aaff7cb4d154a8426de">imag</a>)};</div>
|
|
<div class="line"><a id="l00332" name="l00332"></a><span class="lineno"> 332</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00333" name="l00333"></a><span class="lineno"> 333</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00334" name="l00334"></a><span class="lineno"> 334</span> </div>
|
|
<div class="foldopen" id="foldopen00335" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00335" name="l00335"></a><span class="lineno"><a class="line" href="struct_sinh.html"> 335</a></span><span class="keyword">struct </span><a class="code hl_struct" href="struct_sinh.html">Sinh</a> {</div>
|
|
<div class="line"><a id="l00336" name="l00336"></a><span class="lineno"> 336</span> <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
|
<div class="foldopen" id="foldopen00337" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00337" name="l00337"></a><span class="lineno"><a class="line" href="struct_sinh.html#a02cf32bcf560657b9ee34fb1affed8e2"> 337</a></span> T <a class="code hl_function" href="struct_sinh.html#a02cf32bcf560657b9ee34fb1affed8e2">operator()</a>(T x) {</div>
|
|
<div class="line"><a id="l00338" name="l00338"></a><span class="lineno"> 338</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacemetal_1_1precise.html#abc8f4f59dd6e7204ab5d84f0af96331c">metal::precise::sinh</a>(x);</div>
|
|
<div class="line"><a id="l00339" name="l00339"></a><span class="lineno"> 339</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00340" name="l00340"></a><span class="lineno"> 340</span> </div>
|
|
<div class="line"><a id="l00341" name="l00341"></a><span class="lineno"> 341</span> <span class="keyword">template</span> <></div>
|
|
<div class="foldopen" id="foldopen00342" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00342" name="l00342"></a><span class="lineno"><a class="line" href="struct_sinh.html#a1f8ba1858d352ee68861cd6ea861af43"> 342</a></span> <a class="code hl_struct" href="structcomplex64__t.html">complex64_t</a> <a class="code hl_function" href="struct_sinh.html#a1f8ba1858d352ee68861cd6ea861af43">operator()</a>(<a class="code hl_struct" href="structcomplex64__t.html">complex64_t</a> x) {</div>
|
|
<div class="line"><a id="l00343" name="l00343"></a><span class="lineno"> 343</span> <span class="keywordflow">return</span> {</div>
|
|
<div class="line"><a id="l00344" name="l00344"></a><span class="lineno"> 344</span> <a class="code hl_function" href="namespacemetal_1_1precise.html#abc8f4f59dd6e7204ab5d84f0af96331c">metal::precise::sinh</a>(x.<a class="code hl_variable" href="structcomplex64__t.html#abbd4a0092eca9f112c1c5ae1a133a27e">real</a>) * <a class="code hl_function" href="namespacemetal_1_1precise.html#ac4941f62e7d8ab9d7cabbd967aa9f220">metal::precise::cos</a>(x.<a class="code hl_variable" href="structcomplex64__t.html#a94037c0cf8451aaff7cb4d154a8426de">imag</a>),</div>
|
|
<div class="line"><a id="l00345" name="l00345"></a><span class="lineno"> 345</span> <a class="code hl_function" href="namespacemetal_1_1precise.html#a72d86d508300a9b58f4ccbbe70da4fbc">metal::precise::cosh</a>(x.<a class="code hl_variable" href="structcomplex64__t.html#abbd4a0092eca9f112c1c5ae1a133a27e">real</a>) * <a class="code hl_function" href="namespacemetal_1_1precise.html#a71acf77ffd29c56f56afae0195c98a1c">metal::precise::sin</a>(x.<a class="code hl_variable" href="structcomplex64__t.html#a94037c0cf8451aaff7cb4d154a8426de">imag</a>)};</div>
|
|
<div class="line"><a id="l00346" name="l00346"></a><span class="lineno"> 346</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00347" name="l00347"></a><span class="lineno"> 347</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00348" name="l00348"></a><span class="lineno"> 348</span> </div>
|
|
<div class="foldopen" id="foldopen00349" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00349" name="l00349"></a><span class="lineno"><a class="line" href="struct_square.html"> 349</a></span><span class="keyword">struct </span><a class="code hl_struct" href="struct_square.html">Square</a> {</div>
|
|
<div class="line"><a id="l00350" name="l00350"></a><span class="lineno"> 350</span> <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
|
<div class="foldopen" id="foldopen00351" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00351" name="l00351"></a><span class="lineno"><a class="line" href="struct_square.html#afde739fc544e45dd30964c02dca94310"> 351</a></span> T <a class="code hl_function" href="struct_square.html#afde739fc544e45dd30964c02dca94310">operator()</a>(T x) {</div>
|
|
<div class="line"><a id="l00352" name="l00352"></a><span class="lineno"> 352</span> <span class="keywordflow">return</span> x * x;</div>
|
|
<div class="line"><a id="l00353" name="l00353"></a><span class="lineno"> 353</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00354" name="l00354"></a><span class="lineno"> 354</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00355" name="l00355"></a><span class="lineno"> 355</span> </div>
|
|
<div class="foldopen" id="foldopen00356" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00356" name="l00356"></a><span class="lineno"><a class="line" href="struct_sqrt.html"> 356</a></span><span class="keyword">struct </span><a class="code hl_struct" href="struct_sqrt.html">Sqrt</a> {</div>
|
|
<div class="line"><a id="l00357" name="l00357"></a><span class="lineno"> 357</span> <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
|
<div class="foldopen" id="foldopen00358" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00358" name="l00358"></a><span class="lineno"><a class="line" href="struct_sqrt.html#ab9b16d2b9b03a1c54190f4479a56a4ad"> 358</a></span> T <a class="code hl_function" href="struct_sqrt.html#ab9b16d2b9b03a1c54190f4479a56a4ad">operator()</a>(T x) {</div>
|
|
<div class="line"><a id="l00359" name="l00359"></a><span class="lineno"> 359</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacemetal_1_1precise.html#acb213467361cd2cab93a8d5ea1aa5bfd">metal::precise::sqrt</a>(x);</div>
|
|
<div class="line"><a id="l00360" name="l00360"></a><span class="lineno"> 360</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00361" name="l00361"></a><span class="lineno"> 361</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00362" name="l00362"></a><span class="lineno"> 362</span> </div>
|
|
<div class="foldopen" id="foldopen00363" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00363" name="l00363"></a><span class="lineno"><a class="line" href="struct_rsqrt.html"> 363</a></span><span class="keyword">struct </span><a class="code hl_struct" href="struct_rsqrt.html">Rsqrt</a> {</div>
|
|
<div class="line"><a id="l00364" name="l00364"></a><span class="lineno"> 364</span> <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
|
<div class="foldopen" id="foldopen00365" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00365" name="l00365"></a><span class="lineno"><a class="line" href="struct_rsqrt.html#ae16699fd829e40416436247a39233fda"> 365</a></span> T <a class="code hl_function" href="struct_rsqrt.html#ae16699fd829e40416436247a39233fda">operator()</a>(T x) {</div>
|
|
<div class="line"><a id="l00366" name="l00366"></a><span class="lineno"> 366</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacemetal_1_1precise.html#afb397b477745f12a44423934fa2b05ac">metal::precise::rsqrt</a>(x);</div>
|
|
<div class="line"><a id="l00367" name="l00367"></a><span class="lineno"> 367</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00368" name="l00368"></a><span class="lineno"> 368</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00369" name="l00369"></a><span class="lineno"> 369</span> </div>
|
|
<div class="foldopen" id="foldopen00370" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00370" name="l00370"></a><span class="lineno"><a class="line" href="struct_tan.html"> 370</a></span><span class="keyword">struct </span><a class="code hl_struct" href="struct_tan.html">Tan</a> {</div>
|
|
<div class="line"><a id="l00371" name="l00371"></a><span class="lineno"> 371</span> <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
|
<div class="foldopen" id="foldopen00372" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00372" name="l00372"></a><span class="lineno"><a class="line" href="struct_tan.html#a1e6fb8c691621c69cb9bd393de4f6e78"> 372</a></span> T <a class="code hl_function" href="struct_tan.html#a1e6fb8c691621c69cb9bd393de4f6e78">operator()</a>(T x) {</div>
|
|
<div class="line"><a id="l00373" name="l00373"></a><span class="lineno"> 373</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacemetal_1_1precise.html#a8261ed22f03122ef15b89512358acb1f">metal::precise::tan</a>(x);</div>
|
|
<div class="line"><a id="l00374" name="l00374"></a><span class="lineno"> 374</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00375" name="l00375"></a><span class="lineno"> 375</span> </div>
|
|
<div class="line"><a id="l00376" name="l00376"></a><span class="lineno"> 376</span> <span class="keyword">template</span> <></div>
|
|
<div class="foldopen" id="foldopen00377" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00377" name="l00377"></a><span class="lineno"><a class="line" href="struct_tan.html#a2ef120c9f92b0d2e9cec8389eda05724"> 377</a></span> <a class="code hl_struct" href="structcomplex64__t.html">complex64_t</a> <a class="code hl_function" href="struct_tan.html#a2ef120c9f92b0d2e9cec8389eda05724">operator()</a>(<a class="code hl_struct" href="structcomplex64__t.html">complex64_t</a> x) {</div>
|
|
<div class="line"><a id="l00378" name="l00378"></a><span class="lineno"> 378</span> <span class="keywordtype">float</span> tan_a = <a class="code hl_function" href="namespacemetal_1_1precise.html#a8261ed22f03122ef15b89512358acb1f">metal::precise::tan</a>(x.<a class="code hl_variable" href="structcomplex64__t.html#abbd4a0092eca9f112c1c5ae1a133a27e">real</a>);</div>
|
|
<div class="line"><a id="l00379" name="l00379"></a><span class="lineno"> 379</span> <span class="keywordtype">float</span> tanh_b = <a class="code hl_function" href="namespacemetal_1_1precise.html#a741c27a10cc968dd1e63473d9fcd8f99">metal::precise::tanh</a>(x.<a class="code hl_variable" href="structcomplex64__t.html#a94037c0cf8451aaff7cb4d154a8426de">imag</a>);</div>
|
|
<div class="line"><a id="l00380" name="l00380"></a><span class="lineno"> 380</span> <span class="keywordtype">float</span> t1 = tan_a * tanh_b;</div>
|
|
<div class="line"><a id="l00381" name="l00381"></a><span class="lineno"> 381</span> <span class="keywordtype">float</span> denom = 1. + t1 * t1;</div>
|
|
<div class="line"><a id="l00382" name="l00382"></a><span class="lineno"> 382</span> <span class="keywordflow">return</span> {(tan_a - tanh_b * t1) / denom, (tanh_b + tan_a * t1) / denom};</div>
|
|
<div class="line"><a id="l00383" name="l00383"></a><span class="lineno"> 383</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00384" name="l00384"></a><span class="lineno"> 384</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00385" name="l00385"></a><span class="lineno"> 385</span> </div>
|
|
<div class="foldopen" id="foldopen00386" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00386" name="l00386"></a><span class="lineno"><a class="line" href="struct_tanh.html"> 386</a></span><span class="keyword">struct </span><a class="code hl_struct" href="struct_tanh.html">Tanh</a> {</div>
|
|
<div class="line"><a id="l00387" name="l00387"></a><span class="lineno"> 387</span> <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
|
<div class="foldopen" id="foldopen00388" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00388" name="l00388"></a><span class="lineno"><a class="line" href="struct_tanh.html#adce11a7ad33226c6ecff34f46f5c45d7"> 388</a></span> T <a class="code hl_function" href="struct_tanh.html#adce11a7ad33226c6ecff34f46f5c45d7">operator()</a>(T x) {</div>
|
|
<div class="line"><a id="l00389" name="l00389"></a><span class="lineno"> 389</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacemetal_1_1precise.html#a741c27a10cc968dd1e63473d9fcd8f99">metal::precise::tanh</a>(x);</div>
|
|
<div class="line"><a id="l00390" name="l00390"></a><span class="lineno"> 390</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00391" name="l00391"></a><span class="lineno"> 391</span> </div>
|
|
<div class="line"><a id="l00392" name="l00392"></a><span class="lineno"> 392</span> <span class="keyword">template</span> <></div>
|
|
<div class="foldopen" id="foldopen00393" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00393" name="l00393"></a><span class="lineno"><a class="line" href="struct_tanh.html#aa8423b43c725bb4b88965a11e8cf20f6"> 393</a></span> <a class="code hl_struct" href="structcomplex64__t.html">complex64_t</a> <a class="code hl_function" href="struct_tanh.html#aa8423b43c725bb4b88965a11e8cf20f6">operator()</a>(<a class="code hl_struct" href="structcomplex64__t.html">complex64_t</a> x) {</div>
|
|
<div class="line"><a id="l00394" name="l00394"></a><span class="lineno"> 394</span> <span class="keywordtype">float</span> tanh_a = <a class="code hl_function" href="namespacemetal_1_1precise.html#a741c27a10cc968dd1e63473d9fcd8f99">metal::precise::tanh</a>(x.<a class="code hl_variable" href="structcomplex64__t.html#abbd4a0092eca9f112c1c5ae1a133a27e">real</a>);</div>
|
|
<div class="line"><a id="l00395" name="l00395"></a><span class="lineno"> 395</span> <span class="keywordtype">float</span> tan_b = <a class="code hl_function" href="namespacemetal_1_1precise.html#a8261ed22f03122ef15b89512358acb1f">metal::precise::tan</a>(x.<a class="code hl_variable" href="structcomplex64__t.html#a94037c0cf8451aaff7cb4d154a8426de">imag</a>);</div>
|
|
<div class="line"><a id="l00396" name="l00396"></a><span class="lineno"> 396</span> <span class="keywordtype">float</span> t1 = tanh_a * tan_b;</div>
|
|
<div class="line"><a id="l00397" name="l00397"></a><span class="lineno"> 397</span> <span class="keywordtype">float</span> denom = 1. + t1 * t1;</div>
|
|
<div class="line"><a id="l00398" name="l00398"></a><span class="lineno"> 398</span> <span class="keywordflow">return</span> {(tanh_a + tan_b * t1) / denom, (tan_b - tanh_a * t1) / denom};</div>
|
|
<div class="line"><a id="l00399" name="l00399"></a><span class="lineno"> 399</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00400" name="l00400"></a><span class="lineno"> 400</span>};</div>
|
|
</div>
|
|
<div class="ttc" id="abackend_2metal_2kernels_2utils_8h_html_a27c03f2f90ab56db2e4d59559a3d2e9a"><div class="ttname"><a href="backend_2metal_2kernels_2utils_8h.html#a27c03f2f90ab56db2e4d59559a3d2e9a">log1p</a></div><div class="ttdeci">float log1p(float x)</div><div class="ttdef"><b>Definition</b> utils.h:277</div></div>
|
|
<div class="ttc" id="aerf_8h_html"><div class="ttname"><a href="erf_8h.html">erf.h</a></div></div>
|
|
<div class="ttc" id="aerf_8h_html_a1846e0d683c7aff826bb32addcc3b885"><div class="ttname"><a href="erf_8h.html#a1846e0d683c7aff826bb32addcc3b885">erfinv</a></div><div class="ttdeci">float erfinv(float a)</div><div class="ttdef"><b>Definition</b> erf.h:42</div></div>
|
|
<div class="ttc" id="aerf_8h_html_a6ce199ee56105c67adbf8c48c019a8b2"><div class="ttname"><a href="erf_8h.html#a6ce199ee56105c67adbf8c48c019a8b2">erf</a></div><div class="ttdeci">float erf(float a)</div><div class="ttdef"><b>Definition</b> erf.h:11</div></div>
|
|
<div class="ttc" id="aexpm1f_8h_html"><div class="ttname"><a href="expm1f_8h.html">expm1f.h</a></div></div>
|
|
<div class="ttc" id="aexpm1f_8h_html_a87f66d30e185950f42ce3641783cdc40"><div class="ttname"><a href="expm1f_8h.html#a87f66d30e185950f42ce3641783cdc40">expm1f</a></div><div class="ttdeci">float expm1f(float a)</div><div class="ttdef"><b>Definition</b> expm1f.h:80</div></div>
|
|
<div class="ttc" id="anamespacemetal_1_1precise_html_a1f489fabffab969b8677b56bb1136067"><div class="ttname"><a href="namespacemetal_1_1precise.html#a1f489fabffab969b8677b56bb1136067">metal::precise::acosh</a></div><div class="ttdeci">METAL_FUNC bfloat16_t acosh(bfloat16_t x)</div><div class="ttdef"><b>Definition</b> bf16_math.h:252</div></div>
|
|
<div class="ttc" id="anamespacemetal_1_1precise_html_a341c2b8c27d1bed860f85f8b355023d4"><div class="ttname"><a href="namespacemetal_1_1precise.html#a341c2b8c27d1bed860f85f8b355023d4">metal::precise::log</a></div><div class="ttdeci">METAL_FUNC bfloat16_t log(bfloat16_t x)</div><div class="ttdef"><b>Definition</b> bf16_math.h:252</div></div>
|
|
<div class="ttc" id="anamespacemetal_1_1precise_html_a44239067e8e9248b1574353f98e94d72"><div class="ttname"><a href="namespacemetal_1_1precise.html#a44239067e8e9248b1574353f98e94d72">metal::precise::log10</a></div><div class="ttdeci">METAL_FUNC bfloat16_t log10(bfloat16_t x)</div><div class="ttdef"><b>Definition</b> bf16_math.h:252</div></div>
|
|
<div class="ttc" id="anamespacemetal_1_1precise_html_a632dbbdcc1a465cf4739a14306147573"><div class="ttname"><a href="namespacemetal_1_1precise.html#a632dbbdcc1a465cf4739a14306147573">metal::precise::log2</a></div><div class="ttdeci">METAL_FUNC bfloat16_t log2(bfloat16_t x)</div><div class="ttdef"><b>Definition</b> bf16_math.h:252</div></div>
|
|
<div class="ttc" id="anamespacemetal_1_1precise_html_a71acf77ffd29c56f56afae0195c98a1c"><div class="ttname"><a href="namespacemetal_1_1precise.html#a71acf77ffd29c56f56afae0195c98a1c">metal::precise::sin</a></div><div class="ttdeci">METAL_FUNC bfloat16_t sin(bfloat16_t x)</div><div class="ttdef"><b>Definition</b> bf16_math.h:252</div></div>
|
|
<div class="ttc" id="anamespacemetal_1_1precise_html_a72d86d508300a9b58f4ccbbe70da4fbc"><div class="ttname"><a href="namespacemetal_1_1precise.html#a72d86d508300a9b58f4ccbbe70da4fbc">metal::precise::cosh</a></div><div class="ttdeci">METAL_FUNC bfloat16_t cosh(bfloat16_t x)</div><div class="ttdef"><b>Definition</b> bf16_math.h:252</div></div>
|
|
<div class="ttc" id="anamespacemetal_1_1precise_html_a741c27a10cc968dd1e63473d9fcd8f99"><div class="ttname"><a href="namespacemetal_1_1precise.html#a741c27a10cc968dd1e63473d9fcd8f99">metal::precise::tanh</a></div><div class="ttdeci">METAL_FUNC bfloat16_t tanh(bfloat16_t x)</div><div class="ttdef"><b>Definition</b> bf16_math.h:252</div></div>
|
|
<div class="ttc" id="anamespacemetal_1_1precise_html_a8261ed22f03122ef15b89512358acb1f"><div class="ttname"><a href="namespacemetal_1_1precise.html#a8261ed22f03122ef15b89512358acb1f">metal::precise::tan</a></div><div class="ttdeci">METAL_FUNC bfloat16_t tan(bfloat16_t x)</div><div class="ttdef"><b>Definition</b> bf16_math.h:252</div></div>
|
|
<div class="ttc" id="anamespacemetal_1_1precise_html_a8a2bcc89fc0b7e74f0453f82f89a8604"><div class="ttname"><a href="namespacemetal_1_1precise.html#a8a2bcc89fc0b7e74f0453f82f89a8604">metal::precise::acos</a></div><div class="ttdeci">METAL_FUNC bfloat16_t acos(bfloat16_t x)</div><div class="ttdef"><b>Definition</b> bf16_math.h:252</div></div>
|
|
<div class="ttc" id="anamespacemetal_1_1precise_html_a8d8d2d5700ce432b33cf47cf22528e8f"><div class="ttname"><a href="namespacemetal_1_1precise.html#a8d8d2d5700ce432b33cf47cf22528e8f">metal::precise::exp</a></div><div class="ttdeci">METAL_FUNC bfloat16_t exp(bfloat16_t x)</div><div class="ttdef"><b>Definition</b> bf16_math.h:252</div></div>
|
|
<div class="ttc" id="anamespacemetal_1_1precise_html_a902994837653b90c47f4285673e712c4"><div class="ttname"><a href="namespacemetal_1_1precise.html#a902994837653b90c47f4285673e712c4">metal::precise::atanh</a></div><div class="ttdeci">METAL_FUNC bfloat16_t atanh(bfloat16_t x)</div><div class="ttdef"><b>Definition</b> bf16_math.h:252</div></div>
|
|
<div class="ttc" id="anamespacemetal_1_1precise_html_aaad1cdde6687c8011fbc5fda1bb13424"><div class="ttname"><a href="namespacemetal_1_1precise.html#aaad1cdde6687c8011fbc5fda1bb13424">metal::precise::asinh</a></div><div class="ttdeci">METAL_FUNC bfloat16_t asinh(bfloat16_t x)</div><div class="ttdef"><b>Definition</b> bf16_math.h:252</div></div>
|
|
<div class="ttc" id="anamespacemetal_1_1precise_html_aaaf4b5f4786a912089bbf0ae7619a6be"><div class="ttname"><a href="namespacemetal_1_1precise.html#aaaf4b5f4786a912089bbf0ae7619a6be">metal::precise::atan</a></div><div class="ttdeci">METAL_FUNC bfloat16_t atan(bfloat16_t y_over_x)</div><div class="ttdef"><b>Definition</b> bf16_math.h:252</div></div>
|
|
<div class="ttc" id="anamespacemetal_1_1precise_html_abc8f4f59dd6e7204ab5d84f0af96331c"><div class="ttname"><a href="namespacemetal_1_1precise.html#abc8f4f59dd6e7204ab5d84f0af96331c">metal::precise::sinh</a></div><div class="ttdeci">METAL_FUNC bfloat16_t sinh(bfloat16_t x)</div><div class="ttdef"><b>Definition</b> bf16_math.h:252</div></div>
|
|
<div class="ttc" id="anamespacemetal_1_1precise_html_ac4941f62e7d8ab9d7cabbd967aa9f220"><div class="ttname"><a href="namespacemetal_1_1precise.html#ac4941f62e7d8ab9d7cabbd967aa9f220">metal::precise::cos</a></div><div class="ttdeci">METAL_FUNC bfloat16_t cos(bfloat16_t x)</div><div class="ttdef"><b>Definition</b> bf16_math.h:252</div></div>
|
|
<div class="ttc" id="anamespacemetal_1_1precise_html_acb213467361cd2cab93a8d5ea1aa5bfd"><div class="ttname"><a href="namespacemetal_1_1precise.html#acb213467361cd2cab93a8d5ea1aa5bfd">metal::precise::sqrt</a></div><div class="ttdeci">METAL_FUNC bfloat16_t sqrt(bfloat16_t x)</div><div class="ttdef"><b>Definition</b> bf16_math.h:252</div></div>
|
|
<div class="ttc" id="anamespacemetal_1_1precise_html_adc7b8b6e12e320cb32030f728dcbf438"><div class="ttname"><a href="namespacemetal_1_1precise.html#adc7b8b6e12e320cb32030f728dcbf438">metal::precise::asin</a></div><div class="ttdeci">METAL_FUNC bfloat16_t asin(bfloat16_t x)</div><div class="ttdef"><b>Definition</b> bf16_math.h:252</div></div>
|
|
<div class="ttc" id="anamespacemetal_1_1precise_html_afb397b477745f12a44423934fa2b05ac"><div class="ttname"><a href="namespacemetal_1_1precise.html#afb397b477745f12a44423934fa2b05ac">metal::precise::rsqrt</a></div><div class="ttdeci">METAL_FUNC bfloat16_t rsqrt(bfloat16_t x)</div><div class="ttdef"><b>Definition</b> bf16_math.h:252</div></div>
|
|
<div class="ttc" id="anamespacemetal_html_a020790f30c28a9982c4a83deaa258277"><div class="ttname"><a href="namespacemetal.html#a020790f30c28a9982c4a83deaa258277">metal::floor</a></div><div class="ttdeci">METAL_FUNC bfloat16_t floor(bfloat16_t x)</div><div class="ttdef"><b>Definition</b> bf16_math.h:234</div></div>
|
|
<div class="ttc" id="anamespacemetal_html_a29ab6060527120eee745aec0daa06e01"><div class="ttname"><a href="namespacemetal.html#a29ab6060527120eee745aec0daa06e01">metal::rint</a></div><div class="ttdeci">METAL_FUNC bfloat16_t rint(bfloat16_t x)</div><div class="ttdef"><b>Definition</b> bf16_math.h:234</div></div>
|
|
<div class="ttc" id="anamespacemetal_html_a87c5122c60f9a12afceb9925a5b78ffb"><div class="ttname"><a href="namespacemetal.html#a87c5122c60f9a12afceb9925a5b78ffb">metal::abs</a></div><div class="ttdeci">METAL_FUNC bfloat16_t abs(bfloat16_t x)</div><div class="ttdef"><b>Definition</b> bf16_math.h:234</div></div>
|
|
<div class="ttc" id="anamespacemetal_html_ac2a0b3618d922ac014baac8189d44650"><div class="ttname"><a href="namespacemetal.html#ac2a0b3618d922ac014baac8189d44650">metal::exp</a></div><div class="ttdeci">METAL_FUNC bfloat16_t exp(bfloat16_t x)</div><div class="ttdef"><b>Definition</b> bf16_math.h:234</div></div>
|
|
<div class="ttc" id="anamespacemetal_html_ad63204d38bc01df6ffc64583f7886b3c"><div class="ttname"><a href="namespacemetal.html#ad63204d38bc01df6ffc64583f7886b3c">metal::ceil</a></div><div class="ttdeci">METAL_FUNC bfloat16_t ceil(bfloat16_t x)</div><div class="ttdef"><b>Definition</b> bf16_math.h:234</div></div>
|
|
<div class="ttc" id="astruct_abs_html"><div class="ttname"><a href="struct_abs.html">Abs</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:15</div></div>
|
|
<div class="ttc" id="astruct_abs_html_a0ca113fd036151c443df3f83cc667f28"><div class="ttname"><a href="struct_abs.html#a0ca113fd036151c443df3f83cc667f28">Abs::operator()</a></div><div class="ttdeci">uint8_t operator()(uint8_t x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:21</div></div>
|
|
<div class="ttc" id="astruct_abs_html_a99d2a2f37a6cddd3168b0224f2a9b963"><div class="ttname"><a href="struct_abs.html#a99d2a2f37a6cddd3168b0224f2a9b963">Abs::operator()</a></div><div class="ttdeci">uint32_t operator()(uint32_t x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:29</div></div>
|
|
<div class="ttc" id="astruct_abs_html_a9e7481dfcc162509769852026ff4a344"><div class="ttname"><a href="struct_abs.html#a9e7481dfcc162509769852026ff4a344">Abs::operator()</a></div><div class="ttdeci">T operator()(T x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:17</div></div>
|
|
<div class="ttc" id="astruct_abs_html_ab82917d6b30a2c579e7eb879d305c5fc"><div class="ttname"><a href="struct_abs.html#ab82917d6b30a2c579e7eb879d305c5fc">Abs::operator()</a></div><div class="ttdeci">complex64_t operator()(complex64_t x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:41</div></div>
|
|
<div class="ttc" id="astruct_abs_html_ac30835b27784d451bd2e4524c8eb9e11"><div class="ttname"><a href="struct_abs.html#ac30835b27784d451bd2e4524c8eb9e11">Abs::operator()</a></div><div class="ttdeci">bool operator()(bool x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:37</div></div>
|
|
<div class="ttc" id="astruct_abs_html_ac9cbc02422d930479303f240a7ea6c71"><div class="ttname"><a href="struct_abs.html#ac9cbc02422d930479303f240a7ea6c71">Abs::operator()</a></div><div class="ttdeci">uint64_t operator()(uint64_t x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:33</div></div>
|
|
<div class="ttc" id="astruct_abs_html_adaeab32a7e377dc990077ab15f3dc4c2"><div class="ttname"><a href="struct_abs.html#adaeab32a7e377dc990077ab15f3dc4c2">Abs::operator()</a></div><div class="ttdeci">uint16_t operator()(uint16_t x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:25</div></div>
|
|
<div class="ttc" id="astruct_arc_cos_html"><div class="ttname"><a href="struct_arc_cos.html">ArcCos</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:46</div></div>
|
|
<div class="ttc" id="astruct_arc_cos_html_a5553cecf58511e24e76ac97f2d90b9ac"><div class="ttname"><a href="struct_arc_cos.html#a5553cecf58511e24e76ac97f2d90b9ac">ArcCos::operator()</a></div><div class="ttdeci">T operator()(T x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:48</div></div>
|
|
<div class="ttc" id="astruct_arc_cosh_html"><div class="ttname"><a href="struct_arc_cosh.html">ArcCosh</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:53</div></div>
|
|
<div class="ttc" id="astruct_arc_cosh_html_a5c9e7712c14c97298b23ec48e19abc58"><div class="ttname"><a href="struct_arc_cosh.html#a5c9e7712c14c97298b23ec48e19abc58">ArcCosh::operator()</a></div><div class="ttdeci">T operator()(T x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:55</div></div>
|
|
<div class="ttc" id="astruct_arc_sin_html"><div class="ttname"><a href="struct_arc_sin.html">ArcSin</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:60</div></div>
|
|
<div class="ttc" id="astruct_arc_sin_html_a0343872f2da93bae2bb0baadf49da022"><div class="ttname"><a href="struct_arc_sin.html#a0343872f2da93bae2bb0baadf49da022">ArcSin::operator()</a></div><div class="ttdeci">T operator()(T x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:62</div></div>
|
|
<div class="ttc" id="astruct_arc_sinh_html"><div class="ttname"><a href="struct_arc_sinh.html">ArcSinh</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:67</div></div>
|
|
<div class="ttc" id="astruct_arc_sinh_html_a3066fb7dc7c3180100fb55ff94af6a7a"><div class="ttname"><a href="struct_arc_sinh.html#a3066fb7dc7c3180100fb55ff94af6a7a">ArcSinh::operator()</a></div><div class="ttdeci">T operator()(T x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:69</div></div>
|
|
<div class="ttc" id="astruct_arc_tan_html"><div class="ttname"><a href="struct_arc_tan.html">ArcTan</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:74</div></div>
|
|
<div class="ttc" id="astruct_arc_tan_html_af3a0aec6acec8ae8f5e4c4d5cf8c91ba"><div class="ttname"><a href="struct_arc_tan.html#af3a0aec6acec8ae8f5e4c4d5cf8c91ba">ArcTan::operator()</a></div><div class="ttdeci">T operator()(T x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:76</div></div>
|
|
<div class="ttc" id="astruct_arc_tanh_html"><div class="ttname"><a href="struct_arc_tanh.html">ArcTanh</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:81</div></div>
|
|
<div class="ttc" id="astruct_arc_tanh_html_a37dc3e01ec2830de7e82ed6c6363ac88"><div class="ttname"><a href="struct_arc_tanh.html#a37dc3e01ec2830de7e82ed6c6363ac88">ArcTanh::operator()</a></div><div class="ttdeci">T operator()(T x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:83</div></div>
|
|
<div class="ttc" id="astruct_ceil_html"><div class="ttname"><a href="struct_ceil.html">Ceil</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:88</div></div>
|
|
<div class="ttc" id="astruct_ceil_html_a2acb61bc658c7a216795e7f76ebcf98a"><div class="ttname"><a href="struct_ceil.html#a2acb61bc658c7a216795e7f76ebcf98a">Ceil::operator()</a></div><div class="ttdeci">int16_t operator()(int16_t x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:98</div></div>
|
|
<div class="ttc" id="astruct_ceil_html_a40de367e62f06ebd7e1330afa93a9ad9"><div class="ttname"><a href="struct_ceil.html#a40de367e62f06ebd7e1330afa93a9ad9">Ceil::operator()</a></div><div class="ttdeci">bool operator()(bool x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:126</div></div>
|
|
<div class="ttc" id="astruct_ceil_html_a411c75cc35cdc088402e176a1defd22d"><div class="ttname"><a href="struct_ceil.html#a411c75cc35cdc088402e176a1defd22d">Ceil::operator()</a></div><div class="ttdeci">uint32_t operator()(uint32_t x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:118</div></div>
|
|
<div class="ttc" id="astruct_ceil_html_a455cd8083ba859993077f2e078ae165b"><div class="ttname"><a href="struct_ceil.html#a455cd8083ba859993077f2e078ae165b">Ceil::operator()</a></div><div class="ttdeci">int8_t operator()(int8_t x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:94</div></div>
|
|
<div class="ttc" id="astruct_ceil_html_a5e2a4ef1b012f5d352064489156e5e44"><div class="ttname"><a href="struct_ceil.html#a5e2a4ef1b012f5d352064489156e5e44">Ceil::operator()</a></div><div class="ttdeci">T operator()(T x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:90</div></div>
|
|
<div class="ttc" id="astruct_ceil_html_a93d0110511ad5dd200e12d37a3d7d6e3"><div class="ttname"><a href="struct_ceil.html#a93d0110511ad5dd200e12d37a3d7d6e3">Ceil::operator()</a></div><div class="ttdeci">int64_t operator()(int64_t x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:106</div></div>
|
|
<div class="ttc" id="astruct_ceil_html_a9ac660ca29eef7a7429fceb7b917a68a"><div class="ttname"><a href="struct_ceil.html#a9ac660ca29eef7a7429fceb7b917a68a">Ceil::operator()</a></div><div class="ttdeci">uint64_t operator()(uint64_t x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:122</div></div>
|
|
<div class="ttc" id="astruct_ceil_html_aa335b745fa26e0f443cdb36298105484"><div class="ttname"><a href="struct_ceil.html#aa335b745fa26e0f443cdb36298105484">Ceil::operator()</a></div><div class="ttdeci">uint8_t operator()(uint8_t x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:110</div></div>
|
|
<div class="ttc" id="astruct_ceil_html_ade17e13b7f30f5c590fae1581a2013ac"><div class="ttname"><a href="struct_ceil.html#ade17e13b7f30f5c590fae1581a2013ac">Ceil::operator()</a></div><div class="ttdeci">uint16_t operator()(uint16_t x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:114</div></div>
|
|
<div class="ttc" id="astruct_ceil_html_aef8c37f7a8ee3fc80700d605a09891fb"><div class="ttname"><a href="struct_ceil.html#aef8c37f7a8ee3fc80700d605a09891fb">Ceil::operator()</a></div><div class="ttdeci">int32_t operator()(int32_t x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:102</div></div>
|
|
<div class="ttc" id="astruct_conjugate_html"><div class="ttname"><a href="struct_conjugate.html">Conjugate</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:159</div></div>
|
|
<div class="ttc" id="astruct_conjugate_html_acb0a2694285f1f57c7654b371ce8cbd8"><div class="ttname"><a href="struct_conjugate.html#acb0a2694285f1f57c7654b371ce8cbd8">Conjugate::operator()</a></div><div class="ttdeci">complex64_t operator()(complex64_t x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:160</div></div>
|
|
<div class="ttc" id="astruct_cos_html"><div class="ttname"><a href="struct_cos.html">Cos</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:131</div></div>
|
|
<div class="ttc" id="astruct_cos_html_a5f26feb1dcc4bec5f59a9ff511c5b163"><div class="ttname"><a href="struct_cos.html#a5f26feb1dcc4bec5f59a9ff511c5b163">Cos::operator()</a></div><div class="ttdeci">complex64_t operator()(complex64_t x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:138</div></div>
|
|
<div class="ttc" id="astruct_cos_html_ae222f8710f6b8254c471ebd475aa5bda"><div class="ttname"><a href="struct_cos.html#ae222f8710f6b8254c471ebd475aa5bda">Cos::operator()</a></div><div class="ttdeci">T operator()(T x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:133</div></div>
|
|
<div class="ttc" id="astruct_cosh_html"><div class="ttname"><a href="struct_cosh.html">Cosh</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:145</div></div>
|
|
<div class="ttc" id="astruct_cosh_html_a5847ebeebb236fdc926798ddc16475ba"><div class="ttname"><a href="struct_cosh.html#a5847ebeebb236fdc926798ddc16475ba">Cosh::operator()</a></div><div class="ttdeci">T operator()(T x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:147</div></div>
|
|
<div class="ttc" id="astruct_cosh_html_aefdd91298dac16d528d29ee47e2f7252"><div class="ttname"><a href="struct_cosh.html#aefdd91298dac16d528d29ee47e2f7252">Cosh::operator()</a></div><div class="ttdeci">complex64_t operator()(complex64_t x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:152</div></div>
|
|
<div class="ttc" id="astruct_erf_html"><div class="ttname"><a href="struct_erf.html">Erf</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:165</div></div>
|
|
<div class="ttc" id="astruct_erf_html_a80719402ad7f7d418859a6677d7b604d"><div class="ttname"><a href="struct_erf.html#a80719402ad7f7d418859a6677d7b604d">Erf::operator()</a></div><div class="ttdeci">T operator()(T x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:167</div></div>
|
|
<div class="ttc" id="astruct_erf_inv_html"><div class="ttname"><a href="struct_erf_inv.html">ErfInv</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:172</div></div>
|
|
<div class="ttc" id="astruct_erf_inv_html_afbf3668d1a512e889f093a0bc7673309"><div class="ttname"><a href="struct_erf_inv.html#afbf3668d1a512e889f093a0bc7673309">ErfInv::operator()</a></div><div class="ttdeci">T operator()(T x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:174</div></div>
|
|
<div class="ttc" id="astruct_exp_html"><div class="ttname"><a href="struct_exp.html">Exp</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:179</div></div>
|
|
<div class="ttc" id="astruct_exp_html_a2b341ac400c4d145397950eb60734336"><div class="ttname"><a href="struct_exp.html#a2b341ac400c4d145397950eb60734336">Exp::operator()</a></div><div class="ttdeci">complex64_t operator()(complex64_t x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:185</div></div>
|
|
<div class="ttc" id="astruct_exp_html_a5ef395868e055348c0802fd5fe45669c"><div class="ttname"><a href="struct_exp.html#a5ef395868e055348c0802fd5fe45669c">Exp::operator()</a></div><div class="ttdeci">T operator()(T x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:181</div></div>
|
|
<div class="ttc" id="astruct_expm1_html"><div class="ttname"><a href="struct_expm1.html">Expm1</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:191</div></div>
|
|
<div class="ttc" id="astruct_expm1_html_a4b834d42cf0b84daf03fec62c222091a"><div class="ttname"><a href="struct_expm1.html#a4b834d42cf0b84daf03fec62c222091a">Expm1::operator()</a></div><div class="ttdeci">T operator()(T x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:193</div></div>
|
|
<div class="ttc" id="astruct_floor_html"><div class="ttname"><a href="struct_floor.html">Floor</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:198</div></div>
|
|
<div class="ttc" id="astruct_floor_html_a10d7fd05b4c224c9f135451246d13014"><div class="ttname"><a href="struct_floor.html#a10d7fd05b4c224c9f135451246d13014">Floor::operator()</a></div><div class="ttdeci">int8_t operator()(int8_t x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:204</div></div>
|
|
<div class="ttc" id="astruct_floor_html_a2865a04a492e3590302f4bd3215a10d7"><div class="ttname"><a href="struct_floor.html#a2865a04a492e3590302f4bd3215a10d7">Floor::operator()</a></div><div class="ttdeci">int16_t operator()(int16_t x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:208</div></div>
|
|
<div class="ttc" id="astruct_floor_html_a41012343ff0463ec44b4d06196f41182"><div class="ttname"><a href="struct_floor.html#a41012343ff0463ec44b4d06196f41182">Floor::operator()</a></div><div class="ttdeci">int32_t operator()(int32_t x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:212</div></div>
|
|
<div class="ttc" id="astruct_floor_html_a78969b9e2b53ae248e72a67259eea5d8"><div class="ttname"><a href="struct_floor.html#a78969b9e2b53ae248e72a67259eea5d8">Floor::operator()</a></div><div class="ttdeci">uint16_t operator()(uint16_t x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:224</div></div>
|
|
<div class="ttc" id="astruct_floor_html_a7d04b83c3345cd867315cae2d7ff68ab"><div class="ttname"><a href="struct_floor.html#a7d04b83c3345cd867315cae2d7ff68ab">Floor::operator()</a></div><div class="ttdeci">uint64_t operator()(uint64_t x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:232</div></div>
|
|
<div class="ttc" id="astruct_floor_html_a959009320ed622ed45b39becab1d5b98"><div class="ttname"><a href="struct_floor.html#a959009320ed622ed45b39becab1d5b98">Floor::operator()</a></div><div class="ttdeci">uint32_t operator()(uint32_t x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:228</div></div>
|
|
<div class="ttc" id="astruct_floor_html_aae3181d15856796aa0628cf30c92aa2e"><div class="ttname"><a href="struct_floor.html#aae3181d15856796aa0628cf30c92aa2e">Floor::operator()</a></div><div class="ttdeci">int64_t operator()(int64_t x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:216</div></div>
|
|
<div class="ttc" id="astruct_floor_html_abea845fe5e8e6b93bd4bca8717337e0b"><div class="ttname"><a href="struct_floor.html#abea845fe5e8e6b93bd4bca8717337e0b">Floor::operator()</a></div><div class="ttdeci">bool operator()(bool x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:236</div></div>
|
|
<div class="ttc" id="astruct_floor_html_ac6cf38d82c8e270911afdca4c69ad51b"><div class="ttname"><a href="struct_floor.html#ac6cf38d82c8e270911afdca4c69ad51b">Floor::operator()</a></div><div class="ttdeci">uint8_t operator()(uint8_t x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:220</div></div>
|
|
<div class="ttc" id="astruct_floor_html_ace3551f28429081e9f3a3dab0c84212b"><div class="ttname"><a href="struct_floor.html#ace3551f28429081e9f3a3dab0c84212b">Floor::operator()</a></div><div class="ttdeci">T operator()(T x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:200</div></div>
|
|
<div class="ttc" id="astruct_log10_html"><div class="ttname"><a href="struct_log10.html">Log10</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:255</div></div>
|
|
<div class="ttc" id="astruct_log10_html_ac596a74c1642a00f3eced07ee3334122"><div class="ttname"><a href="struct_log10.html#ac596a74c1642a00f3eced07ee3334122">Log10::operator()</a></div><div class="ttdeci">T operator()(T x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:257</div></div>
|
|
<div class="ttc" id="astruct_log1p_html"><div class="ttname"><a href="struct_log1p.html">Log1p</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:262</div></div>
|
|
<div class="ttc" id="astruct_log1p_html_a4464c6e7bdbe55ffd7d961c695cd13ce"><div class="ttname"><a href="struct_log1p.html#a4464c6e7bdbe55ffd7d961c695cd13ce">Log1p::operator()</a></div><div class="ttdeci">T operator()(T x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:264</div></div>
|
|
<div class="ttc" id="astruct_log2_html"><div class="ttname"><a href="struct_log2.html">Log2</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:248</div></div>
|
|
<div class="ttc" id="astruct_log2_html_ac1e067ecdcbdbffb6106e789c2b98b64"><div class="ttname"><a href="struct_log2.html#ac1e067ecdcbdbffb6106e789c2b98b64">Log2::operator()</a></div><div class="ttdeci">T operator()(T x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:250</div></div>
|
|
<div class="ttc" id="astruct_log_html"><div class="ttname"><a href="struct_log.html">Log</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:241</div></div>
|
|
<div class="ttc" id="astruct_log_html_a32a383cb6be06e616a75f23bf49089c3"><div class="ttname"><a href="struct_log.html#a32a383cb6be06e616a75f23bf49089c3">Log::operator()</a></div><div class="ttdeci">T operator()(T x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:243</div></div>
|
|
<div class="ttc" id="astruct_logical_not_html"><div class="ttname"><a href="struct_logical_not.html">LogicalNot</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:269</div></div>
|
|
<div class="ttc" id="astruct_logical_not_html_a8a620bac957ab8c09ac85adfddd96708"><div class="ttname"><a href="struct_logical_not.html#a8a620bac957ab8c09ac85adfddd96708">LogicalNot::operator()</a></div><div class="ttdeci">T operator()(T x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:271</div></div>
|
|
<div class="ttc" id="astruct_negative_html"><div class="ttname"><a href="struct_negative.html">Negative</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:276</div></div>
|
|
<div class="ttc" id="astruct_negative_html_af6879b374314a559faa321e8cce3d710"><div class="ttname"><a href="struct_negative.html#af6879b374314a559faa321e8cce3d710">Negative::operator()</a></div><div class="ttdeci">T operator()(T x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:278</div></div>
|
|
<div class="ttc" id="astruct_round_html"><div class="ttname"><a href="struct_round.html">Round</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:283</div></div>
|
|
<div class="ttc" id="astruct_round_html_aa06a0195867e2ceb679c403b6909a1c4"><div class="ttname"><a href="struct_round.html#aa06a0195867e2ceb679c403b6909a1c4">Round::operator()</a></div><div class="ttdeci">T operator()(T x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:285</div></div>
|
|
<div class="ttc" id="astruct_round_html_ad3a08f2276ff1033900bc0a7da812655"><div class="ttname"><a href="struct_round.html#ad3a08f2276ff1033900bc0a7da812655">Round::operator()</a></div><div class="ttdeci">complex64_t operator()(complex64_t x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:289</div></div>
|
|
<div class="ttc" id="astruct_rsqrt_html"><div class="ttname"><a href="struct_rsqrt.html">Rsqrt</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:363</div></div>
|
|
<div class="ttc" id="astruct_rsqrt_html_ae16699fd829e40416436247a39233fda"><div class="ttname"><a href="struct_rsqrt.html#ae16699fd829e40416436247a39233fda">Rsqrt::operator()</a></div><div class="ttdeci">T operator()(T x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:365</div></div>
|
|
<div class="ttc" id="astruct_sigmoid_html"><div class="ttname"><a href="struct_sigmoid.html">Sigmoid</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:294</div></div>
|
|
<div class="ttc" id="astruct_sigmoid_html_a75a24cd75cb4d4c9a072811b2d70ad55"><div class="ttname"><a href="struct_sigmoid.html#a75a24cd75cb4d4c9a072811b2d70ad55">Sigmoid::operator()</a></div><div class="ttdeci">T operator()(T x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:296</div></div>
|
|
<div class="ttc" id="astruct_sign_html"><div class="ttname"><a href="struct_sign.html">Sign</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:302</div></div>
|
|
<div class="ttc" id="astruct_sign_html_aa3304c6b43bcad53061614b741d8403c"><div class="ttname"><a href="struct_sign.html#aa3304c6b43bcad53061614b741d8403c">Sign::operator()</a></div><div class="ttdeci">T operator()(T x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:304</div></div>
|
|
<div class="ttc" id="astruct_sign_html_ac48992b675b8b28be1e27e1f2ec5d2f7"><div class="ttname"><a href="struct_sign.html#ac48992b675b8b28be1e27e1f2ec5d2f7">Sign::operator()</a></div><div class="ttdeci">uint32_t operator()(uint32_t x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:308</div></div>
|
|
<div class="ttc" id="astruct_sign_html_ae07a4249e1b61419a3b9ca6c337b7bb5"><div class="ttname"><a href="struct_sign.html#ae07a4249e1b61419a3b9ca6c337b7bb5">Sign::operator()</a></div><div class="ttdeci">complex64_t operator()(complex64_t x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:312</div></div>
|
|
<div class="ttc" id="astruct_sin_html"><div class="ttname"><a href="struct_sin.html">Sin</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:321</div></div>
|
|
<div class="ttc" id="astruct_sin_html_a7caf98c777521fa5d5c6ddaaa3b779fd"><div class="ttname"><a href="struct_sin.html#a7caf98c777521fa5d5c6ddaaa3b779fd">Sin::operator()</a></div><div class="ttdeci">T operator()(T x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:323</div></div>
|
|
<div class="ttc" id="astruct_sin_html_aa510cf4595b6d49065ab6b602d8fcb14"><div class="ttname"><a href="struct_sin.html#aa510cf4595b6d49065ab6b602d8fcb14">Sin::operator()</a></div><div class="ttdeci">complex64_t operator()(complex64_t x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:328</div></div>
|
|
<div class="ttc" id="astruct_sinh_html"><div class="ttname"><a href="struct_sinh.html">Sinh</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:335</div></div>
|
|
<div class="ttc" id="astruct_sinh_html_a02cf32bcf560657b9ee34fb1affed8e2"><div class="ttname"><a href="struct_sinh.html#a02cf32bcf560657b9ee34fb1affed8e2">Sinh::operator()</a></div><div class="ttdeci">T operator()(T x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:337</div></div>
|
|
<div class="ttc" id="astruct_sinh_html_a1f8ba1858d352ee68861cd6ea861af43"><div class="ttname"><a href="struct_sinh.html#a1f8ba1858d352ee68861cd6ea861af43">Sinh::operator()</a></div><div class="ttdeci">complex64_t operator()(complex64_t x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:342</div></div>
|
|
<div class="ttc" id="astruct_sqrt_html"><div class="ttname"><a href="struct_sqrt.html">Sqrt</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:356</div></div>
|
|
<div class="ttc" id="astruct_sqrt_html_ab9b16d2b9b03a1c54190f4479a56a4ad"><div class="ttname"><a href="struct_sqrt.html#ab9b16d2b9b03a1c54190f4479a56a4ad">Sqrt::operator()</a></div><div class="ttdeci">T operator()(T x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:358</div></div>
|
|
<div class="ttc" id="astruct_square_html"><div class="ttname"><a href="struct_square.html">Square</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:349</div></div>
|
|
<div class="ttc" id="astruct_square_html_afde739fc544e45dd30964c02dca94310"><div class="ttname"><a href="struct_square.html#afde739fc544e45dd30964c02dca94310">Square::operator()</a></div><div class="ttdeci">T operator()(T x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:351</div></div>
|
|
<div class="ttc" id="astruct_tan_html"><div class="ttname"><a href="struct_tan.html">Tan</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:370</div></div>
|
|
<div class="ttc" id="astruct_tan_html_a1e6fb8c691621c69cb9bd393de4f6e78"><div class="ttname"><a href="struct_tan.html#a1e6fb8c691621c69cb9bd393de4f6e78">Tan::operator()</a></div><div class="ttdeci">T operator()(T x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:372</div></div>
|
|
<div class="ttc" id="astruct_tan_html_a2ef120c9f92b0d2e9cec8389eda05724"><div class="ttname"><a href="struct_tan.html#a2ef120c9f92b0d2e9cec8389eda05724">Tan::operator()</a></div><div class="ttdeci">complex64_t operator()(complex64_t x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:377</div></div>
|
|
<div class="ttc" id="astruct_tanh_html"><div class="ttname"><a href="struct_tanh.html">Tanh</a></div><div class="ttdef"><b>Definition</b> unary_ops.h:386</div></div>
|
|
<div class="ttc" id="astruct_tanh_html_aa8423b43c725bb4b88965a11e8cf20f6"><div class="ttname"><a href="struct_tanh.html#aa8423b43c725bb4b88965a11e8cf20f6">Tanh::operator()</a></div><div class="ttdeci">complex64_t operator()(complex64_t x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:393</div></div>
|
|
<div class="ttc" id="astruct_tanh_html_adce11a7ad33226c6ecff34f46f5c45d7"><div class="ttname"><a href="struct_tanh.html#adce11a7ad33226c6ecff34f46f5c45d7">Tanh::operator()</a></div><div class="ttdeci">T operator()(T x)</div><div class="ttdef"><b>Definition</b> unary_ops.h:388</div></div>
|
|
<div class="ttc" id="astructcomplex64__t_html"><div class="ttname"><a href="structcomplex64__t.html">complex64_t</a></div><div class="ttdef"><b>Definition</b> complex.h:20</div></div>
|
|
<div class="ttc" id="astructcomplex64__t_html_a94037c0cf8451aaff7cb4d154a8426de"><div class="ttname"><a href="structcomplex64__t.html#a94037c0cf8451aaff7cb4d154a8426de">complex64_t::imag</a></div><div class="ttdeci">float imag</div><div class="ttdef"><b>Definition</b> complex.h:22</div></div>
|
|
<div class="ttc" id="astructcomplex64__t_html_abbd4a0092eca9f112c1c5ae1a133a27e"><div class="ttname"><a href="structcomplex64__t.html#abbd4a0092eca9f112c1c5ae1a133a27e">complex64_t::real</a></div><div class="ttdeci">float real</div><div class="ttdef"><b>Definition</b> complex.h:21</div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.12.0
|
|
</small></address>
|
|
</div><!-- doc-content -->
|
|
</body>
|
|
</html>
|