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: error.h Source File</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 | <h1>error.h</h1><a href="error_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 |
---|
66 | <a name="l00029"></a>00029 <span class="preprocessor">#ifndef ERROR_H</span> |
---|
67 | <a name="l00030"></a>00030 <span class="preprocessor"></span><span class="preprocessor">#define ERROR_H</span> |
---|
68 | <a name="l00031"></a>00031 <span class="preprocessor"></span> |
---|
69 | <a name="l00032"></a>00032 <span class="preprocessor">#include <<a class="code" href="itcompat_8h.html" title="IT++ compatibility types and functions.">itpp/base/itcompat.h</a>></span> |
---|
70 | <a name="l00033"></a>00033 <span class="preprocessor">#include <<a class="code" href="help__functions_8h.html" title="Help functions to make functions with vec and mat as arguments.">itpp/base/help_functions.h</a>></span> |
---|
71 | <a name="l00034"></a>00034 |
---|
72 | <a name="l00035"></a>00035 |
---|
73 | <a name="l00036"></a>00036 <span class="keyword">namespace </span>itpp |
---|
74 | <a name="l00037"></a>00037 { |
---|
75 | <a name="l00038"></a>00038 |
---|
76 | <a name="l00041"></a>00041 |
---|
77 | <a name="l00061"></a>00061 std::complex<double> <a class="code" href="group__errorfunc.html#g494b6bd977cc56273eec91d986b4d744" title="Error function.">erf</a>(<span class="keyword">const</span> std::complex<double>& z); |
---|
78 | <a name="l00062"></a>00062 |
---|
79 | <a name="l00064"></a>00064 <span class="keywordtype">double</span> <a class="code" href="group__errorfunc.html#gd82b6721e38fa80078edc79b66be989a" title="Inverse of error function.">erfinv</a>(<span class="keywordtype">double</span> x); |
---|
80 | <a name="l00065"></a>00065 |
---|
81 | <a name="l00067"></a>00067 <span class="keywordtype">double</span> <a class="code" href="group__errorfunc.html#ga3be048a71721b9aca181eaf6119beca" title="Q-function.">Qfunc</a>(<span class="keywordtype">double</span> x); |
---|
82 | <a name="l00068"></a>00068 |
---|
83 | <a name="l00069"></a>00069 |
---|
84 | <a name="l00070"></a>00070 <span class="comment">// ----------------------------------------------------------------------</span> |
---|
85 | <a name="l00071"></a>00071 <span class="comment">// functions for matrices and vectors</span> |
---|
86 | <a name="l00072"></a>00072 <span class="comment">// ----------------------------------------------------------------------</span> |
---|
87 | <a name="l00073"></a>00073 |
---|
88 | <a name="l00075"></a><a class="code" href="group__errorfunc.html#g3f4d81d30a14a0b3293deed7eed0ca31">00075</a> <span class="keyword">inline</span> vec <a class="code" href="group__errorfunc.html#g494b6bd977cc56273eec91d986b4d744" title="Error function.">erf</a>(<span class="keyword">const</span> vec &x) |
---|
89 | <a name="l00076"></a>00076 { |
---|
90 | <a name="l00077"></a>00077 <span class="keywordflow">return</span> apply_function<double>(<a class="code" href="group__errorfunc.html#g494b6bd977cc56273eec91d986b4d744" title="Error function.">::erf</a>, x); |
---|
91 | <a name="l00078"></a>00078 } |
---|
92 | <a name="l00080"></a><a class="code" href="group__errorfunc.html#g6cd4b5424b6064e78e1d47fc9fedf942">00080</a> <span class="keyword">inline</span> mat <a class="code" href="group__errorfunc.html#g494b6bd977cc56273eec91d986b4d744" title="Error function.">erf</a>(<span class="keyword">const</span> mat &x) |
---|
93 | <a name="l00081"></a>00081 { |
---|
94 | <a name="l00082"></a>00082 <span class="keywordflow">return</span> apply_function<double>(<a class="code" href="group__errorfunc.html#g494b6bd977cc56273eec91d986b4d744" title="Error function.">::erf</a>, x); |
---|
95 | <a name="l00083"></a>00083 } |
---|
96 | <a name="l00085"></a><a class="code" href="group__errorfunc.html#g0f7d521f9453e0175f5ab8bc2d9930c9">00085</a> <span class="keyword">inline</span> cvec <a class="code" href="group__errorfunc.html#g494b6bd977cc56273eec91d986b4d744" title="Error function.">erf</a>(<span class="keyword">const</span> cvec &x) |
---|
97 | <a name="l00086"></a>00086 { |
---|
98 | <a name="l00087"></a>00087 <span class="keywordflow">return</span> apply_function<std::complex<double> >(<a class="code" href="group__errorfunc.html#g494b6bd977cc56273eec91d986b4d744" title="Error function.">erf</a>, x); |
---|
99 | <a name="l00088"></a>00088 } |
---|
100 | <a name="l00090"></a><a class="code" href="group__errorfunc.html#g494b6bd977cc56273eec91d986b4d744">00090</a> <span class="keyword">inline</span> cmat <a class="code" href="group__errorfunc.html#g494b6bd977cc56273eec91d986b4d744" title="Error function.">erf</a>(<span class="keyword">const</span> cmat &x) |
---|
101 | <a name="l00091"></a>00091 { |
---|
102 | <a name="l00092"></a>00092 <span class="keywordflow">return</span> apply_function<std::complex<double> >(<a class="code" href="group__errorfunc.html#g494b6bd977cc56273eec91d986b4d744" title="Error function.">erf</a>, x); |
---|
103 | <a name="l00093"></a>00093 } |
---|
104 | <a name="l00094"></a>00094 |
---|
105 | <a name="l00096"></a><a class="code" href="group__errorfunc.html#g0d51b55ef05185d6bc1eca40e4f363a5">00096</a> <span class="keyword">inline</span> vec <a class="code" href="group__errorfunc.html#gd82b6721e38fa80078edc79b66be989a" title="Inverse of error function.">erfinv</a>(<span class="keyword">const</span> vec &x) |
---|
106 | <a name="l00097"></a>00097 { |
---|
107 | <a name="l00098"></a>00098 <span class="keywordflow">return</span> apply_function<double>(<a class="code" href="group__errorfunc.html#gd82b6721e38fa80078edc79b66be989a" title="Inverse of error function.">erfinv</a>, x); |
---|
108 | <a name="l00099"></a>00099 } |
---|
109 | <a name="l00101"></a><a class="code" href="group__errorfunc.html#gd82b6721e38fa80078edc79b66be989a">00101</a> <span class="keyword">inline</span> mat <a class="code" href="group__errorfunc.html#gd82b6721e38fa80078edc79b66be989a" title="Inverse of error function.">erfinv</a>(<span class="keyword">const</span> mat &x) |
---|
110 | <a name="l00102"></a>00102 { |
---|
111 | <a name="l00103"></a>00103 <span class="keywordflow">return</span> apply_function<double>(<a class="code" href="group__errorfunc.html#gd82b6721e38fa80078edc79b66be989a" title="Inverse of error function.">erfinv</a>, x); |
---|
112 | <a name="l00104"></a>00104 } |
---|
113 | <a name="l00105"></a>00105 |
---|
114 | <a name="l00107"></a><a class="code" href="group__errorfunc.html#g9db01a2cc8ceecd4f9539e576e8d5543">00107</a> <span class="keyword">inline</span> vec <a class="code" href="group__errorfunc.html#ga5a9663e7fbbf3d2d473a1d803de1792" title="Complementary error function.">erfc</a>(<span class="keyword">const</span> vec &x) |
---|
115 | <a name="l00108"></a>00108 { |
---|
116 | <a name="l00109"></a>00109 <span class="keywordflow">return</span> apply_function<double>(<a class="code" href="group__errorfunc.html#ga5a9663e7fbbf3d2d473a1d803de1792" title="Complementary error function.">::erfc</a>, x); |
---|
117 | <a name="l00110"></a>00110 } |
---|
118 | <a name="l00112"></a><a class="code" href="group__errorfunc.html#ga5a9663e7fbbf3d2d473a1d803de1792">00112</a> <span class="keyword">inline</span> mat <a class="code" href="group__errorfunc.html#ga5a9663e7fbbf3d2d473a1d803de1792" title="Complementary error function.">erfc</a>(<span class="keyword">const</span> mat &x) |
---|
119 | <a name="l00113"></a>00113 { |
---|
120 | <a name="l00114"></a>00114 <span class="keywordflow">return</span> apply_function<double>(<a class="code" href="group__errorfunc.html#ga5a9663e7fbbf3d2d473a1d803de1792" title="Complementary error function.">::erfc</a>, x); |
---|
121 | <a name="l00115"></a>00115 } |
---|
122 | <a name="l00116"></a>00116 |
---|
123 | <a name="l00118"></a><a class="code" href="group__errorfunc.html#g45bc72db1fe558ab760abed3a8db23dd">00118</a> <span class="keyword">inline</span> vec <a class="code" href="group__errorfunc.html#ga3be048a71721b9aca181eaf6119beca" title="Q-function.">Qfunc</a>(<span class="keyword">const</span> vec &x) |
---|
124 | <a name="l00119"></a>00119 { |
---|
125 | <a name="l00120"></a>00120 <span class="keywordflow">return</span> apply_function<double>(<a class="code" href="group__errorfunc.html#ga3be048a71721b9aca181eaf6119beca" title="Q-function.">Qfunc</a>, x); |
---|
126 | <a name="l00121"></a>00121 } |
---|
127 | <a name="l00122"></a>00122 |
---|
128 | <a name="l00124"></a><a class="code" href="group__errorfunc.html#ga3be048a71721b9aca181eaf6119beca">00124</a> <span class="keyword">inline</span> mat <a class="code" href="group__errorfunc.html#ga3be048a71721b9aca181eaf6119beca" title="Q-function.">Qfunc</a>(<span class="keyword">const</span> mat &x) |
---|
129 | <a name="l00125"></a>00125 { |
---|
130 | <a name="l00126"></a>00126 <span class="keywordflow">return</span> apply_function<double>(<a class="code" href="group__errorfunc.html#ga3be048a71721b9aca181eaf6119beca" title="Q-function.">Qfunc</a>, x); |
---|
131 | <a name="l00127"></a>00127 } |
---|
132 | <a name="l00129"></a>00129 |
---|
133 | <a name="l00130"></a>00130 } <span class="comment">// namespace itpp</span> |
---|
134 | <a name="l00131"></a>00131 |
---|
135 | <a name="l00132"></a>00132 <span class="preprocessor">#endif // #ifndef ERROR_H</span> |
---|
136 | <a name="l00133"></a>00133 <span class="preprocessor"></span> |
---|
137 | <a name="l00134"></a>00134 |
---|
138 | <a name="l00135"></a>00135 |
---|
139 | <a name="l00136"></a>00136 |
---|
140 | </pre></div></div> |
---|
141 | <hr size="1"><address style="text-align: right;"><small>Generated on Tue Jun 2 10:02:11 2009 for mixpp by |
---|
142 | <a href="http://www.doxygen.org/index.html"> |
---|
143 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address> |
---|
144 | </body> |
---|
145 | </html> |
---|