1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
---|
2 | <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> |
---|
3 | <title>mixpp: elem_math.h File Reference</title> |
---|
4 | <link href="tabs.css" rel="stylesheet" type="text/css"> |
---|
5 | <link href="doxygen.css" rel="stylesheet" type="text/css"> |
---|
6 | </head><body> |
---|
7 | <!-- Generated by Doxygen 1.5.8 --> |
---|
8 | <script type="text/javascript"> |
---|
9 | <!-- |
---|
10 | function changeDisplayState (e){ |
---|
11 | var num=this.id.replace(/[^[0-9]/g,''); |
---|
12 | var button=this.firstChild; |
---|
13 | var sectionDiv=document.getElementById('dynsection'+num); |
---|
14 | if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){ |
---|
15 | sectionDiv.style.display='block'; |
---|
16 | button.src='open.gif'; |
---|
17 | }else{ |
---|
18 | sectionDiv.style.display='none'; |
---|
19 | button.src='closed.gif'; |
---|
20 | } |
---|
21 | } |
---|
22 | function initDynSections(){ |
---|
23 | var divs=document.getElementsByTagName('div'); |
---|
24 | var sectionCounter=1; |
---|
25 | for(var i=0;i<divs.length-1;i++){ |
---|
26 | if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){ |
---|
27 | var header=divs[i]; |
---|
28 | var section=divs[i+1]; |
---|
29 | var button=header.firstChild; |
---|
30 | if (button!='IMG'){ |
---|
31 | divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild); |
---|
32 | button=document.createElement('img'); |
---|
33 | divs[i].insertBefore(button,divs[i].firstChild); |
---|
34 | } |
---|
35 | header.style.cursor='pointer'; |
---|
36 | header.onclick=changeDisplayState; |
---|
37 | header.id='dynheader'+sectionCounter; |
---|
38 | button.src='closed.gif'; |
---|
39 | section.id='dynsection'+sectionCounter; |
---|
40 | section.style.display='none'; |
---|
41 | section.style.marginLeft='14px'; |
---|
42 | sectionCounter++; |
---|
43 | } |
---|
44 | } |
---|
45 | } |
---|
46 | window.onload = initDynSections; |
---|
47 | --> |
---|
48 | </script> |
---|
49 | <div class="navigation" id="top"> |
---|
50 | <div class="tabs"> |
---|
51 | <ul> |
---|
52 | <li><a href="main.html"><span>Main Page</span></a></li> |
---|
53 | <li><a href="pages.html"><span>Related Pages</span></a></li> |
---|
54 | <li><a href="modules.html"><span>Modules</span></a></li> |
---|
55 | <li><a href="annotated.html"><span>Classes</span></a></li> |
---|
56 | <li class="current"><a href="files.html"><span>Files</span></a></li> |
---|
57 | </ul> |
---|
58 | </div> |
---|
59 | <div class="tabs"> |
---|
60 | <ul> |
---|
61 | <li><a href="files.html"><span>File List</span></a></li> |
---|
62 | <li><a href="globals.html"><span>File Members</span></a></li> |
---|
63 | </ul> |
---|
64 | </div> |
---|
65 | </div> |
---|
66 | <div class="contents"> |
---|
67 | <h1>elem_math.h File Reference</h1>Elementary mathematical functions - header file. |
---|
68 | <a href="#_details">More...</a> |
---|
69 | <p> |
---|
70 | <code>#include <<a class="el" href="itcompat_8h-source.html">itpp/base/itcompat.h</a>></code><br> |
---|
71 | <code>#include <<a class="el" href="help__functions_8h-source.html">itpp/base/help_functions.h</a>></code><br> |
---|
72 | <code>#include <<a class="el" href="converters_8h-source.html">itpp/base/converters.h</a>></code><br> |
---|
73 | <code>#include <cstdlib></code><br> |
---|
74 | |
---|
75 | <p> |
---|
76 | <a href="elem__math_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> |
---|
77 | <tr><td></td></tr> |
---|
78 | <tr><td colspan="2"><br><h2>Functions</h2></td></tr> |
---|
79 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g53af461a647d4e8cbc9a79b82d12cf19"></a><!-- doxytag: member="elem_math.h::sqr" ref="g53af461a647d4e8cbc9a79b82d12cf19" args="(double x)" --> |
---|
80 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#g53af461a647d4e8cbc9a79b82d12cf19">itpp::sqr</a> (double x)</td></tr> |
---|
81 | |
---|
82 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Square of x. <br></td></tr> |
---|
83 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g3224344034796c1c20af3e9f410998c8"></a><!-- doxytag: member="elem_math.h::sqr" ref="g3224344034796c1c20af3e9f410998c8" args="(const std::complex< double > &x)" --> |
---|
84 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#g3224344034796c1c20af3e9f410998c8">itpp::sqr</a> (const std::complex< double > &x)</td></tr> |
---|
85 | |
---|
86 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Absolute square of complex-valued x, ||x||^2. <br></td></tr> |
---|
87 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g6d7789c418de858fd332b39fbdfcd90d"></a><!-- doxytag: member="elem_math.h::sqr" ref="g6d7789c418de858fd332b39fbdfcd90d" args="(const vec &x)" --> |
---|
88 | <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#g6d7789c418de858fd332b39fbdfcd90d">itpp::sqr</a> (const <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> &x)</td></tr> |
---|
89 | |
---|
90 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Square of elements. <br></td></tr> |
---|
91 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gd0a08400c5087615cb59d95c3e05ba38"></a><!-- doxytag: member="elem_math.h::sqr" ref="gd0a08400c5087615cb59d95c3e05ba38" args="(const mat &x)" --> |
---|
92 | <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#gd0a08400c5087615cb59d95c3e05ba38">itpp::sqr</a> (const <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> &x)</td></tr> |
---|
93 | |
---|
94 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Square of elements. <br></td></tr> |
---|
95 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g2eec208480e2632cff5ed30e561c7814"></a><!-- doxytag: member="elem_math.h::sqr" ref="g2eec208480e2632cff5ed30e561c7814" args="(const cvec &x)" --> |
---|
96 | <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#g2eec208480e2632cff5ed30e561c7814">itpp::sqr</a> (const <a class="el" href="classitpp_1_1Vec.html#e83c1408740e41a7e29c383b71d4d544">cvec</a> &x)</td></tr> |
---|
97 | |
---|
98 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Absolute square of elements. <br></td></tr> |
---|
99 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g43f6f5077281e5678836c126825a88c2"></a><!-- doxytag: member="elem_math.h::sqr" ref="g43f6f5077281e5678836c126825a88c2" args="(const cmat &x)" --> |
---|
100 | <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#g43f6f5077281e5678836c126825a88c2">itpp::sqr</a> (const <a class="el" href="classitpp_1_1Mat.html#6fbac4b7184807da188e5b85d42f038b">cmat</a> &x)</td></tr> |
---|
101 | |
---|
102 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Absolute square of elements. <br></td></tr> |
---|
103 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g5a244fbc028479efd99375de8acf002e"></a><!-- doxytag: member="elem_math.h::abs" ref="g5a244fbc028479efd99375de8acf002e" args="(const vec &x)" --> |
---|
104 | <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#g5a244fbc028479efd99375de8acf002e">itpp::abs</a> (const <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> &x)</td></tr> |
---|
105 | |
---|
106 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Absolute value. <br></td></tr> |
---|
107 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g72438147a83a4cd635d0a2f87e4bfaba"></a><!-- doxytag: member="elem_math.h::abs" ref="g72438147a83a4cd635d0a2f87e4bfaba" args="(const mat &x)" --> |
---|
108 | <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#g72438147a83a4cd635d0a2f87e4bfaba">itpp::abs</a> (const <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> &x)</td></tr> |
---|
109 | |
---|
110 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Absolute value. <br></td></tr> |
---|
111 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g2f8990b663176a2bfa638c0f851b6368"></a><!-- doxytag: member="elem_math.h::abs" ref="g2f8990b663176a2bfa638c0f851b6368" args="(const ivec &x)" --> |
---|
112 | <a class="el" href="classitpp_1_1Vec.html#b03757d874926a9be91535e71af1656e">ivec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#g2f8990b663176a2bfa638c0f851b6368">itpp::abs</a> (const <a class="el" href="classitpp_1_1Vec.html#b03757d874926a9be91535e71af1656e">ivec</a> &x)</td></tr> |
---|
113 | |
---|
114 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Absolute value. <br></td></tr> |
---|
115 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g99a1c6c9aa84bc5c495f2d27163babf6"></a><!-- doxytag: member="elem_math.h::abs" ref="g99a1c6c9aa84bc5c495f2d27163babf6" args="(const imat &x)" --> |
---|
116 | <a class="el" href="classitpp_1_1Mat.html#9e0dd2f635e4bd0b28c09685d9c4f3bb">imat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#g99a1c6c9aa84bc5c495f2d27163babf6">itpp::abs</a> (const <a class="el" href="classitpp_1_1Mat.html#9e0dd2f635e4bd0b28c09685d9c4f3bb">imat</a> &x)</td></tr> |
---|
117 | |
---|
118 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Absolute value. <br></td></tr> |
---|
119 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g3f4dada18782bdd40926cde698104215"></a><!-- doxytag: member="elem_math.h::abs" ref="g3f4dada18782bdd40926cde698104215" args="(const cvec &x)" --> |
---|
120 | <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#g3f4dada18782bdd40926cde698104215">itpp::abs</a> (const <a class="el" href="classitpp_1_1Vec.html#e83c1408740e41a7e29c383b71d4d544">cvec</a> &x)</td></tr> |
---|
121 | |
---|
122 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Absolute value. <br></td></tr> |
---|
123 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gfcb495f2cf1c9b6d9ab23945abaffee2"></a><!-- doxytag: member="elem_math.h::abs" ref="gfcb495f2cf1c9b6d9ab23945abaffee2" args="(const cmat &x)" --> |
---|
124 | <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#gfcb495f2cf1c9b6d9ab23945abaffee2">itpp::abs</a> (const <a class="el" href="classitpp_1_1Mat.html#6fbac4b7184807da188e5b85d42f038b">cmat</a> &x)</td></tr> |
---|
125 | |
---|
126 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Absolute value. <br></td></tr> |
---|
127 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g3e61de2247605275a45d4a8b7216eb97"></a><!-- doxytag: member="elem_math.h::sign" ref="g3e61de2247605275a45d4a8b7216eb97" args="(double x)" --> |
---|
128 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#g3e61de2247605275a45d4a8b7216eb97">itpp::sign</a> (double x)</td></tr> |
---|
129 | |
---|
130 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Signum function. <br></td></tr> |
---|
131 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g1f7664f33dfdb9743d40bf2d3b2071fc"></a><!-- doxytag: member="elem_math.h::sign" ref="g1f7664f33dfdb9743d40bf2d3b2071fc" args="(const vec &x)" --> |
---|
132 | <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#g1f7664f33dfdb9743d40bf2d3b2071fc">itpp::sign</a> (const <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> &x)</td></tr> |
---|
133 | |
---|
134 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Signum function. <br></td></tr> |
---|
135 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g401fd66453aeaddc9dfca9fbe9dc40fc"></a><!-- doxytag: member="elem_math.h::sign" ref="g401fd66453aeaddc9dfca9fbe9dc40fc" args="(const mat &x)" --> |
---|
136 | <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#g401fd66453aeaddc9dfca9fbe9dc40fc">itpp::sign</a> (const <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> &x)</td></tr> |
---|
137 | |
---|
138 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Signum function. <br></td></tr> |
---|
139 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g42c0e8e31bbaf75415eb95c49b73cd21"></a><!-- doxytag: member="elem_math.h::sgn" ref="g42c0e8e31bbaf75415eb95c49b73cd21" args="(double x)" --> |
---|
140 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#g42c0e8e31bbaf75415eb95c49b73cd21">itpp::sgn</a> (double x)</td></tr> |
---|
141 | |
---|
142 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Signum function. <br></td></tr> |
---|
143 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g97e0a4ced6c518876e137111b464ab66"></a><!-- doxytag: member="elem_math.h::sgn" ref="g97e0a4ced6c518876e137111b464ab66" args="(const vec &x)" --> |
---|
144 | <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#g97e0a4ced6c518876e137111b464ab66">itpp::sgn</a> (const <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> &x)</td></tr> |
---|
145 | |
---|
146 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Signum function. <br></td></tr> |
---|
147 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gd80b759c4a55ba8f679e3e3d3e44ad9c"></a><!-- doxytag: member="elem_math.h::sgn" ref="gd80b759c4a55ba8f679e3e3d3e44ad9c" args="(const mat &x)" --> |
---|
148 | <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#gd80b759c4a55ba8f679e3e3d3e44ad9c">itpp::sgn</a> (const <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> &x)</td></tr> |
---|
149 | |
---|
150 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Signum function. <br></td></tr> |
---|
151 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gca744b04184579edc2327cfba8331e49"></a><!-- doxytag: member="elem_math.h::sign_i" ref="gca744b04184579edc2327cfba8331e49" args="(int x)" --> |
---|
152 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#gca744b04184579edc2327cfba8331e49">itpp::sign_i</a> (int x)</td></tr> |
---|
153 | |
---|
154 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Signum function. <br></td></tr> |
---|
155 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga228c3a56411f8bbfed9d1b93669d352"></a><!-- doxytag: member="elem_math.h::sign_i" ref="ga228c3a56411f8bbfed9d1b93669d352" args="(const ivec &x)" --> |
---|
156 | <a class="el" href="classitpp_1_1Vec.html#b03757d874926a9be91535e71af1656e">ivec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#ga228c3a56411f8bbfed9d1b93669d352">itpp::sign_i</a> (const <a class="el" href="classitpp_1_1Vec.html#b03757d874926a9be91535e71af1656e">ivec</a> &x)</td></tr> |
---|
157 | |
---|
158 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Signum function. <br></td></tr> |
---|
159 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g8b693ee7cc283a7587e765b2c6c9421a"></a><!-- doxytag: member="elem_math.h::sign_i" ref="g8b693ee7cc283a7587e765b2c6c9421a" args="(const imat &x)" --> |
---|
160 | <a class="el" href="classitpp_1_1Mat.html#9e0dd2f635e4bd0b28c09685d9c4f3bb">imat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#g8b693ee7cc283a7587e765b2c6c9421a">itpp::sign_i</a> (const <a class="el" href="classitpp_1_1Mat.html#9e0dd2f635e4bd0b28c09685d9c4f3bb">imat</a> &x)</td></tr> |
---|
161 | |
---|
162 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Signum function. <br></td></tr> |
---|
163 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g2127a6ea8a746bd3b4ecb1923864e706"></a><!-- doxytag: member="elem_math.h::sgn_i" ref="g2127a6ea8a746bd3b4ecb1923864e706" args="(int x)" --> |
---|
164 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#g2127a6ea8a746bd3b4ecb1923864e706">itpp::sgn_i</a> (int x)</td></tr> |
---|
165 | |
---|
166 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Signum function. <br></td></tr> |
---|
167 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gbeace0b21eda7f91277f31d1c0ed4303"></a><!-- doxytag: member="elem_math.h::sgn_i" ref="gbeace0b21eda7f91277f31d1c0ed4303" args="(const ivec &x)" --> |
---|
168 | <a class="el" href="classitpp_1_1Vec.html#b03757d874926a9be91535e71af1656e">ivec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#gbeace0b21eda7f91277f31d1c0ed4303">itpp::sgn_i</a> (const <a class="el" href="classitpp_1_1Vec.html#b03757d874926a9be91535e71af1656e">ivec</a> &x)</td></tr> |
---|
169 | |
---|
170 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Signum function. <br></td></tr> |
---|
171 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g50ba13db25f4e42bb307ebe5d6abea72"></a><!-- doxytag: member="elem_math.h::sgn_i" ref="g50ba13db25f4e42bb307ebe5d6abea72" args="(const imat &x)" --> |
---|
172 | <a class="el" href="classitpp_1_1Mat.html#9e0dd2f635e4bd0b28c09685d9c4f3bb">imat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#g50ba13db25f4e42bb307ebe5d6abea72">itpp::sgn_i</a> (const <a class="el" href="classitpp_1_1Mat.html#9e0dd2f635e4bd0b28c09685d9c4f3bb">imat</a> &x)</td></tr> |
---|
173 | |
---|
174 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Signum function. <br></td></tr> |
---|
175 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga73c84f1a4c455e0ba530dc73d69a0ab"></a><!-- doxytag: member="elem_math.h::sign_i" ref="ga73c84f1a4c455e0ba530dc73d69a0ab" args="(double x)" --> |
---|
176 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#ga73c84f1a4c455e0ba530dc73d69a0ab">itpp::sign_i</a> (double x)</td></tr> |
---|
177 | |
---|
178 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Signum function. <br></td></tr> |
---|
179 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gf559d29ca56ad3396a4284964b01a9b0"></a><!-- doxytag: member="elem_math.h::sqrt" ref="gf559d29ca56ad3396a4284964b01a9b0" args="(const vec &x)" --> |
---|
180 | <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#gf559d29ca56ad3396a4284964b01a9b0">itpp::sqrt</a> (const <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> &x)</td></tr> |
---|
181 | |
---|
182 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Square root of the elements. <br></td></tr> |
---|
183 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g20af7c97287e8275db8c2b0f650310ac"></a><!-- doxytag: member="elem_math.h::sqrt" ref="g20af7c97287e8275db8c2b0f650310ac" args="(const mat &x)" --> |
---|
184 | <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#g20af7c97287e8275db8c2b0f650310ac">itpp::sqrt</a> (const <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> &x)</td></tr> |
---|
185 | |
---|
186 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Square root of the elements. <br></td></tr> |
---|
187 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g41dc8745e32b331254f39ce3ce941461"></a><!-- doxytag: member="elem_math.h::gamma" ref="g41dc8745e32b331254f39ce3ce941461" args="(double x)" --> |
---|
188 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#g41dc8745e32b331254f39ce3ce941461">itpp::gamma</a> (double x)</td></tr> |
---|
189 | |
---|
190 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Deprecated gamma function - please use tgamma() instead. <br></td></tr> |
---|
191 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g8bb14f8b2b8d4c594065dac1bb096bf9"></a><!-- doxytag: member="elem_math.h::gamma" ref="g8bb14f8b2b8d4c594065dac1bb096bf9" args="(const vec &x)" --> |
---|
192 | <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#g8bb14f8b2b8d4c594065dac1bb096bf9">itpp::gamma</a> (const <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> &x)</td></tr> |
---|
193 | |
---|
194 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Deprecated gamma function for vectors. Will be changed to tgamma(). <br></td></tr> |
---|
195 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gf7e65712c6e83e029747b025cab6eba4"></a><!-- doxytag: member="elem_math.h::gamma" ref="gf7e65712c6e83e029747b025cab6eba4" args="(const mat &x)" --> |
---|
196 | <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#gf7e65712c6e83e029747b025cab6eba4">itpp::gamma</a> (const <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> &x)</td></tr> |
---|
197 | |
---|
198 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Deprecated gamma function for matrices. Will be changed to tgamma(). <br></td></tr> |
---|
199 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g5ffbe0ec26bdc52e7711fafa9632a8c9"></a><!-- doxytag: member="elem_math.h::rem" ref="g5ffbe0ec26bdc52e7711fafa9632a8c9" args="(double x, double y)" --> |
---|
200 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#g5ffbe0ec26bdc52e7711fafa9632a8c9">itpp::rem</a> (double x, double y)</td></tr> |
---|
201 | |
---|
202 | <tr><td class="mdescLeft"> </td><td class="mdescRight">The reminder of the division x/y. <br></td></tr> |
---|
203 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g4a0f840267236c3f94d3b0b30fdddd17"></a><!-- doxytag: member="elem_math.h::rem" ref="g4a0f840267236c3f94d3b0b30fdddd17" args="(const vec &x, double y)" --> |
---|
204 | <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#g4a0f840267236c3f94d3b0b30fdddd17">itpp::rem</a> (const <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> &x, double y)</td></tr> |
---|
205 | |
---|
206 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Elementwise reminder of the division x/y for vec and double. <br></td></tr> |
---|
207 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gca8c2d4626eb80e5deb4a8a3ae94d2df"></a><!-- doxytag: member="elem_math.h::rem" ref="gca8c2d4626eb80e5deb4a8a3ae94d2df" args="(double x, const vec &y)" --> |
---|
208 | <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#gca8c2d4626eb80e5deb4a8a3ae94d2df">itpp::rem</a> (double x, const <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> &y)</td></tr> |
---|
209 | |
---|
210 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Elementwise reminder of the division x/y for double and vec. <br></td></tr> |
---|
211 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gbaf4f0972fa64defac305b4e21beb0eb"></a><!-- doxytag: member="elem_math.h::rem" ref="gbaf4f0972fa64defac305b4e21beb0eb" args="(const mat &x, double y)" --> |
---|
212 | <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#gbaf4f0972fa64defac305b4e21beb0eb">itpp::rem</a> (const <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> &x, double y)</td></tr> |
---|
213 | |
---|
214 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Elementwise reminder of the division x/y for mat and double. <br></td></tr> |
---|
215 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g2c726012179bce791250afed60d508aa"></a><!-- doxytag: member="elem_math.h::rem" ref="g2c726012179bce791250afed60d508aa" args="(double x, const mat &y)" --> |
---|
216 | <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#g2c726012179bce791250afed60d508aa">itpp::rem</a> (double x, const <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> &y)</td></tr> |
---|
217 | |
---|
218 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Elementwise reminder of the division x/y for double and mat. <br></td></tr> |
---|
219 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g441f466a2b056fe5f2b05fcd894c472f"></a><!-- doxytag: member="elem_math.h::mod" ref="g441f466a2b056fe5f2b05fcd894c472f" args="(int k, int n)" --> |
---|
220 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#g441f466a2b056fe5f2b05fcd894c472f">itpp::mod</a> (int k, int n)</td></tr> |
---|
221 | |
---|
222 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Calculates the modulus, i.e. the signed reminder after division. <br></td></tr> |
---|
223 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g8e8cad2fa721d436d05ec76bfb4a288f"></a><!-- doxytag: member="elem_math.h::fact" ref="g8e8cad2fa721d436d05ec76bfb4a288f" args="(int index)" --> |
---|
224 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#g8e8cad2fa721d436d05ec76bfb4a288f">itpp::fact</a> (int index)</td></tr> |
---|
225 | |
---|
226 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Calculates factorial coefficient for index <= 170. <br></td></tr> |
---|
227 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gdce2409aa6d8245ea5f27f59c742bc58"></a><!-- doxytag: member="elem_math.h::binom" ref="gdce2409aa6d8245ea5f27f59c742bc58" args="(int n, int k)" --> |
---|
228 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#gdce2409aa6d8245ea5f27f59c742bc58">itpp::binom</a> (int n, int k)</td></tr> |
---|
229 | |
---|
230 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute the binomial coefficient "n over k". <br></td></tr> |
---|
231 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g2c6c5fe6803c19ef6c09afb07558112f"></a><!-- doxytag: member="elem_math.h::binom_i" ref="g2c6c5fe6803c19ef6c09afb07558112f" args="(int n, int k)" --> |
---|
232 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#g2c6c5fe6803c19ef6c09afb07558112f">itpp::binom_i</a> (int n, int k)</td></tr> |
---|
233 | |
---|
234 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute the binomial coefficient "n over k". <br></td></tr> |
---|
235 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g7dc1e862096ecf42e933dcaaf225b3d7"></a><!-- doxytag: member="elem_math.h::log_binom" ref="g7dc1e862096ecf42e933dcaaf225b3d7" args="(int n, int k)" --> |
---|
236 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#g7dc1e862096ecf42e933dcaaf225b3d7">itpp::log_binom</a> (int n, int k)</td></tr> |
---|
237 | |
---|
238 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute the base 10 logarithm of the binomial coefficient "n over k". <br></td></tr> |
---|
239 | <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#gfe9fa69e2d3126c5566aa1198716f4f3">itpp::gcd</a> (int a, int b)</td></tr> |
---|
240 | |
---|
241 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute the greatest common divisor (GCD) <em>g</em> of the elements <em>a</em> and <em>b</em>. <a href="group__miscfunc.html#gfe9fa69e2d3126c5566aa1198716f4f3"></a><br></td></tr> |
---|
242 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g27856c210279f5138bc296def8974fc8"></a><!-- doxytag: member="elem_math.h::real" ref="g27856c210279f5138bc296def8974fc8" args="(const cvec &x)" --> |
---|
243 | <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#g27856c210279f5138bc296def8974fc8">itpp::real</a> (const <a class="el" href="classitpp_1_1Vec.html#e83c1408740e41a7e29c383b71d4d544">cvec</a> &x)</td></tr> |
---|
244 | |
---|
245 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Real part of complex values. <br></td></tr> |
---|
246 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g3462947c2b146a5c2cfdfe1ccf8ebba2"></a><!-- doxytag: member="elem_math.h::real" ref="g3462947c2b146a5c2cfdfe1ccf8ebba2" args="(const cmat &x)" --> |
---|
247 | <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#g3462947c2b146a5c2cfdfe1ccf8ebba2">itpp::real</a> (const <a class="el" href="classitpp_1_1Mat.html#6fbac4b7184807da188e5b85d42f038b">cmat</a> &x)</td></tr> |
---|
248 | |
---|
249 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Real part of complex values. <br></td></tr> |
---|
250 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g7e5f1a49d65bbb953f178eeb78cc0494"></a><!-- doxytag: member="elem_math.h::imag" ref="g7e5f1a49d65bbb953f178eeb78cc0494" args="(const cvec &x)" --> |
---|
251 | <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#g7e5f1a49d65bbb953f178eeb78cc0494">itpp::imag</a> (const <a class="el" href="classitpp_1_1Vec.html#e83c1408740e41a7e29c383b71d4d544">cvec</a> &x)</td></tr> |
---|
252 | |
---|
253 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Imaginary part of complex values. <br></td></tr> |
---|
254 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gee40059841e66cb99892070cd587b522"></a><!-- doxytag: member="elem_math.h::imag" ref="gee40059841e66cb99892070cd587b522" args="(const cmat &x)" --> |
---|
255 | <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#gee40059841e66cb99892070cd587b522">itpp::imag</a> (const <a class="el" href="classitpp_1_1Mat.html#6fbac4b7184807da188e5b85d42f038b">cmat</a> &x)</td></tr> |
---|
256 | |
---|
257 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Imaginary part of complex values. <br></td></tr> |
---|
258 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g72f64453f523bb6c54fbd253d46ea54b"></a><!-- doxytag: member="elem_math.h::arg" ref="g72f64453f523bb6c54fbd253d46ea54b" args="(const cvec &x)" --> |
---|
259 | <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#g72f64453f523bb6c54fbd253d46ea54b">itpp::arg</a> (const <a class="el" href="classitpp_1_1Vec.html#e83c1408740e41a7e29c383b71d4d544">cvec</a> &x)</td></tr> |
---|
260 | |
---|
261 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Argument (angle). <br></td></tr> |
---|
262 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g8667915c4bc50cddf17193d8db63a75e"></a><!-- doxytag: member="elem_math.h::arg" ref="g8667915c4bc50cddf17193d8db63a75e" args="(const cmat &x)" --> |
---|
263 | <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#g8667915c4bc50cddf17193d8db63a75e">itpp::arg</a> (const <a class="el" href="classitpp_1_1Mat.html#6fbac4b7184807da188e5b85d42f038b">cmat</a> &x)</td></tr> |
---|
264 | |
---|
265 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Argument (angle). <br></td></tr> |
---|
266 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g73c55fd4bdb9c7196845d4e14151b16a"></a><!-- doxytag: member="elem_math.h::angle" ref="g73c55fd4bdb9c7196845d4e14151b16a" args="(const cvec &x)" --> |
---|
267 | <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#g73c55fd4bdb9c7196845d4e14151b16a">itpp::angle</a> (const <a class="el" href="classitpp_1_1Vec.html#e83c1408740e41a7e29c383b71d4d544">cvec</a> &x)</td></tr> |
---|
268 | |
---|
269 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Angle. <br></td></tr> |
---|
270 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g7048bf874e72c1d95922adaedef34d8f"></a><!-- doxytag: member="elem_math.h::angle" ref="g7048bf874e72c1d95922adaedef34d8f" args="(const cmat &x)" --> |
---|
271 | <a class="el" href="classitpp_1_1Mat.html#6bba394f181c76fda12759568986c613">mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#g7048bf874e72c1d95922adaedef34d8f">itpp::angle</a> (const <a class="el" href="classitpp_1_1Mat.html#6fbac4b7184807da188e5b85d42f038b">cmat</a> &x)</td></tr> |
---|
272 | |
---|
273 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Angle. <br></td></tr> |
---|
274 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ge55d0251e5ca63e07185d58b4880281c"></a><!-- doxytag: member="elem_math.h::conj" ref="ge55d0251e5ca63e07185d58b4880281c" args="(const cvec &x)" --> |
---|
275 | <a class="el" href="classitpp_1_1Vec.html#e83c1408740e41a7e29c383b71d4d544">cvec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#ge55d0251e5ca63e07185d58b4880281c">itpp::conj</a> (const <a class="el" href="classitpp_1_1Vec.html#e83c1408740e41a7e29c383b71d4d544">cvec</a> &x)</td></tr> |
---|
276 | |
---|
277 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Conjugate of complex value. <br></td></tr> |
---|
278 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g6e8d44e5bdfb75dd7434d843e6e4c9d5"></a><!-- doxytag: member="elem_math.h::conj" ref="g6e8d44e5bdfb75dd7434d843e6e4c9d5" args="(const cmat &x)" --> |
---|
279 | <a class="el" href="classitpp_1_1Mat.html#6fbac4b7184807da188e5b85d42f038b">cmat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__miscfunc.html#g6e8d44e5bdfb75dd7434d843e6e4c9d5">itpp::conj</a> (const <a class="el" href="classitpp_1_1Mat.html#6fbac4b7184807da188e5b85d42f038b">cmat</a> &x)</td></tr> |
---|
280 | |
---|
281 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Conjugate of complex value. <br></td></tr> |
---|
282 | </table> |
---|
283 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
284 | Elementary mathematical functions - header file. |
---|
285 | <p> |
---|
286 | <dl class="author" compact><dt><b>Author:</b></dt><dd>Tony Ottosson and Adam Piatyszek</dd></dl> |
---|
287 | -------------------------------------------------------------------------<p> |
---|
288 | Copyright (C) 1995-2008 (see AUTHORS file for a list of contributors)<p> |
---|
289 | This file is part of IT++ - a C++ library of mathematical, signal processing, speech processing, and communications classes and functions.<p> |
---|
290 | IT++ is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.<p> |
---|
291 | IT++ is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.<p> |
---|
292 | You should have received a copy of the GNU General Public License along with IT++. If not, see <<a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>>.<p> |
---|
293 | ------------------------------------------------------------------------- </div> |
---|
294 | <hr size="1"><address style="text-align: right;"><small>Generated on Tue Jun 2 10:02:13 2009 for mixpp by |
---|
295 | <a href="http://www.doxygen.org/index.html"> |
---|
296 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address> |
---|
297 | </body> |
---|
298 | </html> |
---|