255 lines
39 KiB
HTML
255 lines
39 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.8.17"/>
|
|
<meta name="description" content="PhasicFlow is an open-source parallel DEM (discrete element method) package for simulating granular flow. It is developed in C++ and can be exectued on both GPU (like CUDA) and CPU.">
|
|
<title>PhasicFlow: src/phasicFlow/types/triple/tripleMath.hpp Source File</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="navtree.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="resize.js"></script>
|
|
<script type="text/javascript" src="navtreedata.js"></script>
|
|
<script type="text/javascript" src="navtree.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>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(document).ready(function() { init_search(); });
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/x-mathjax-config">
|
|
MathJax.Hub.Config({
|
|
extensions: ["tex2jax.js"],
|
|
jax: ["input/TeX","output/HTML-CSS"],
|
|
});
|
|
</script>
|
|
<script type="text/javascript" async="async" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
<link href="customdoxygen.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" >
|
|
<tbody>
|
|
<tr>
|
|
<td id="projectlogo"><a href="https://github.com/PhasicFlow"><img alt="Logo" src="phasicFlow_logo.png"></a></td>
|
|
<td> <div id="MSearchBox" class="MSearchBoxInactive">
|
|
<span class="left">
|
|
<img id="MSearchSelect" src="search/mag_sel.png"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
alt=""/>
|
|
<input type="text" id="MSearchField" value="Search" accesskey="S"
|
|
onfocus="searchBox.OnSearchFieldFocus(true)"
|
|
onblur="searchBox.OnSearchFieldFocus(false)"
|
|
onkeyup="searchBox.OnSearchFieldChange(event)"/>
|
|
</span><span class="right">
|
|
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
|
|
</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td id="projectbrief">
|
|
<a href="https://https://cemf.ir">www.cemf.ir</a>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.17 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
/* @license-end */
|
|
</script>
|
|
</div><!-- top -->
|
|
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
|
<div id="nav-tree">
|
|
<div id="nav-tree-contents">
|
|
<div id="nav-sync" class="sync"></div>
|
|
</div>
|
|
</div>
|
|
<div id="splitbar" style="-moz-user-select:none;"
|
|
class="ui-resizable-handle">
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(document).ready(function(){initNavTree('tripleMath_8hpp_source.html',''); initResizable(); });
|
|
/* @license-end */
|
|
</script>
|
|
<div id="doc-content">
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">tripleMath.hpp</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="tripleMath_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*------------------------------- phasicFlow ---------------------------------</span></div>
|
|
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> O C enter of</span></div>
|
|
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> O O E ngineering and</span></div>
|
|
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> O O M ultiscale modeling of</span></div>
|
|
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> OOOOOOO F luid flow</span></div>
|
|
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> Copyright (C): www.cemf.ir</span></div>
|
|
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> email: hamid.r.norouzi AT gmail.com</span></div>
|
|
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">Licence:</span></div>
|
|
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> This file is part of phasicFlow code. It is a free software for simulating</span></div>
|
|
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> granular and multiphase flows. You can redistribute it and/or modify it under</span></div>
|
|
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> the terms of GNU General Public License v3 or any other later versions.</span></div>
|
|
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> phasicFlow is distributed to help others in their research in the field of</span></div>
|
|
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> granular and multiphase flows, but WITHOUT ANY WARRANTY; without even the</span></div>
|
|
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.</span></div>
|
|
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment">-----------------------------------------------------------------------------*/</span></div>
|
|
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  </div>
|
|
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="keyword">namespace </span><a class="code" href="namespacepFlow.html">pFlow</a></div>
|
|
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  </div>
|
|
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> {</div>
|
|
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  </div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="tripleMath_8hpp.html#a100b50a458ede943b573178d00ca43be"> 25</a></span> <span class="preprocessor">#define T3Func(fnName) \</span></div>
|
|
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor"> template<typename T> \</span></div>
|
|
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor"> INLINE_FUNCTION_HD triple<T> fnName(const triple<T>& v) \</span></div>
|
|
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor"> { \</span></div>
|
|
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor"> return triple<T>(fnName(v.x_), fnName(v.y_), fnName(v.z_)); \</span></div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor"> }</span></div>
|
|
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  </div>
|
|
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="tripleMath_8hpp.html#a063a658b212daa7375e77de516af1087"> 32</a></span> <span class="preprocessor">#define T3Func2(fnName) \</span></div>
|
|
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor"> template<typename T> \</span></div>
|
|
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor"> INLINE_FUNCTION_HD triple<T> fnName( \</span></div>
|
|
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor"> const triple<T>& arg1, const triple<T>& arg2 \</span></div>
|
|
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="preprocessor"> ) \</span></div>
|
|
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="preprocessor"> { \</span></div>
|
|
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="preprocessor"> return triple<T>( \</span></div>
|
|
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="preprocessor"> fnName(arg1.x_, arg2.x_), \</span></div>
|
|
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="preprocessor"> fnName(arg1.y_, arg2.y_), \</span></div>
|
|
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="preprocessor"> fnName(arg1.z_, arg2.z_) \</span></div>
|
|
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="preprocessor"> ); \</span></div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="preprocessor"> }</span></div>
|
|
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  </div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="comment">//* * * * * * * * * * * List of functinos * * * * * * * * //</span></div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="comment">// abs, mod, exp, log, log10, pow, sqrt, cbrt</span></div>
|
|
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="comment">// sin, cos, tan, asin, acos, atan, atan2</span></div>
|
|
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="comment">// sinh, cosh, tanh, asinh, acosh, atanh</span></div>
|
|
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="comment">// min, max</span></div>
|
|
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="comment">//* * * * * * * * * * * * * * * * * * * * * * * * * * * * //</span></div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  </div>
|
|
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="namespacepFlow.html#a5894dd516f775f6d59ec039ac3f72520"> 52</a></span> <a class="code" href="tripleMath_8hpp.html#a100b50a458ede943b573178d00ca43be">T3Func</a>(<a class="code" href="namespacepFlow.html#a11091cf542ebb711e64d680ee05b311c">abs</a>);</div>
|
|
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="namespacepFlow.html#adc52ebc344800b06234295527541990a"> 53</a></span> <a class="code" href="tripleMath_8hpp.html#a063a658b212daa7375e77de516af1087">T3Func2</a>(<a class="code" href="namespacepFlow.html#abd1e3fc690eeab567d6d110a989bab26">mod</a>);</div>
|
|
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="namespacepFlow.html#a9314c5590465031147eedc0b2bd6e5a3"> 54</a></span> <a class="code" href="tripleMath_8hpp.html#a100b50a458ede943b573178d00ca43be">T3Func</a>(<a class="code" href="namespacepFlow.html#a26eee5e026a2a0badac2a4c563710226">exp</a>);</div>
|
|
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="namespacepFlow.html#a0e5d0a9f4f0f4dbd6242e5cef35763aa"> 55</a></span> <a class="code" href="tripleMath_8hpp.html#a100b50a458ede943b573178d00ca43be">T3Func</a>(<a class="code" href="namespacepFlow.html#a049f17117180c922d3a418fea0f1c4b4">log</a>);</div>
|
|
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="namespacepFlow.html#ae21257cf86638951fd576f88f079aaeb"> 56</a></span> <a class="code" href="tripleMath_8hpp.html#a100b50a458ede943b573178d00ca43be">T3Func</a>(<a class="code" href="namespacepFlow.html#a8e9735c17f6aee5dc750abd4a0e5a6ac">log10</a>);</div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="namespacepFlow.html#a46a2d9e05f26f4cf363742d36a690b8c"> 57</a></span> <a class="code" href="tripleMath_8hpp.html#a063a658b212daa7375e77de516af1087">T3Func2</a>(<a class="code" href="namespacepFlow.html#a68649a07973f2ed86e65754aec1aa7f4">pow</a>);</div>
|
|
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="namespacepFlow.html#a59ca8f5c6f576ea8ba6e99210c45a8af"> 58</a></span> <a class="code" href="tripleMath_8hpp.html#a100b50a458ede943b573178d00ca43be">T3Func</a>(<a class="code" href="namespacepFlow.html#a496bce895c9a3f6202f9272233be5cb3">sqrt</a>);</div>
|
|
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="namespacepFlow.html#ae936f4d2d64d555ec5a52c4dea05e40c"> 59</a></span> <a class="code" href="tripleMath_8hpp.html#a100b50a458ede943b573178d00ca43be">T3Func</a>(<a class="code" href="namespacepFlow.html#a4c86b45df10882a1de3849b7297206de">cbrt</a>);</div>
|
|
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="namespacepFlow.html#a1988927bde60dd3ead6dc162befb4f2a"> 60</a></span> <a class="code" href="tripleMath_8hpp.html#a100b50a458ede943b573178d00ca43be">T3Func</a>(<a class="code" href="namespacepFlow.html#a584964ed1f1cf8770e18c3c4f12eb676">sin</a>);</div>
|
|
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="namespacepFlow.html#af864f63106083ec185574c7304479c24"> 61</a></span> <a class="code" href="tripleMath_8hpp.html#a100b50a458ede943b573178d00ca43be">T3Func</a>(<a class="code" href="namespacepFlow.html#a06661e4b8d137f54b8d5e661a4fd2503">cos</a>);</div>
|
|
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="namespacepFlow.html#a11cd3aaa6ff3b0eec3c3fe32ffb9c830"> 62</a></span> <a class="code" href="tripleMath_8hpp.html#a100b50a458ede943b573178d00ca43be">T3Func</a>(<a class="code" href="namespacepFlow.html#a8cff3c48726f7c4a96c5eda47950612c">tan</a>);</div>
|
|
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="namespacepFlow.html#a56decff959b30c50124d754b64bce6de"> 63</a></span> <a class="code" href="tripleMath_8hpp.html#a100b50a458ede943b573178d00ca43be">T3Func</a>(<a class="code" href="namespacepFlow.html#ad4414b2aa1afd740489411547b841848">asin</a>);</div>
|
|
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="namespacepFlow.html#a5c1632e47aa8c63b0fd23829b647f43c"> 64</a></span> <a class="code" href="tripleMath_8hpp.html#a100b50a458ede943b573178d00ca43be">T3Func</a>(<a class="code" href="namespacepFlow.html#a9e0dee6ee12464df02677bff9125ba7b">acos</a>);</div>
|
|
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="namespacepFlow.html#a3631ae4dc27b39b0c5bc7c0329d20d82"> 65</a></span> <a class="code" href="tripleMath_8hpp.html#a100b50a458ede943b573178d00ca43be">T3Func</a>(<a class="code" href="namespacepFlow.html#a33bc515a235287da7238fdbda2fa855d">atan</a>);</div>
|
|
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="namespacepFlow.html#a104427f6c42523b07e78b8ac4a31967e"> 66</a></span> <a class="code" href="tripleMath_8hpp.html#a063a658b212daa7375e77de516af1087">T3Func2</a>(<a class="code" href="namespacepFlow.html#a562f1f965b09ea86d590ea3968973a18">atan2</a>);</div>
|
|
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="namespacepFlow.html#a71871bafa77925b41508b95c0dee745c"> 67</a></span> <a class="code" href="tripleMath_8hpp.html#a100b50a458ede943b573178d00ca43be">T3Func</a>(<a class="code" href="namespacepFlow.html#ab2f719382faef198fb3fa041d7d2b829">sinh</a>);</div>
|
|
<div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="namespacepFlow.html#a42300b89c9e0144ca50e529820ef8ac3"> 68</a></span> <a class="code" href="tripleMath_8hpp.html#a100b50a458ede943b573178d00ca43be">T3Func</a>(<a class="code" href="namespacepFlow.html#aabcf0fc5e8be30eb3d9927990a3f4f52">cosh</a>);</div>
|
|
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="namespacepFlow.html#a3013a52753f30fa7150eac2ea1f335d4"> 69</a></span> <a class="code" href="tripleMath_8hpp.html#a100b50a458ede943b573178d00ca43be">T3Func</a>(<a class="code" href="namespacepFlow.html#a98eab581ce102ca53f3c9e401e853db9">tanh</a>);</div>
|
|
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="namespacepFlow.html#a1593898c633bb3c7ed65b144aefc0934"> 70</a></span> <a class="code" href="tripleMath_8hpp.html#a100b50a458ede943b573178d00ca43be">T3Func</a>(<a class="code" href="namespacepFlow.html#acc1f506bd01a14c20ad097e879774524">asinh</a>);</div>
|
|
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="namespacepFlow.html#a97f51c223d377da889a25eb258475509"> 71</a></span> <a class="code" href="tripleMath_8hpp.html#a100b50a458ede943b573178d00ca43be">T3Func</a>(<a class="code" href="namespacepFlow.html#aeb6eeab26c399de3159d0546b430efc6">acosh</a>);</div>
|
|
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="namespacepFlow.html#a1179a2905c0e3322900b691864336415"> 72</a></span> <a class="code" href="tripleMath_8hpp.html#a100b50a458ede943b573178d00ca43be">T3Func</a>(<a class="code" href="namespacepFlow.html#ab1bb233488829a9329b9e094d1311140">atanh</a>);</div>
|
|
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="namespacepFlow.html#aeb0e3eb783cc13cd03ffba6b5d5b9189"> 73</a></span> <a class="code" href="tripleMath_8hpp.html#a063a658b212daa7375e77de516af1087">T3Func2</a>(<a class="code" href="namespacepFlow.html#a8714e8dd092c46b15a6e804b6c90db47">min</a>);</div>
|
|
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="namespacepFlow.html#ae27f0b2e9b78642d271960d77aeaceda"> 74</a></span> <a class="code" href="tripleMath_8hpp.html#a063a658b212daa7375e77de516af1087">T3Func2</a>(<a class="code" href="namespacepFlow.html#a92e15c22d8a3e36e134f9bcc66bd8652">max</a>);</div>
|
|
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  </div>
|
|
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  </div>
|
|
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span> <span class="comment">// elements of t3 raised by e</span></div>
|
|
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span> <span class="keyword">template</span><<span class="keyword">typename</span> T></div>
|
|
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span> <a class="code" href="pFlowMacros_8hpp.html#a8e2f73fa5c113f21c9c9edb67a974f5e">INLINE_FUNCTION_HD</a> <a class="code" href="classpFlow_1_1triple.html">triple<T></a></div>
|
|
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="namespacepFlow.html#ad2c85c773f62c4f5d382f13e5d7f6904"> 81</a></span>  <a class="code" href="namespacepFlow.html#a68649a07973f2ed86e65754aec1aa7f4">pow</a>(<span class="keyword">const</span> <a class="code" href="classpFlow_1_1triple.html">triple<T></a>& t3, T e)</div>
|
|
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span> {</div>
|
|
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="keywordflow">return</span> <a class="code" href="classpFlow_1_1triple.html">triple<T></a>(<a class="code" href="namespacepFlow.html#a68649a07973f2ed86e65754aec1aa7f4">pow</a>(t3.<a class="code" href="classpFlow_1_1triple.html#ae40d4cb269d0be9c0d20a9efe0462757">x_</a>, e), <a class="code" href="namespacepFlow.html#a68649a07973f2ed86e65754aec1aa7f4">pow</a>(t3.<a class="code" href="classpFlow_1_1triple.html#a644d1b6657ad3f073d95487bdd5d08a9">y_</a>, e), <a class="code" href="namespacepFlow.html#a68649a07973f2ed86e65754aec1aa7f4">pow</a>(t3.<a class="code" href="classpFlow_1_1triple.html#abdc5fb2fe39f8f2e806479466fbf4141">z_</a>, e));</div>
|
|
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span> }</div>
|
|
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  </div>
|
|
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <span class="comment">// return the min of 3 elements x, y, z</span></div>
|
|
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span> <span class="keyword">template</span><<span class="keyword">typename</span> T></div>
|
|
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span> <a class="code" href="pFlowMacros_8hpp.html#a8e2f73fa5c113f21c9c9edb67a974f5e">INLINE_FUNCTION_HD</a> T</div>
|
|
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="namespacepFlow.html#a53c2abba7b053ed6c2220c8441fd3a9d"> 89</a></span> <a class="code" href="namespacepFlow.html#a8714e8dd092c46b15a6e804b6c90db47">min</a>(<span class="keyword">const</span> <a class="code" href="classpFlow_1_1triple.html">triple<T></a>& t3)</div>
|
|
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span> {</div>
|
|
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="keywordflow">return</span> <a class="code" href="namespacepFlow.html#a8714e8dd092c46b15a6e804b6c90db47">min</a>(<a class="code" href="namespacepFlow.html#a8714e8dd092c46b15a6e804b6c90db47">min</a>(t3.<a class="code" href="classpFlow_1_1triple.html#ae40d4cb269d0be9c0d20a9efe0462757">x_</a>, t3.<a class="code" href="classpFlow_1_1triple.html#a644d1b6657ad3f073d95487bdd5d08a9">y_</a>), t3.<a class="code" href="classpFlow_1_1triple.html#abdc5fb2fe39f8f2e806479466fbf4141">z_</a>);</div>
|
|
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span> }</div>
|
|
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  </div>
|
|
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> <span class="comment">// return the max of 3 elements x, y, z</span></div>
|
|
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span> <span class="keyword">template</span><<span class="keyword">typename</span> T></div>
|
|
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span> <a class="code" href="pFlowMacros_8hpp.html#a8e2f73fa5c113f21c9c9edb67a974f5e">INLINE_FUNCTION_HD</a> T</div>
|
|
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="namespacepFlow.html#acf547738994d2c3fb14823334901dcec"> 97</a></span> <a class="code" href="namespacepFlow.html#a92e15c22d8a3e36e134f9bcc66bd8652">max</a>(<span class="keyword">const</span> <a class="code" href="classpFlow_1_1triple.html">triple<T></a>& t3)</div>
|
|
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> {</div>
|
|
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="keywordflow">return</span> <a class="code" href="namespacepFlow.html#a92e15c22d8a3e36e134f9bcc66bd8652">max</a>(<a class="code" href="namespacepFlow.html#a92e15c22d8a3e36e134f9bcc66bd8652">max</a>(t3.<a class="code" href="classpFlow_1_1triple.html#ae40d4cb269d0be9c0d20a9efe0462757">x_</a>, t3.<a class="code" href="classpFlow_1_1triple.html#a644d1b6657ad3f073d95487bdd5d08a9">y_</a>), t3.<a class="code" href="classpFlow_1_1triple.html#abdc5fb2fe39f8f2e806479466fbf4141">z_</a>);</div>
|
|
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span> }</div>
|
|
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  </div>
|
|
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span> <span class="preprocessor">#undef T3Func</span></div>
|
|
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span> <span class="preprocessor">#undef T3Func2</span></div>
|
|
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  </div>
|
|
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span> }</div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
</div><!-- doc-content -->
|
|
<div class="ttc" id="anamespacepFlow_html_a26eee5e026a2a0badac2a4c563710226"><div class="ttname"><a href="namespacepFlow.html#a26eee5e026a2a0badac2a4c563710226">pFlow::exp</a></div><div class="ttdeci">Vector< T, Allocator > exp(const Vector< T, Allocator > &v)</div><div class="ttdef"><b>Definition:</b> <a href="VectorMath_8hpp_source.html#l00086">VectorMath.hpp:86</a></div></div>
|
|
<div class="ttc" id="anamespacepFlow_html_a33bc515a235287da7238fdbda2fa855d"><div class="ttname"><a href="namespacepFlow.html#a33bc515a235287da7238fdbda2fa855d">pFlow::atan</a></div><div class="ttdeci">Vector< T, Allocator > atan(const Vector< T, Allocator > &v)</div><div class="ttdef"><b>Definition:</b> <a href="VectorMath_8hpp_source.html#l00097">VectorMath.hpp:97</a></div></div>
|
|
<div class="ttc" id="anamespacepFlow_html_ad4414b2aa1afd740489411547b841848"><div class="ttname"><a href="namespacepFlow.html#ad4414b2aa1afd740489411547b841848">pFlow::asin</a></div><div class="ttdeci">Vector< T, Allocator > asin(const Vector< T, Allocator > &v)</div><div class="ttdef"><b>Definition:</b> <a href="VectorMath_8hpp_source.html#l00095">VectorMath.hpp:95</a></div></div>
|
|
<div class="ttc" id="anamespacepFlow_html_a4c86b45df10882a1de3849b7297206de"><div class="ttname"><a href="namespacepFlow.html#a4c86b45df10882a1de3849b7297206de">pFlow::cbrt</a></div><div class="ttdeci">Vector< T, Allocator > cbrt(const Vector< T, Allocator > &v)</div><div class="ttdef"><b>Definition:</b> <a href="VectorMath_8hpp_source.html#l00091">VectorMath.hpp:91</a></div></div>
|
|
<div class="ttc" id="anamespacepFlow_html_ab2f719382faef198fb3fa041d7d2b829"><div class="ttname"><a href="namespacepFlow.html#ab2f719382faef198fb3fa041d7d2b829">pFlow::sinh</a></div><div class="ttdeci">Vector< T, Allocator > sinh(const Vector< T, Allocator > &v)</div><div class="ttdef"><b>Definition:</b> <a href="VectorMath_8hpp_source.html#l00099">VectorMath.hpp:99</a></div></div>
|
|
<div class="ttc" id="atripleMath_8hpp_html_a063a658b212daa7375e77de516af1087"><div class="ttname"><a href="tripleMath_8hpp.html#a063a658b212daa7375e77de516af1087">T3Func2</a></div><div class="ttdeci">#define T3Func2(fnName)</div><div class="ttdef"><b>Definition:</b> <a href="tripleMath_8hpp_source.html#l00032">tripleMath.hpp:32</a></div></div>
|
|
<div class="ttc" id="atripleMath_8hpp_html_a100b50a458ede943b573178d00ca43be"><div class="ttname"><a href="tripleMath_8hpp.html#a100b50a458ede943b573178d00ca43be">T3Func</a></div><div class="ttdeci">#define T3Func(fnName)</div><div class="ttdef"><b>Definition:</b> <a href="tripleMath_8hpp_source.html#l00025">tripleMath.hpp:25</a></div></div>
|
|
<div class="ttc" id="anamespacepFlow_html_a68649a07973f2ed86e65754aec1aa7f4"><div class="ttname"><a href="namespacepFlow.html#a68649a07973f2ed86e65754aec1aa7f4">pFlow::pow</a></div><div class="ttdeci">Vector< T, Allocator > pow(const Vector< T, Allocator > &v1, const Vector< T, Allocator > &v2)</div><div class="ttdef"><b>Definition:</b> <a href="VectorMath_8hpp_source.html#l00089">VectorMath.hpp:89</a></div></div>
|
|
<div class="ttc" id="anamespacepFlow_html_a496bce895c9a3f6202f9272233be5cb3"><div class="ttname"><a href="namespacepFlow.html#a496bce895c9a3f6202f9272233be5cb3">pFlow::sqrt</a></div><div class="ttdeci">Vector< T, Allocator > sqrt(const Vector< T, Allocator > &v)</div><div class="ttdef"><b>Definition:</b> <a href="VectorMath_8hpp_source.html#l00090">VectorMath.hpp:90</a></div></div>
|
|
<div class="ttc" id="anamespacepFlow_html_aabcf0fc5e8be30eb3d9927990a3f4f52"><div class="ttname"><a href="namespacepFlow.html#aabcf0fc5e8be30eb3d9927990a3f4f52">pFlow::cosh</a></div><div class="ttdeci">Vector< T, Allocator > cosh(const Vector< T, Allocator > &v)</div><div class="ttdef"><b>Definition:</b> <a href="VectorMath_8hpp_source.html#l00100">VectorMath.hpp:100</a></div></div>
|
|
<div class="ttc" id="anamespacepFlow_html_a06661e4b8d137f54b8d5e661a4fd2503"><div class="ttname"><a href="namespacepFlow.html#a06661e4b8d137f54b8d5e661a4fd2503">pFlow::cos</a></div><div class="ttdeci">Vector< T, Allocator > cos(const Vector< T, Allocator > &v)</div><div class="ttdef"><b>Definition:</b> <a href="VectorMath_8hpp_source.html#l00093">VectorMath.hpp:93</a></div></div>
|
|
<div class="ttc" id="anamespacepFlow_html_a92e15c22d8a3e36e134f9bcc66bd8652"><div class="ttname"><a href="namespacepFlow.html#a92e15c22d8a3e36e134f9bcc66bd8652">pFlow::max</a></div><div class="ttdeci">T max(const internalField< T, MemorySpace > &iField)</div><div class="ttdef"><b>Definition:</b> <a href="internalFieldAlgorithms_8hpp_source.html#l00079">internalFieldAlgorithms.hpp:79</a></div></div>
|
|
<div class="ttc" id="anamespacepFlow_html"><div class="ttname"><a href="namespacepFlow.html">pFlow</a></div><div class="ttdef"><b>Definition:</b> <a href="demGeometry_8hpp_source.html#l00027">demGeometry.hpp:27</a></div></div>
|
|
<div class="ttc" id="anamespacepFlow_html_acc1f506bd01a14c20ad097e879774524"><div class="ttname"><a href="namespacepFlow.html#acc1f506bd01a14c20ad097e879774524">pFlow::asinh</a></div><div class="ttdeci">Vector< T, Allocator > asinh(const Vector< T, Allocator > &v)</div><div class="ttdef"><b>Definition:</b> <a href="VectorMath_8hpp_source.html#l00102">VectorMath.hpp:102</a></div></div>
|
|
<div class="ttc" id="anamespacepFlow_html_a8e9735c17f6aee5dc750abd4a0e5a6ac"><div class="ttname"><a href="namespacepFlow.html#a8e9735c17f6aee5dc750abd4a0e5a6ac">pFlow::log10</a></div><div class="ttdeci">Vector< T, Allocator > log10(const Vector< T, Allocator > &v)</div><div class="ttdef"><b>Definition:</b> <a href="VectorMath_8hpp_source.html#l00088">VectorMath.hpp:88</a></div></div>
|
|
<div class="ttc" id="anamespacepFlow_html_a049f17117180c922d3a418fea0f1c4b4"><div class="ttname"><a href="namespacepFlow.html#a049f17117180c922d3a418fea0f1c4b4">pFlow::log</a></div><div class="ttdeci">Vector< T, Allocator > log(const Vector< T, Allocator > &v)</div><div class="ttdef"><b>Definition:</b> <a href="VectorMath_8hpp_source.html#l00087">VectorMath.hpp:87</a></div></div>
|
|
<div class="ttc" id="anamespacepFlow_html_abd1e3fc690eeab567d6d110a989bab26"><div class="ttname"><a href="namespacepFlow.html#abd1e3fc690eeab567d6d110a989bab26">pFlow::mod</a></div><div class="ttdeci">Vector< T, Allocator > mod(const Vector< T, Allocator > &v1, const Vector< T, Allocator > &v2)</div><div class="ttdef"><b>Definition:</b> <a href="VectorMath_8hpp_source.html#l00085">VectorMath.hpp:85</a></div></div>
|
|
<div class="ttc" id="aclasspFlow_1_1triple_html_ae40d4cb269d0be9c0d20a9efe0462757"><div class="ttname"><a href="classpFlow_1_1triple.html#ae40d4cb269d0be9c0d20a9efe0462757">pFlow::triple::x_</a></div><div class="ttdeci">T x_</div><div class="ttdoc">data members</div><div class="ttdef"><b>Definition:</b> <a href="triple_8hpp_source.html#l00049">triple.hpp:49</a></div></div>
|
|
<div class="ttc" id="anamespacepFlow_html_a11091cf542ebb711e64d680ee05b311c"><div class="ttname"><a href="namespacepFlow.html#a11091cf542ebb711e64d680ee05b311c">pFlow::abs</a></div><div class="ttdeci">Vector< T, Allocator > abs(const Vector< T, Allocator > &v)</div><div class="ttdef"><b>Definition:</b> <a href="VectorMath_8hpp_source.html#l00084">VectorMath.hpp:84</a></div></div>
|
|
<div class="ttc" id="anamespacepFlow_html_a8714e8dd092c46b15a6e804b6c90db47"><div class="ttname"><a href="namespacepFlow.html#a8714e8dd092c46b15a6e804b6c90db47">pFlow::min</a></div><div class="ttdeci">T min(const internalField< T, MemorySpace > &iField)</div><div class="ttdef"><b>Definition:</b> <a href="internalFieldAlgorithms_8hpp_source.html#l00028">internalFieldAlgorithms.hpp:28</a></div></div>
|
|
<div class="ttc" id="aclasspFlow_1_1triple_html_a644d1b6657ad3f073d95487bdd5d08a9"><div class="ttname"><a href="classpFlow_1_1triple.html#a644d1b6657ad3f073d95487bdd5d08a9">pFlow::triple::y_</a></div><div class="ttdeci">T y_</div><div class="ttdef"><b>Definition:</b> <a href="triple_8hpp_source.html#l00050">triple.hpp:50</a></div></div>
|
|
<div class="ttc" id="aclasspFlow_1_1triple_html_abdc5fb2fe39f8f2e806479466fbf4141"><div class="ttname"><a href="classpFlow_1_1triple.html#abdc5fb2fe39f8f2e806479466fbf4141">pFlow::triple::z_</a></div><div class="ttdeci">T z_</div><div class="ttdef"><b>Definition:</b> <a href="triple_8hpp_source.html#l00051">triple.hpp:51</a></div></div>
|
|
<div class="ttc" id="anamespacepFlow_html_a584964ed1f1cf8770e18c3c4f12eb676"><div class="ttname"><a href="namespacepFlow.html#a584964ed1f1cf8770e18c3c4f12eb676">pFlow::sin</a></div><div class="ttdeci">Vector< T, Allocator > sin(const Vector< T, Allocator > &v)</div><div class="ttdef"><b>Definition:</b> <a href="VectorMath_8hpp_source.html#l00092">VectorMath.hpp:92</a></div></div>
|
|
<div class="ttc" id="anamespacepFlow_html_ab1bb233488829a9329b9e094d1311140"><div class="ttname"><a href="namespacepFlow.html#ab1bb233488829a9329b9e094d1311140">pFlow::atanh</a></div><div class="ttdeci">Vector< T, Allocator > atanh(const Vector< T, Allocator > &v)</div><div class="ttdef"><b>Definition:</b> <a href="VectorMath_8hpp_source.html#l00104">VectorMath.hpp:104</a></div></div>
|
|
<div class="ttc" id="anamespacepFlow_html_a98eab581ce102ca53f3c9e401e853db9"><div class="ttname"><a href="namespacepFlow.html#a98eab581ce102ca53f3c9e401e853db9">pFlow::tanh</a></div><div class="ttdeci">Vector< T, Allocator > tanh(const Vector< T, Allocator > &v)</div><div class="ttdef"><b>Definition:</b> <a href="VectorMath_8hpp_source.html#l00101">VectorMath.hpp:101</a></div></div>
|
|
<div class="ttc" id="anamespacepFlow_html_a562f1f965b09ea86d590ea3968973a18"><div class="ttname"><a href="namespacepFlow.html#a562f1f965b09ea86d590ea3968973a18">pFlow::atan2</a></div><div class="ttdeci">Vector< T, Allocator > atan2(const Vector< T, Allocator > &v1, const Vector< T, Allocator > &v2)</div><div class="ttdef"><b>Definition:</b> <a href="VectorMath_8hpp_source.html#l00098">VectorMath.hpp:98</a></div></div>
|
|
<div class="ttc" id="apFlowMacros_8hpp_html_a8e2f73fa5c113f21c9c9edb67a974f5e"><div class="ttname"><a href="pFlowMacros_8hpp.html#a8e2f73fa5c113f21c9c9edb67a974f5e">INLINE_FUNCTION_HD</a></div><div class="ttdeci">#define INLINE_FUNCTION_HD</div><div class="ttdef"><b>Definition:</b> <a href="pFlowMacros_8hpp_source.html#l00055">pFlowMacros.hpp:55</a></div></div>
|
|
<div class="ttc" id="aclasspFlow_1_1triple_html"><div class="ttname"><a href="classpFlow_1_1triple.html">pFlow::triple</a></div><div class="ttdoc">A set of 3 variables that can be used for vector variables.</div><div class="ttdef"><b>Definition:</b> <a href="triple_8hpp_source.html#l00036">triple.hpp:36</a></div></div>
|
|
<div class="ttc" id="anamespacepFlow_html_a8cff3c48726f7c4a96c5eda47950612c"><div class="ttname"><a href="namespacepFlow.html#a8cff3c48726f7c4a96c5eda47950612c">pFlow::tan</a></div><div class="ttdeci">Vector< T, Allocator > tan(const Vector< T, Allocator > &v)</div><div class="ttdef"><b>Definition:</b> <a href="VectorMath_8hpp_source.html#l00094">VectorMath.hpp:94</a></div></div>
|
|
<div class="ttc" id="anamespacepFlow_html_aeb6eeab26c399de3159d0546b430efc6"><div class="ttname"><a href="namespacepFlow.html#aeb6eeab26c399de3159d0546b430efc6">pFlow::acosh</a></div><div class="ttdeci">Vector< T, Allocator > acosh(const Vector< T, Allocator > &v)</div><div class="ttdef"><b>Definition:</b> <a href="VectorMath_8hpp_source.html#l00103">VectorMath.hpp:103</a></div></div>
|
|
<div class="ttc" id="anamespacepFlow_html_a9e0dee6ee12464df02677bff9125ba7b"><div class="ttname"><a href="namespacepFlow.html#a9e0dee6ee12464df02677bff9125ba7b">pFlow::acos</a></div><div class="ttdeci">Vector< T, Allocator > acos(const Vector< T, Allocator > &v)</div><div class="ttdef"><b>Definition:</b> <a href="VectorMath_8hpp_source.html#l00096">VectorMath.hpp:96</a></div></div>
|
|
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_cd7a5046d028e114fc17b2ebc2bd02d2.html">phasicFlow</a></li><li class="navelem"><a class="el" href="dir_e8baec020e471dff3bc06b812491e6c5.html">types</a></li><li class="navelem"><a class="el" href="dir_0ebef8149ee25250b6e6438ff7826ec5.html">triple</a></li><li class="navelem"><a class="el" href="tripleMath_8hpp.html">tripleMath.hpp</a></li>
|
|
<li class="footer">Generated by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|