Changeset 651 for library/doc/html/itpp__ext_8h_source.html
- Timestamp:
- 10/12/09 13:49:39 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/doc/html/itpp__ext_8h_source.html
r641 r651 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> 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"> 5 3 <title>mixpp: itpp_ext.h Source File</title> 6 <link href="tabs.css" rel="stylesheet" type="text/css"/> 7 <link href="doxygen.css" rel="stylesheet" type="text/css"/> 8 </head> 9 <body> 10 <!-- Generated by Doxygen 1.6.1 --> 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.9 --> 11 8 <script type="text/javascript"> 12 9 <!-- … … 109 106 <a name="l00043"></a>00043 <span class="keyword">const</span> <span class="keywordtype">double</span> inf = std::numeric_limits<double>::infinity(); 110 107 <a name="l00044"></a>00044 111 <a name="l00045"></a>00045 <span class="preprocessor">#if 0</span> 112 <a name="l00046"></a>00046 <span class="preprocessor"></span> 113 <a name="l00050"></a>00050 <span class="keyword">class </span>Gamma_RNG { 108 <a name="l00045"></a>00045 <span class="comment">//#if 0</span> 109 <a name="l00050"></a><a class="code" href="classitpp_1_1Gamma__RNG.html">00050</a> <span class="comment"></span><span class="keyword">class </span><a class="code" href="classitpp_1_1Gamma__RNG.html" title="Gamma distribution.">Gamma_RNG</a> { 114 110 <a name="l00051"></a>00051 <span class="keyword">public</span>: 115 <a name="l00053"></a>00053 Gamma_RNG( <span class="keywordtype">double</span> a = 1.0, <span class="keywordtype">double</span> b = 1.0 );116 <a name="l00055"></a> 00055 <span class="keywordtype">void</span> setup( <span class="keywordtype">double</span> a0, <span class="keywordtype">double</span> b0 ) {111 <a name="l00053"></a>00053 <a class="code" href="classitpp_1_1Gamma__RNG.html#e132860f825f427d63652edd02c25b54" title="constructor. Set lambda.">Gamma_RNG</a> ( <span class="keywordtype">double</span> a = 1.0, <span class="keywordtype">double</span> b = 1.0 ); 112 <a name="l00055"></a><a class="code" href="classitpp_1_1Gamma__RNG.html#dfaae19411e39aa87e1f72e409b6babe">00055</a> <span class="keywordtype">void</span> <a class="code" href="classitpp_1_1Gamma__RNG.html#dfaae19411e39aa87e1f72e409b6babe" title="Set lambda.">setup</a> ( <span class="keywordtype">double</span> a0, <span class="keywordtype">double</span> b0 ) { 117 113 <a name="l00056"></a>00056 alpha = a0; 118 114 <a name="l00057"></a>00057 beta = b0; 119 115 <a name="l00058"></a>00058 } 120 <a name="l00060"></a>00060 <span class="keywordtype">double</span> get_setup() <span class="keyword">const</span>;121 <a name="l00062"></a> 00062 <span class="keywordtype">double</span> operator()() {116 <a name="l00060"></a>00060 <span class="keywordtype">double</span> <a class="code" href="classitpp_1_1Gamma__RNG.html#8e666953249038f262cece2d3ed952d6" title="get lambda">get_setup</a>() <span class="keyword">const</span>; 117 <a name="l00062"></a><a class="code" href="classitpp_1_1Gamma__RNG.html#98e2e65456bca33fca602b2bd607235e">00062</a> <span class="keywordtype">double</span> <a class="code" href="classitpp_1_1Gamma__RNG.html#98e2e65456bca33fca602b2bd607235e" title="Get one sample.">operator() </a>() { 122 118 <a name="l00063"></a>00063 <span class="keywordflow">return</span> sample(); 123 119 <a name="l00064"></a>00064 } 124 <a name="l00066"></a>00066 vec operator()( <span class="keywordtype">int</span> n );125 <a name="l00068"></a>00068 mat operator()( <span class="keywordtype">int</span> h, <span class="keywordtype">int</span> w );120 <a name="l00066"></a>00066 vec <a class="code" href="classitpp_1_1Gamma__RNG.html#98e2e65456bca33fca602b2bd607235e" title="Get one sample.">operator() </a>( <span class="keywordtype">int</span> n ); 121 <a name="l00068"></a>00068 mat <a class="code" href="classitpp_1_1Gamma__RNG.html#98e2e65456bca33fca602b2bd607235e" title="Get one sample.">operator() </a>( <span class="keywordtype">int</span> h, <span class="keywordtype">int</span> w ); 126 122 <a name="l00069"></a>00069 <span class="keyword">protected</span>: 127 123 <a name="l00070"></a>00070 <span class="keyword">private</span>: … … 143 139 <a name="l00091"></a>00091 }; 144 140 <a name="l00092"></a>00092 <span class="keywordtype">bool</span> qr ( <span class="keyword">const</span> mat &A, mat &R ); 145 <a name="l00093"></a>00093 <span class=" preprocessor">#endif</span>146 <a name="l00095"></a>00095 <span class=" preprocessor">std::string num2str ( double d );</span>147 <a name="l00096"></a>00096 <span class="preprocessor"></span>141 <a name="l00093"></a>00093 <span class="comment">//#endif</span> 142 <a name="l00095"></a>00095 <span class="comment"></span>std::string num2str ( <span class="keywordtype">double</span> d ); 143 <a name="l00096"></a>00096 148 144 <a name="l00098"></a>00098 std::string num2str ( <span class="keywordtype">int</span> i ); 149 145 <a name="l00099"></a>00099 … … 157 153 <a name="l00114"></a>00114 158 154 <a name="l00116"></a>00116 ivec unique(<span class="keyword">const</span> ivec &in); 159 <a name="l0011 7"></a>00117160 <a name="l00119"></a>00119 ivec unique_complement(<span class="keyword">const</span> ivec &in, <span class="keyword">const</span> ivec &base);161 <a name="l00120"></a>00120 }155 <a name="l00118"></a>00118 ivec unique_complement(<span class="keyword">const</span> ivec &in, <span class="keyword">const</span> ivec &base); 156 <a name="l00119"></a>00119 } 157 <a name="l00120"></a>00120 162 158 <a name="l00121"></a>00121 163 <a name="l00122"></a>00122 164 <a name="l00123"></a>00123 <span class="preprocessor">#endif //ITEX_H</span> 159 <a name="l00122"></a>00122 <span class="preprocessor">#endif //ITEX_H</span> 165 160 </pre></div></div> 166 <hr size="1" /><address style="text-align: right;"><small>Generated on Sun Sep 27 00:49:042009 for mixpp by 161 <hr size="1"><address style="text-align: right;"><small>Generated on Wed Oct 7 17:34:43 2009 for mixpp by 167 162 <a href="http://www.doxygen.org/index.html"> 168 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1</small></address>163 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address> 169 164 </body> 170 165 </html>