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>dSFMT: dSFMT.h Source File</title>
|
---|
4 | <link href="doxygen.css" rel="stylesheet" type="text/css">
|
---|
5 | <link href="tabs.css" rel="stylesheet" type="text/css">
|
---|
6 | </head><body>
|
---|
7 | <!-- Generated by Doxygen 1.5.5 -->
|
---|
8 | <div class="navigation" id="top">
|
---|
9 | <div class="tabs">
|
---|
10 | <ul>
|
---|
11 | <li><a href="index.html"><span>Main Page</span></a></li>
|
---|
12 | <li><a href="annotated.html"><span>Data Structures</span></a></li>
|
---|
13 | <li class="current"><a href="files.html"><span>Files</span></a></li>
|
---|
14 | </ul>
|
---|
15 | </div>
|
---|
16 | <h1>dSFMT.h</h1><a href="d_s_f_m_t_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
---|
17 | <a name="l00031"></a>00031 <span class="preprocessor">#ifndef DSFMT_H</span>
|
---|
18 | <a name="l00032"></a>00032 <span class="preprocessor"></span><span class="preprocessor">#define DSFMT_H</span>
|
---|
19 | <a name="l00033"></a>00033 <span class="preprocessor"></span>
|
---|
20 | <a name="l00034"></a>00034 <span class="preprocessor">#include <stdio.h></span>
|
---|
21 | <a name="l00035"></a>00035 <span class="preprocessor">#include <assert.h></span>
|
---|
22 | <a name="l00036"></a>00036
|
---|
23 | <a name="l00037"></a>00037 <span class="preprocessor">#if !defined(DSFMT_MEXP)</span>
|
---|
24 | <a name="l00038"></a>00038 <span class="preprocessor"></span><span class="preprocessor">#ifdef __GNUC__</span>
|
---|
25 | <a name="l00039"></a>00039 <span class="preprocessor"></span><span class="preprocessor"> #warning "DSFMT_MEXP is not defined. I assume DSFMT_MEXP is 19937."</span>
|
---|
26 | <a name="l00040"></a>00040 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
---|
27 | <a name="l00041"></a><a class="code" href="d_s_f_m_t_8h.html#eda2790c35e4e205219e3c0ef1a2dd0a">00041</a> <span class="preprocessor"></span><span class="preprocessor"> #define DSFMT_MEXP 19937</span>
|
---|
28 | <a name="l00042"></a>00042 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
---|
29 | <a name="l00043"></a>00043 <span class="preprocessor"></span><span class="comment">/*-----------------</span>
|
---|
30 | <a name="l00044"></a>00044 <span class="comment"> BASIC DEFINITIONS</span>
|
---|
31 | <a name="l00045"></a>00045 <span class="comment"> -----------------*/</span>
|
---|
32 | <a name="l00046"></a>00046 <span class="comment">/* Mersenne Exponent. The period of the sequence </span>
|
---|
33 | <a name="l00047"></a>00047 <span class="comment"> * is a multiple of 2^DSFMT_MEXP-1.</span>
|
---|
34 | <a name="l00048"></a>00048 <span class="comment"> * #define DSFMT_MEXP 19937 */</span>
|
---|
35 | <a name="l00051"></a><a class="code" href="d_s_f_m_t_8h.html#3b6595773bfd02df5481e6a459071a1c">00051</a> <span class="preprocessor">#define DSFMT_N ((DSFMT_MEXP - 128) / 104 + 1)</span>
|
---|
36 | <a name="l00052"></a>00052 <span class="preprocessor"></span>
|
---|
37 | <a name="l00054"></a><a class="code" href="d_s_f_m_t_8h.html#a0bbbd372d361b7fe3ea3ec2013c9097">00054</a> <span class="preprocessor">#define DSFMT_N32 (DSFMT_N * 4)</span>
|
---|
38 | <a name="l00055"></a>00055 <span class="preprocessor"></span>
|
---|
39 | <a name="l00057"></a><a class="code" href="d_s_f_m_t_8h.html#36560990b64532b75e95bf5b683599dc">00057</a> <span class="preprocessor">#define DSFMT_N64 (DSFMT_N * 2)</span>
|
---|
40 | <a name="l00058"></a>00058 <span class="preprocessor"></span>
|
---|
41 | <a name="l00059"></a>00059 <span class="preprocessor">#if !defined(DSFMT_BIG_ENDIAN)</span>
|
---|
42 | <a name="l00060"></a>00060 <span class="preprocessor"></span><span class="preprocessor"># if defined(__BYTE_ORDER) && defined(__BIG_ENDIAN)</span>
|
---|
43 | <a name="l00061"></a>00061 <span class="preprocessor"></span><span class="preprocessor"># if __BYTE_ORDER == __BIG_ENDIAN</span>
|
---|
44 | <a name="l00062"></a>00062 <span class="preprocessor"></span><span class="preprocessor"># define DSFMT_BIG_ENDIAN 1</span>
|
---|
45 | <a name="l00063"></a>00063 <span class="preprocessor"></span><span class="preprocessor"># endif</span>
|
---|
46 | <a name="l00064"></a>00064 <span class="preprocessor"></span><span class="preprocessor"># elif defined(_BYTE_ORDER) && defined(_BIG_ENDIAN)</span>
|
---|
47 | <a name="l00065"></a>00065 <span class="preprocessor"></span><span class="preprocessor"># if _BYTE_ORDER == _BIG_ENDIAN</span>
|
---|
48 | <a name="l00066"></a>00066 <span class="preprocessor"></span><span class="preprocessor"># define DSFMT_BIG_ENDIAN 1</span>
|
---|
49 | <a name="l00067"></a>00067 <span class="preprocessor"></span><span class="preprocessor"># endif</span>
|
---|
50 | <a name="l00068"></a>00068 <span class="preprocessor"></span><span class="preprocessor"># elif defined(__BYTE_ORDER__) && defined(__BIG_ENDIAN__)</span>
|
---|
51 | <a name="l00069"></a>00069 <span class="preprocessor"></span><span class="preprocessor"># if __BYTE_ORDER__ == __BIG_ENDIAN__</span>
|
---|
52 | <a name="l00070"></a>00070 <span class="preprocessor"></span><span class="preprocessor"># define DSFMT_BIG_ENDIAN 1</span>
|
---|
53 | <a name="l00071"></a>00071 <span class="preprocessor"></span><span class="preprocessor"># endif</span>
|
---|
54 | <a name="l00072"></a>00072 <span class="preprocessor"></span><span class="preprocessor"># elif defined(BYTE_ORDER) && defined(BIG_ENDIAN)</span>
|
---|
55 | <a name="l00073"></a>00073 <span class="preprocessor"></span><span class="preprocessor"># if BYTE_ORDER == BIG_ENDIAN</span>
|
---|
56 | <a name="l00074"></a>00074 <span class="preprocessor"></span><span class="preprocessor"># define DSFMT_BIG_ENDIAN 1</span>
|
---|
57 | <a name="l00075"></a>00075 <span class="preprocessor"></span><span class="preprocessor"># endif</span>
|
---|
58 | <a name="l00076"></a>00076 <span class="preprocessor"></span><span class="preprocessor"># elif defined(__BIG_ENDIAN) || defined(_BIG_ENDIAN) \</span>
|
---|
59 | <a name="l00077"></a>00077 <span class="preprocessor"> || defined(__BIG_ENDIAN__) || defined(BIG_ENDIAN)</span>
|
---|
60 | <a name="l00078"></a>00078 <span class="preprocessor"></span><span class="preprocessor"># define DSFMT_BIG_ENDIAN 1</span>
|
---|
61 | <a name="l00079"></a>00079 <span class="preprocessor"></span><span class="preprocessor"># endif</span>
|
---|
62 | <a name="l00080"></a>00080 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
---|
63 | <a name="l00081"></a>00081 <span class="preprocessor"></span>
|
---|
64 | <a name="l00082"></a>00082 <span class="preprocessor">#if defined(DSFMT_BIG_ENDIAN) && defined(__amd64)</span>
|
---|
65 | <a name="l00083"></a>00083 <span class="preprocessor"></span><span class="preprocessor"># undef DSFMT_BIG_ENDIAN</span>
|
---|
66 | <a name="l00084"></a>00084 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
---|
67 | <a name="l00085"></a>00085 <span class="preprocessor"></span>
|
---|
68 | <a name="l00086"></a>00086 <span class="preprocessor">#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)</span>
|
---|
69 | <a name="l00087"></a>00087 <span class="preprocessor"></span><span class="preprocessor"># include <inttypes.h></span>
|
---|
70 | <a name="l00088"></a>00088 <span class="preprocessor">#elif defined(_MSC_VER) || defined(__BORLANDC__)</span>
|
---|
71 | <a name="l00089"></a>00089 <span class="preprocessor"></span><span class="preprocessor"># if !defined(DSFMT_UINT32_DEFINED) && !defined(SFMT_UINT32_DEFINED)</span>
|
---|
72 | <a name="l00090"></a>00090 <span class="preprocessor"></span><span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> uint32_t;
|
---|
73 | <a name="l00091"></a>00091 <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> __int64 uint64_t;
|
---|
74 | <a name="l00092"></a>00092 <span class="preprocessor"># define UINT64_C(v) (v ## ui64)</span>
|
---|
75 | <a name="l00093"></a>00093 <span class="preprocessor"></span><span class="preprocessor"># define DSFMT_UINT32_DEFINED</span>
|
---|
76 | <a name="l00094"></a>00094 <span class="preprocessor"></span><span class="preprocessor"># if !defined(inline)</span>
|
---|
77 | <a name="l00095"></a>00095 <span class="preprocessor"></span><span class="preprocessor"># define inline __inline</span>
|
---|
78 | <a name="l00096"></a>00096 <span class="preprocessor"></span><span class="preprocessor"># endif</span>
|
---|
79 | <a name="l00097"></a>00097 <span class="preprocessor"></span><span class="preprocessor"># endif</span>
|
---|
80 | <a name="l00098"></a>00098 <span class="preprocessor"></span><span class="preprocessor">#else</span>
|
---|
81 | <a name="l00099"></a>00099 <span class="preprocessor"></span><span class="preprocessor"># include <inttypes.h></span>
|
---|
82 | <a name="l00100"></a>00100 <span class="preprocessor"># if !defined(inline)</span>
|
---|
83 | <a name="l00101"></a>00101 <span class="preprocessor"></span><span class="preprocessor"># if defined(__GNUC__)</span>
|
---|
84 | <a name="l00102"></a>00102 <span class="preprocessor"></span><span class="preprocessor"># define inline __inline__</span>
|
---|
85 | <a name="l00103"></a>00103 <span class="preprocessor"></span><span class="preprocessor"># else</span>
|
---|
86 | <a name="l00104"></a><a class="code" href="d_s_f_m_t_8h.html#00d24c7231be28dbaf71f5408f30e44c">00104</a> <span class="preprocessor"></span><span class="preprocessor"># define inline</span>
|
---|
87 | <a name="l00105"></a>00105 <span class="preprocessor"></span><span class="preprocessor"># endif</span>
|
---|
88 | <a name="l00106"></a>00106 <span class="preprocessor"></span><span class="preprocessor"># endif</span>
|
---|
89 | <a name="l00107"></a>00107 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
---|
90 | <a name="l00108"></a>00108 <span class="preprocessor"></span>
|
---|
91 | <a name="l00109"></a>00109 <span class="preprocessor">#ifndef PRIu64</span>
|
---|
92 | <a name="l00110"></a>00110 <span class="preprocessor"></span><span class="preprocessor"># if defined(_MSC_VER) || defined(__BORLANDC__)</span>
|
---|
93 | <a name="l00111"></a>00111 <span class="preprocessor"></span><span class="preprocessor"># define PRIu64 "I64u"</span>
|
---|
94 | <a name="l00112"></a>00112 <span class="preprocessor"></span><span class="preprocessor"># define PRIx64 "I64x"</span>
|
---|
95 | <a name="l00113"></a>00113 <span class="preprocessor"></span><span class="preprocessor"># else</span>
|
---|
96 | <a name="l00114"></a><a class="code" href="d_s_f_m_t_8h.html#c582131d7a7c8ee57e73180d1714f9d5">00114</a> <span class="preprocessor"></span><span class="preprocessor"># define PRIu64 "llu"</span>
|
---|
97 | <a name="l00115"></a><a class="code" href="d_s_f_m_t_8h.html#ba38357387a474f439428dee1984fc5a">00115</a> <span class="preprocessor"></span><span class="preprocessor"># define PRIx64 "llx"</span>
|
---|
98 | <a name="l00116"></a>00116 <span class="preprocessor"></span><span class="preprocessor"># endif</span>
|
---|
99 | <a name="l00117"></a>00117 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
---|
100 | <a name="l00118"></a>00118 <span class="preprocessor"></span>
|
---|
101 | <a name="l00119"></a>00119 <span class="preprocessor">#ifndef UINT64_C</span>
|
---|
102 | <a name="l00120"></a><a class="code" href="d_s_f_m_t_8h.html#014ce50c36f4de34281551e4da3d5195">00120</a> <span class="preprocessor"></span><span class="preprocessor"># define UINT64_C(v) (v ## ULL) </span>
|
---|
103 | <a name="l00121"></a>00121 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
---|
104 | <a name="l00122"></a>00122 <span class="preprocessor"></span>
|
---|
105 | <a name="l00123"></a>00123 <span class="comment">/*------------------------------------------</span>
|
---|
106 | <a name="l00124"></a>00124 <span class="comment"> 128-bit SIMD like data type for standard C</span>
|
---|
107 | <a name="l00125"></a>00125 <span class="comment"> ------------------------------------------*/</span>
|
---|
108 | <a name="l00126"></a>00126 <span class="preprocessor">#if defined(HAVE_ALTIVEC)</span>
|
---|
109 | <a name="l00127"></a>00127 <span class="preprocessor"></span><span class="preprocessor"># if !defined(__APPLE__)</span>
|
---|
110 | <a name="l00128"></a>00128 <span class="preprocessor"></span><span class="preprocessor"># include <altivec.h></span>
|
---|
111 | <a name="l00129"></a>00129 <span class="preprocessor"># endif</span>
|
---|
112 | <a name="l00130"></a>00130 <span class="preprocessor"></span>
|
---|
113 | <a name="l00131"></a>00131 <span class="keyword">union </span><a class="code" href="union_w128___t.html" title="128-bit data structure">W128_T</a> {
|
---|
114 | <a name="l00132"></a>00132 vector <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> s;
|
---|
115 | <a name="l00133"></a>00133 uint64_t <a class="code" href="union_w128___t.html#5f9319b0fdb9a62cc93fb5aade53e641">u</a>[2];
|
---|
116 | <a name="l00134"></a>00134 uint32_t <a class="code" href="union_w128___t.html#0fe5abc7066ccd41c10cbc6ad9d44195">u32</a>[4];
|
---|
117 | <a name="l00135"></a>00135 <span class="keywordtype">double</span> <a class="code" href="union_w128___t.html#f1781b30d4052a0832fb7e7cd992cb75">d</a>[2];
|
---|
118 | <a name="l00136"></a>00136 };
|
---|
119 | <a name="l00137"></a>00137
|
---|
120 | <a name="l00138"></a>00138 <span class="preprocessor">#elif defined(HAVE_SSE2)</span>
|
---|
121 | <a name="l00139"></a>00139 <span class="preprocessor"></span><span class="preprocessor"># include <emmintrin.h></span>
|
---|
122 | <a name="l00140"></a>00140
|
---|
123 | <a name="l00142"></a>00142 <span class="keyword">union </span><a class="code" href="union_w128___t.html" title="128-bit data structure">W128_T</a> {
|
---|
124 | <a name="l00143"></a>00143 __m128i si;
|
---|
125 | <a name="l00144"></a>00144 __m128d sd;
|
---|
126 | <a name="l00145"></a>00145 uint64_t <a class="code" href="union_w128___t.html#5f9319b0fdb9a62cc93fb5aade53e641">u</a>[2];
|
---|
127 | <a name="l00146"></a>00146 uint32_t <a class="code" href="union_w128___t.html#0fe5abc7066ccd41c10cbc6ad9d44195">u32</a>[4];
|
---|
128 | <a name="l00147"></a>00147 <span class="keywordtype">double</span> <a class="code" href="union_w128___t.html#f1781b30d4052a0832fb7e7cd992cb75">d</a>[2];
|
---|
129 | <a name="l00148"></a>00148 };
|
---|
130 | <a name="l00149"></a>00149 <span class="preprocessor">#else </span><span class="comment">/* standard C */</span>
|
---|
131 | <a name="l00150"></a>00150
|
---|
132 | <a name="l00151"></a><a class="code" href="union_w128___t.html">00151</a> <span class="keyword">union </span><a class="code" href="union_w128___t.html" title="128-bit data structure">W128_T</a> {
|
---|
133 | <a name="l00152"></a><a class="code" href="union_w128___t.html#5f9319b0fdb9a62cc93fb5aade53e641">00152</a> uint64_t <a class="code" href="union_w128___t.html#5f9319b0fdb9a62cc93fb5aade53e641">u</a>[2];
|
---|
134 | <a name="l00153"></a><a class="code" href="union_w128___t.html#0fe5abc7066ccd41c10cbc6ad9d44195">00153</a> uint32_t <a class="code" href="union_w128___t.html#0fe5abc7066ccd41c10cbc6ad9d44195">u32</a>[4];
|
---|
135 | <a name="l00154"></a><a class="code" href="union_w128___t.html#f1781b30d4052a0832fb7e7cd992cb75">00154</a> <span class="keywordtype">double</span> <a class="code" href="union_w128___t.html#f1781b30d4052a0832fb7e7cd992cb75">d</a>[2];
|
---|
136 | <a name="l00155"></a>00155 };
|
---|
137 | <a name="l00156"></a>00156 <span class="preprocessor">#endif</span>
|
---|
138 | <a name="l00157"></a>00157 <span class="preprocessor"></span>
|
---|
139 | <a name="l00159"></a><a class="code" href="d_s_f_m_t_8h.html#b1ee414cba9ca0f33a3716e7a92c2b79">00159</a> <span class="keyword">typedef</span> <span class="keyword">union </span><a class="code" href="union_w128___t.html" title="128-bit data structure">W128_T</a> <a class="code" href="union_w128___t.html" title="128-bit data structure">w128_t</a>;
|
---|
140 | <a name="l00160"></a>00160
|
---|
141 | <a name="l00162"></a><a class="code" href="struct_d_s_f_m_t___t.html">00162</a> <span class="keyword">struct </span><a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">DSFMT_T</a> {
|
---|
142 | <a name="l00163"></a><a class="code" href="struct_d_s_f_m_t___t.html#a7b5e6f3e8e109b75493514525854931">00163</a> <a class="code" href="union_w128___t.html" title="128-bit data structure">w128_t</a> <a class="code" href="struct_d_s_f_m_t___t.html#a7b5e6f3e8e109b75493514525854931">status</a>[<a class="code" href="d_s_f_m_t_8h.html#3b6595773bfd02df5481e6a459071a1c" title="DSFMT generator has an internal state array of 128-bit integers, and N is its size...">DSFMT_N</a> + 1];
|
---|
143 | <a name="l00164"></a><a class="code" href="struct_d_s_f_m_t___t.html#776de3ff937f19d246e7edce2676981a">00164</a> <span class="keywordtype">int</span> <a class="code" href="struct_d_s_f_m_t___t.html#776de3ff937f19d246e7edce2676981a">idx</a>;
|
---|
144 | <a name="l00165"></a>00165 };
|
---|
145 | <a name="l00166"></a><a class="code" href="d_s_f_m_t_8h.html#7e8239b4bedf4e53d5168d21848ab7af">00166</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">DSFMT_T</a> <a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a>;
|
---|
146 | <a name="l00167"></a>00167
|
---|
147 | <a name="l00169"></a>00169 <span class="keyword">extern</span> <a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> <a class="code" href="d_s_f_m_t_8h.html#dfee3c4c3505ddcfc334251f94968737" title="dsfmt internal state vector">dsfmt_global_data</a>;
|
---|
148 | <a name="l00171"></a>00171 <span class="keyword">extern</span> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="d_s_f_m_t_8h.html#b5bb9876d117b3cdf8143c701a3f8cdf" title="dsfmt mexp for check">dsfmt_global_mexp</a>;
|
---|
149 | <a name="l00172"></a>00172
|
---|
150 | <a name="l00173"></a>00173 <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#fccb1e4d75cea7ffe3b45cba53d1e5e0" title="This function fills the internal state array with double precision floating point...">dsfmt_gen_rand_all</a>(<a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> *dsfmt);
|
---|
151 | <a name="l00174"></a>00174 <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#6ad6f12b9a47ea89ceab693b1eec5079" title="This function generates double precision floating point pseudorandom numbers which...">dsfmt_fill_array_open_close</a>(<a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> *dsfmt, <span class="keywordtype">double</span> array[], <span class="keywordtype">int</span> size);
|
---|
152 | <a name="l00175"></a>00175 <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#243fb9ed1b61233f3dba4ab15c541eb0" title="This function generates double precision floating point pseudorandom numbers which...">dsfmt_fill_array_close_open</a>(<a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> *dsfmt, <span class="keywordtype">double</span> array[], <span class="keywordtype">int</span> size);
|
---|
153 | <a name="l00176"></a>00176 <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#eed310e17f9f652c1b0ec86298c834c1" title="This function generates double precision floating point pseudorandom numbers which...">dsfmt_fill_array_open_open</a>(<a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> *dsfmt, <span class="keywordtype">double</span> array[], <span class="keywordtype">int</span> size);
|
---|
154 | <a name="l00177"></a>00177 <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#beef257039f3b95b7475bbecdb521b89" title="This function generates double precision floating point pseudorandom numbers which...">dsfmt_fill_array_close1_open2</a>(<a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> *dsfmt, <span class="keywordtype">double</span> array[], <span class="keywordtype">int</span> size);
|
---|
155 | <a name="l00178"></a>00178 <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#2fa6a84095a280a4e1556415f3d4f259" title="This function initializes the internal state array with a 32-bit integer seed.">dsfmt_chk_init_gen_rand</a>(<a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> *dsfmt, uint32_t seed, <span class="keywordtype">int</span> mexp);
|
---|
156 | <a name="l00179"></a>00179 <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#91cef405a85910d4e56b4a1d10fb89f1" title="This function initializes the internal state array, with an array of 32-bit integers...">dsfmt_chk_init_by_array</a>(<a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> *dsfmt, uint32_t init_key[],
|
---|
157 | <a name="l00180"></a>00180 <span class="keywordtype">int</span> key_length, <span class="keywordtype">int</span> mexp);
|
---|
158 | <a name="l00181"></a>00181 <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="d_s_f_m_t_8h.html#f181eeb77513e5a399dd2c585cfaa055" title="This function returns the identification string.">dsfmt_get_idstring</a>(<span class="keywordtype">void</span>);
|
---|
159 | <a name="l00182"></a>00182 <span class="keywordtype">int</span> <a class="code" href="d_s_f_m_t_8h.html#f49cc1703b4cc1d0bffbd895917c303a" title="This function returns the minimum size of array used for fill_array functions.">dsfmt_get_min_array_size</a>(<span class="keywordtype">void</span>);
|
---|
160 | <a name="l00183"></a>00183
|
---|
161 | <a name="l00184"></a>00184 <span class="preprocessor">#if defined(__GNUC__)</span>
|
---|
162 | <a name="l00185"></a>00185 <span class="preprocessor"></span><span class="preprocessor"># define DSFMT_PRE_INLINE inline static</span>
|
---|
163 | <a name="l00186"></a>00186 <span class="preprocessor"></span><span class="preprocessor"># define DSFMT_PST_INLINE __attribute__((always_inline))</span>
|
---|
164 | <a name="l00187"></a>00187 <span class="preprocessor"></span><span class="preprocessor">#elif defined(_MSC_VER) && _MSC_VER >= 1200</span>
|
---|
165 | <a name="l00188"></a>00188 <span class="preprocessor"></span><span class="preprocessor"># define DSFMT_PRE_INLINE __forceinline static</span>
|
---|
166 | <a name="l00189"></a>00189 <span class="preprocessor"></span><span class="preprocessor"># define DSFMT_PST_INLINE</span>
|
---|
167 | <a name="l00190"></a>00190 <span class="preprocessor"></span><span class="preprocessor">#else</span>
|
---|
168 | <a name="l00191"></a><a class="code" href="d_s_f_m_t_8h.html#7490eb8287e4754e4e30153135f496e9">00191</a> <span class="preprocessor"></span><span class="preprocessor"># define DSFMT_PRE_INLINE inline static</span>
|
---|
169 | <a name="l00192"></a><a class="code" href="d_s_f_m_t_8h.html#5842d43aa58fb6f026a8fdc02cb15455">00192</a> <span class="preprocessor"></span><span class="preprocessor"># define DSFMT_PST_INLINE</span>
|
---|
170 | <a name="l00193"></a>00193 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
---|
171 | <a name="l00194"></a>00194 <span class="preprocessor"></span><a class="code" href="d_s_f_m_t_8h.html#7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> uint32_t <a class="code" href="d_s_f_m_t_8h.html#49fc44ce077ee57594b8102eb04145d9" title="This function generates and returns unsigned 32-bit integer.">dsfmt_genrand_uint32</a>(<a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> *dsfmt) <a class="code" href="d_s_f_m_t_8h.html#5842d43aa58fb6f026a8fdc02cb15455">DSFMT_PST_INLINE</a>;
|
---|
172 | <a name="l00195"></a>00195 <a class="code" href="d_s_f_m_t_8h.html#7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#e9bb29b63c46e57725dffa776cf930e7" title="This function generates and returns double precision pseudorandom number which distributes...">dsfmt_genrand_close1_open2</a>(<a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> *dsfmt)
|
---|
173 | <a name="l00196"></a>00196 <a class="code" href="d_s_f_m_t_8h.html#5842d43aa58fb6f026a8fdc02cb15455">DSFMT_PST_INLINE</a>;
|
---|
174 | <a name="l00197"></a>00197 <a class="code" href="d_s_f_m_t_8h.html#7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#989a29c7d5616755721ee41f0d1c3982" title="This function generates and returns double precision pseudorandom number which distributes...">dsfmt_genrand_close_open</a>(<a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> *dsfmt)
|
---|
175 | <a name="l00198"></a>00198 <a class="code" href="d_s_f_m_t_8h.html#5842d43aa58fb6f026a8fdc02cb15455">DSFMT_PST_INLINE</a>;
|
---|
176 | <a name="l00199"></a>00199 <a class="code" href="d_s_f_m_t_8h.html#7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#c8916cdece1e0ed671077ba869aae509" title="This function generates and returns double precision pseudorandom number which distributes...">dsfmt_genrand_open_close</a>(<a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> *dsfmt)
|
---|
177 | <a name="l00200"></a>00200 <a class="code" href="d_s_f_m_t_8h.html#5842d43aa58fb6f026a8fdc02cb15455">DSFMT_PST_INLINE</a>;
|
---|
178 | <a name="l00201"></a>00201 <a class="code" href="d_s_f_m_t_8h.html#7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#147a0a05c969a4cb5d92ce3963b839c2" title="This function generates and returns double precision pseudorandom number which distributes...">dsfmt_genrand_open_open</a>(<a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> *dsfmt)
|
---|
179 | <a name="l00202"></a>00202 <a class="code" href="d_s_f_m_t_8h.html#5842d43aa58fb6f026a8fdc02cb15455">DSFMT_PST_INLINE</a>;
|
---|
180 | <a name="l00203"></a>00203 <a class="code" href="d_s_f_m_t_8h.html#7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> uint32_t <a class="code" href="d_s_f_m_t_8h.html#de87b39b59a4f8c2e09c5ad25a53b515" title="This function generates and returns unsigned 32-bit integer.">dsfmt_gv_genrand_uint32</a>(<span class="keywordtype">void</span>) <a class="code" href="d_s_f_m_t_8h.html#5842d43aa58fb6f026a8fdc02cb15455">DSFMT_PST_INLINE</a>;
|
---|
181 | <a name="l00204"></a>00204 <a class="code" href="d_s_f_m_t_8h.html#7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#f298572e9f2449e59ddf486977006621" title="This function generates and returns double precision pseudorandom number which distributes...">dsfmt_gv_genrand_close1_open2</a>(<span class="keywordtype">void</span>) DSFMT_PST_INLINE;
|
---|
182 | <a name="l00205"></a>00205 <a class="code" href="d_s_f_m_t_8h.html#7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#e57b11ef3fdcf04e84fc0298166aab82" title="This function generates and returns double precision pseudorandom number which distributes...">dsfmt_gv_genrand_close_open</a>(<span class="keywordtype">void</span>) DSFMT_PST_INLINE;
|
---|
183 | <a name="l00206"></a>00206 <a class="code" href="d_s_f_m_t_8h.html#7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#fcdb7f3f26ca2d4a8f4e3854209fd4dd" title="This function generates and returns double precision pseudorandom number which distributes...">dsfmt_gv_genrand_open_close</a>(<span class="keywordtype">void</span>) DSFMT_PST_INLINE;
|
---|
184 | <a name="l00207"></a>00207 <a class="code" href="d_s_f_m_t_8h.html#7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#f6dbcef408462da1f40edd1a1ea5dcd3" title="This function generates and returns double precision pseudorandom number which distributes...">dsfmt_gv_genrand_open_open</a>(<span class="keywordtype">void</span>) DSFMT_PST_INLINE;
|
---|
185 | <a name="l00208"></a>00208 <a class="code" href="d_s_f_m_t_8h.html#7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#92deacd8f90f332a130ab5a6fdae8348" title="This function generates double precision floating point pseudorandom numbers which...">dsfmt_gv_fill_array_open_close</a>(<span class="keywordtype">double</span> array[], <span class="keywordtype">int</span> size)
|
---|
186 | <a name="l00209"></a>00209 DSFMT_PST_INLINE;
|
---|
187 | <a name="l00210"></a>00210 <a class="code" href="d_s_f_m_t_8h.html#7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#27e4b624752149e0450056a317d09214" title="This function generates double precision floating point pseudorandom numbers which...">dsfmt_gv_fill_array_close_open</a>(<span class="keywordtype">double</span> array[], <span class="keywordtype">int</span> size)
|
---|
188 | <a name="l00211"></a>00211 DSFMT_PST_INLINE;
|
---|
189 | <a name="l00212"></a>00212 <a class="code" href="d_s_f_m_t_8h.html#7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#871323d18c3525787f63fcf071c4787d" title="This function generates double precision floating point pseudorandom numbers which...">dsfmt_gv_fill_array_open_open</a>(<span class="keywordtype">double</span> array[], <span class="keywordtype">int</span> size)
|
---|
190 | <a name="l00213"></a>00213 DSFMT_PST_INLINE;
|
---|
191 | <a name="l00214"></a>00214 <a class="code" href="d_s_f_m_t_8h.html#7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#e0ed5a2ba6eb6f21fa591a54020af3ac" title="This function generates double precision floating point pseudorandom numbers which...">dsfmt_gv_fill_array_close1_open2</a>(<span class="keywordtype">double</span> array[], <span class="keywordtype">int</span> size)
|
---|
192 | <a name="l00215"></a>00215 DSFMT_PST_INLINE;
|
---|
193 | <a name="l00216"></a>00216 <a class="code" href="d_s_f_m_t_8h.html#7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#74e3849c0ae0929d57c9c9ac52d58cc8" title="This function initializes the internal state array with a 32-bit integer seed.">dsfmt_gv_init_gen_rand</a>(uint32_t seed) DSFMT_PST_INLINE;
|
---|
194 | <a name="l00217"></a>00217 <a class="code" href="d_s_f_m_t_8h.html#7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#4f989ee92f5e4c8f71570dbb9d19e838" title="This function initializes the internal state array, with an array of 32-bit integers...">dsfmt_gv_init_by_array</a>(uint32_t init_key[],
|
---|
195 | <a name="l00218"></a>00218 <span class="keywordtype">int</span> key_length) DSFMT_PST_INLINE;
|
---|
196 | <a name="l00219"></a>00219 <a class="code" href="d_s_f_m_t_8h.html#7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#8df497c74e469b5f42e8a22d93124d41" title="This function initializes the internal state array with a 32-bit integer seed.">dsfmt_init_gen_rand</a>(<a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> *dsfmt, uint32_t seed)
|
---|
197 | <a name="l00220"></a>00220 DSFMT_PST_INLINE;
|
---|
198 | <a name="l00221"></a>00221 <a class="code" href="d_s_f_m_t_8h.html#7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#0914ba62e9a46b6a1f04f27caa83ba87" title="This function initializes the internal state array, with an array of 32-bit integers...">dsfmt_init_by_array</a>(<a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> *dsfmt, uint32_t init_key[],
|
---|
199 | <a name="l00222"></a>00222 <span class="keywordtype">int</span> key_length) DSFMT_PST_INLINE;
|
---|
200 | <a name="l00223"></a>00223
|
---|
201 | <a name="l00232"></a><a class="code" href="d_s_f_m_t_8h.html#49fc44ce077ee57594b8102eb04145d9">00232</a> <a class="code" href="d_s_f_m_t_8h.html#00d24c7231be28dbaf71f5408f30e44c">inline</a> static uint32_t <a class="code" href="d_s_f_m_t_8h.html#49fc44ce077ee57594b8102eb04145d9" title="This function generates and returns unsigned 32-bit integer.">dsfmt_genrand_uint32</a>(<a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> *dsfmt) {
|
---|
202 | <a name="l00233"></a>00233 uint32_t r;
|
---|
203 | <a name="l00234"></a>00234 uint64_t *psfmt64 = &dsfmt->status[0].u[0];
|
---|
204 | <a name="l00235"></a>00235
|
---|
205 | <a name="l00236"></a>00236 <span class="keywordflow">if</span> (dsfmt->idx >= <a class="code" href="d_s_f_m_t_8h.html#36560990b64532b75e95bf5b683599dc" title="N64 is the size of internal state array when regarded as an array of 64-bit integers...">DSFMT_N64</a>) {
|
---|
206 | <a name="l00237"></a>00237 <a class="code" href="d_s_f_m_t_8h.html#fccb1e4d75cea7ffe3b45cba53d1e5e0" title="This function fills the internal state array with double precision floating point...">dsfmt_gen_rand_all</a>(dsfmt);
|
---|
207 | <a name="l00238"></a>00238 dsfmt->idx = 0;
|
---|
208 | <a name="l00239"></a>00239 }
|
---|
209 | <a name="l00240"></a>00240 r = psfmt64[dsfmt->idx++] & 0xffffffffU;
|
---|
210 | <a name="l00241"></a>00241 <span class="keywordflow">return</span> r;
|
---|
211 | <a name="l00242"></a>00242 }
|
---|
212 | <a name="l00243"></a>00243
|
---|
213 | <a name="l00253"></a><a class="code" href="d_s_f_m_t_8h.html#e9bb29b63c46e57725dffa776cf930e7">00253</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#e9bb29b63c46e57725dffa776cf930e7" title="This function generates and returns double precision pseudorandom number which distributes...">dsfmt_genrand_close1_open2</a>(<a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> *dsfmt) {
|
---|
214 | <a name="l00254"></a>00254 <span class="keywordtype">double</span> r;
|
---|
215 | <a name="l00255"></a>00255 <span class="keywordtype">double</span> *psfmt64 = &dsfmt-><a class="code" href="struct_d_s_f_m_t___t.html#a7b5e6f3e8e109b75493514525854931">status</a>[0].<a class="code" href="union_w128___t.html#f1781b30d4052a0832fb7e7cd992cb75">d</a>[0];
|
---|
216 | <a name="l00256"></a>00256
|
---|
217 | <a name="l00257"></a>00257 <span class="keywordflow">if</span> (dsfmt-><a class="code" href="struct_d_s_f_m_t___t.html#776de3ff937f19d246e7edce2676981a">idx</a> >= <a class="code" href="d_s_f_m_t_8h.html#36560990b64532b75e95bf5b683599dc" title="N64 is the size of internal state array when regarded as an array of 64-bit integers...">DSFMT_N64</a>) {
|
---|
218 | <a name="l00258"></a>00258 <a class="code" href="d_s_f_m_t_8h.html#fccb1e4d75cea7ffe3b45cba53d1e5e0" title="This function fills the internal state array with double precision floating point...">dsfmt_gen_rand_all</a>(dsfmt);
|
---|
219 | <a name="l00259"></a>00259 dsfmt-><a class="code" href="struct_d_s_f_m_t___t.html#776de3ff937f19d246e7edce2676981a">idx</a> = 0;
|
---|
220 | <a name="l00260"></a>00260 }
|
---|
221 | <a name="l00261"></a>00261 r = psfmt64[dsfmt-><a class="code" href="struct_d_s_f_m_t___t.html#776de3ff937f19d246e7edce2676981a">idx</a>++];
|
---|
222 | <a name="l00262"></a>00262 <span class="keywordflow">return</span> r;
|
---|
223 | <a name="l00263"></a>00263 }
|
---|
224 | <a name="l00264"></a>00264
|
---|
225 | <a name="l00272"></a><a class="code" href="d_s_f_m_t_8h.html#de87b39b59a4f8c2e09c5ad25a53b515">00272</a> <span class="keyword">inline</span> <span class="keyword">static</span> uint32_t <a class="code" href="d_s_f_m_t_8h.html#de87b39b59a4f8c2e09c5ad25a53b515" title="This function generates and returns unsigned 32-bit integer.">dsfmt_gv_genrand_uint32</a>(<span class="keywordtype">void</span>) {
|
---|
226 | <a name="l00273"></a>00273 <span class="keywordflow">return</span> <a class="code" href="d_s_f_m_t_8h.html#49fc44ce077ee57594b8102eb04145d9" title="This function generates and returns unsigned 32-bit integer.">dsfmt_genrand_uint32</a>(&<a class="code" href="d_s_f_m_t_8h.html#dfee3c4c3505ddcfc334251f94968737" title="dsfmt internal state vector">dsfmt_global_data</a>);
|
---|
227 | <a name="l00274"></a>00274 }
|
---|
228 | <a name="l00275"></a>00275
|
---|
229 | <a name="l00283"></a><a class="code" href="d_s_f_m_t_8h.html#f298572e9f2449e59ddf486977006621">00283</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#f298572e9f2449e59ddf486977006621" title="This function generates and returns double precision pseudorandom number which distributes...">dsfmt_gv_genrand_close1_open2</a>(<span class="keywordtype">void</span>) {
|
---|
230 | <a name="l00284"></a>00284 <span class="keywordflow">return</span> <a class="code" href="d_s_f_m_t_8h.html#e9bb29b63c46e57725dffa776cf930e7" title="This function generates and returns double precision pseudorandom number which distributes...">dsfmt_genrand_close1_open2</a>(&<a class="code" href="d_s_f_m_t_8h.html#dfee3c4c3505ddcfc334251f94968737" title="dsfmt internal state vector">dsfmt_global_data</a>);
|
---|
231 | <a name="l00285"></a>00285 }
|
---|
232 | <a name="l00286"></a>00286
|
---|
233 | <a name="l00295"></a><a class="code" href="d_s_f_m_t_8h.html#989a29c7d5616755721ee41f0d1c3982">00295</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#989a29c7d5616755721ee41f0d1c3982" title="This function generates and returns double precision pseudorandom number which distributes...">dsfmt_genrand_close_open</a>(<a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> *dsfmt) {
|
---|
234 | <a name="l00296"></a>00296 <span class="keywordflow">return</span> <a class="code" href="d_s_f_m_t_8h.html#e9bb29b63c46e57725dffa776cf930e7" title="This function generates and returns double precision pseudorandom number which distributes...">dsfmt_genrand_close1_open2</a>(dsfmt) - 1.0;
|
---|
235 | <a name="l00297"></a>00297 }
|
---|
236 | <a name="l00298"></a>00298
|
---|
237 | <a name="l00306"></a><a class="code" href="d_s_f_m_t_8h.html#e57b11ef3fdcf04e84fc0298166aab82">00306</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#e57b11ef3fdcf04e84fc0298166aab82" title="This function generates and returns double precision pseudorandom number which distributes...">dsfmt_gv_genrand_close_open</a>(<span class="keywordtype">void</span>) {
|
---|
238 | <a name="l00307"></a>00307 <span class="keywordflow">return</span> <a class="code" href="d_s_f_m_t_8h.html#f298572e9f2449e59ddf486977006621" title="This function generates and returns double precision pseudorandom number which distributes...">dsfmt_gv_genrand_close1_open2</a>() - 1.0;
|
---|
239 | <a name="l00308"></a>00308 }
|
---|
240 | <a name="l00309"></a>00309
|
---|
241 | <a name="l00318"></a><a class="code" href="d_s_f_m_t_8h.html#c8916cdece1e0ed671077ba869aae509">00318</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#c8916cdece1e0ed671077ba869aae509" title="This function generates and returns double precision pseudorandom number which distributes...">dsfmt_genrand_open_close</a>(<a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> *dsfmt) {
|
---|
242 | <a name="l00319"></a>00319 <span class="keywordflow">return</span> 2.0 - <a class="code" href="d_s_f_m_t_8h.html#e9bb29b63c46e57725dffa776cf930e7" title="This function generates and returns double precision pseudorandom number which distributes...">dsfmt_genrand_close1_open2</a>(dsfmt);
|
---|
243 | <a name="l00320"></a>00320 }
|
---|
244 | <a name="l00321"></a>00321
|
---|
245 | <a name="l00329"></a><a class="code" href="d_s_f_m_t_8h.html#fcdb7f3f26ca2d4a8f4e3854209fd4dd">00329</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#fcdb7f3f26ca2d4a8f4e3854209fd4dd" title="This function generates and returns double precision pseudorandom number which distributes...">dsfmt_gv_genrand_open_close</a>(<span class="keywordtype">void</span>) {
|
---|
246 | <a name="l00330"></a>00330 <span class="keywordflow">return</span> 2.0 - <a class="code" href="d_s_f_m_t_8h.html#f298572e9f2449e59ddf486977006621" title="This function generates and returns double precision pseudorandom number which distributes...">dsfmt_gv_genrand_close1_open2</a>();
|
---|
247 | <a name="l00331"></a>00331 }
|
---|
248 | <a name="l00332"></a>00332
|
---|
249 | <a name="l00341"></a><a class="code" href="d_s_f_m_t_8h.html#147a0a05c969a4cb5d92ce3963b839c2">00341</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#147a0a05c969a4cb5d92ce3963b839c2" title="This function generates and returns double precision pseudorandom number which distributes...">dsfmt_genrand_open_open</a>(<a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> *dsfmt) {
|
---|
250 | <a name="l00342"></a>00342 <span class="keywordtype">double</span> *dsfmt64 = &dsfmt-><a class="code" href="struct_d_s_f_m_t___t.html#a7b5e6f3e8e109b75493514525854931">status</a>[0].<a class="code" href="union_w128___t.html#f1781b30d4052a0832fb7e7cd992cb75">d</a>[0];
|
---|
251 | <a name="l00343"></a>00343 <span class="keyword">union </span>{
|
---|
252 | <a name="l00344"></a>00344 <span class="keywordtype">double</span> d;
|
---|
253 | <a name="l00345"></a>00345 uint64_t u;
|
---|
254 | <a name="l00346"></a>00346 } r;
|
---|
255 | <a name="l00347"></a>00347
|
---|
256 | <a name="l00348"></a>00348 <span class="keywordflow">if</span> (dsfmt-><a class="code" href="struct_d_s_f_m_t___t.html#776de3ff937f19d246e7edce2676981a">idx</a> >= <a class="code" href="d_s_f_m_t_8h.html#36560990b64532b75e95bf5b683599dc" title="N64 is the size of internal state array when regarded as an array of 64-bit integers...">DSFMT_N64</a>) {
|
---|
257 | <a name="l00349"></a>00349 <a class="code" href="d_s_f_m_t_8h.html#fccb1e4d75cea7ffe3b45cba53d1e5e0" title="This function fills the internal state array with double precision floating point...">dsfmt_gen_rand_all</a>(dsfmt);
|
---|
258 | <a name="l00350"></a>00350 dsfmt-><a class="code" href="struct_d_s_f_m_t___t.html#776de3ff937f19d246e7edce2676981a">idx</a> = 0;
|
---|
259 | <a name="l00351"></a>00351 }
|
---|
260 | <a name="l00352"></a>00352 r.d = dsfmt64[dsfmt-><a class="code" href="struct_d_s_f_m_t___t.html#776de3ff937f19d246e7edce2676981a">idx</a>++];
|
---|
261 | <a name="l00353"></a>00353 r.u |= 1;
|
---|
262 | <a name="l00354"></a>00354 <span class="keywordflow">return</span> r.d - 1.0;
|
---|
263 | <a name="l00355"></a>00355 }
|
---|
264 | <a name="l00356"></a>00356
|
---|
265 | <a name="l00364"></a><a class="code" href="d_s_f_m_t_8h.html#f6dbcef408462da1f40edd1a1ea5dcd3">00364</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#f6dbcef408462da1f40edd1a1ea5dcd3" title="This function generates and returns double precision pseudorandom number which distributes...">dsfmt_gv_genrand_open_open</a>(<span class="keywordtype">void</span>) {
|
---|
266 | <a name="l00365"></a>00365 <span class="keywordflow">return</span> <a class="code" href="d_s_f_m_t_8h.html#147a0a05c969a4cb5d92ce3963b839c2" title="This function generates and returns double precision pseudorandom number which distributes...">dsfmt_genrand_open_open</a>(&<a class="code" href="d_s_f_m_t_8h.html#dfee3c4c3505ddcfc334251f94968737" title="dsfmt internal state vector">dsfmt_global_data</a>);
|
---|
267 | <a name="l00366"></a>00366 }
|
---|
268 | <a name="l00367"></a>00367
|
---|
269 | <a name="l00379"></a><a class="code" href="d_s_f_m_t_8h.html#e0ed5a2ba6eb6f21fa591a54020af3ac">00379</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#e0ed5a2ba6eb6f21fa591a54020af3ac" title="This function generates double precision floating point pseudorandom numbers which...">dsfmt_gv_fill_array_close1_open2</a>(<span class="keywordtype">double</span> array[], <span class="keywordtype">int</span> size) {
|
---|
270 | <a name="l00380"></a>00380 <a class="code" href="d_s_f_m_t_8h.html#beef257039f3b95b7475bbecdb521b89" title="This function generates double precision floating point pseudorandom numbers which...">dsfmt_fill_array_close1_open2</a>(&<a class="code" href="d_s_f_m_t_8h.html#dfee3c4c3505ddcfc334251f94968737" title="dsfmt internal state vector">dsfmt_global_data</a>, array, size);
|
---|
271 | <a name="l00381"></a>00381 }
|
---|
272 | <a name="l00382"></a>00382
|
---|
273 | <a name="l00395"></a><a class="code" href="d_s_f_m_t_8h.html#92deacd8f90f332a130ab5a6fdae8348">00395</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#92deacd8f90f332a130ab5a6fdae8348" title="This function generates double precision floating point pseudorandom numbers which...">dsfmt_gv_fill_array_open_close</a>(<span class="keywordtype">double</span> array[], <span class="keywordtype">int</span> size) {
|
---|
274 | <a name="l00396"></a>00396 <a class="code" href="d_s_f_m_t_8h.html#6ad6f12b9a47ea89ceab693b1eec5079" title="This function generates double precision floating point pseudorandom numbers which...">dsfmt_fill_array_open_close</a>(&<a class="code" href="d_s_f_m_t_8h.html#dfee3c4c3505ddcfc334251f94968737" title="dsfmt internal state vector">dsfmt_global_data</a>, array, size);
|
---|
275 | <a name="l00397"></a>00397 }
|
---|
276 | <a name="l00398"></a>00398
|
---|
277 | <a name="l00411"></a><a class="code" href="d_s_f_m_t_8h.html#27e4b624752149e0450056a317d09214">00411</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#27e4b624752149e0450056a317d09214" title="This function generates double precision floating point pseudorandom numbers which...">dsfmt_gv_fill_array_close_open</a>(<span class="keywordtype">double</span> array[], <span class="keywordtype">int</span> size) {
|
---|
278 | <a name="l00412"></a>00412 <a class="code" href="d_s_f_m_t_8h.html#243fb9ed1b61233f3dba4ab15c541eb0" title="This function generates double precision floating point pseudorandom numbers which...">dsfmt_fill_array_close_open</a>(&<a class="code" href="d_s_f_m_t_8h.html#dfee3c4c3505ddcfc334251f94968737" title="dsfmt internal state vector">dsfmt_global_data</a>, array, size);
|
---|
279 | <a name="l00413"></a>00413 }
|
---|
280 | <a name="l00414"></a>00414
|
---|
281 | <a name="l00427"></a><a class="code" href="d_s_f_m_t_8h.html#871323d18c3525787f63fcf071c4787d">00427</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#871323d18c3525787f63fcf071c4787d" title="This function generates double precision floating point pseudorandom numbers which...">dsfmt_gv_fill_array_open_open</a>(<span class="keywordtype">double</span> array[], <span class="keywordtype">int</span> size) {
|
---|
282 | <a name="l00428"></a>00428 <a class="code" href="d_s_f_m_t_8h.html#eed310e17f9f652c1b0ec86298c834c1" title="This function generates double precision floating point pseudorandom numbers which...">dsfmt_fill_array_open_open</a>(&<a class="code" href="d_s_f_m_t_8h.html#dfee3c4c3505ddcfc334251f94968737" title="dsfmt internal state vector">dsfmt_global_data</a>, array, size);
|
---|
283 | <a name="l00429"></a>00429 }
|
---|
284 | <a name="l00430"></a>00430
|
---|
285 | <a name="l00437"></a><a class="code" href="d_s_f_m_t_8h.html#8df497c74e469b5f42e8a22d93124d41">00437</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#8df497c74e469b5f42e8a22d93124d41" title="This function initializes the internal state array with a 32-bit integer seed.">dsfmt_init_gen_rand</a>(<a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> *dsfmt, uint32_t seed) {
|
---|
286 | <a name="l00438"></a>00438 <a class="code" href="d_s_f_m_t_8h.html#2fa6a84095a280a4e1556415f3d4f259" title="This function initializes the internal state array with a 32-bit integer seed.">dsfmt_chk_init_gen_rand</a>(dsfmt, seed, <a class="code" href="d_s_f_m_t_8h.html#eda2790c35e4e205219e3c0ef1a2dd0a">DSFMT_MEXP</a>);
|
---|
287 | <a name="l00439"></a>00439 }
|
---|
288 | <a name="l00440"></a>00440
|
---|
289 | <a name="l00447"></a><a class="code" href="d_s_f_m_t_8h.html#74e3849c0ae0929d57c9c9ac52d58cc8">00447</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#74e3849c0ae0929d57c9c9ac52d58cc8" title="This function initializes the internal state array with a 32-bit integer seed.">dsfmt_gv_init_gen_rand</a>(uint32_t seed) {
|
---|
290 | <a name="l00448"></a>00448 <a class="code" href="d_s_f_m_t_8h.html#8df497c74e469b5f42e8a22d93124d41" title="This function initializes the internal state array with a 32-bit integer seed.">dsfmt_init_gen_rand</a>(&<a class="code" href="d_s_f_m_t_8h.html#dfee3c4c3505ddcfc334251f94968737" title="dsfmt internal state vector">dsfmt_global_data</a>, seed);
|
---|
291 | <a name="l00449"></a>00449 }
|
---|
292 | <a name="l00450"></a>00450
|
---|
293 | <a name="l00458"></a><a class="code" href="d_s_f_m_t_8h.html#0914ba62e9a46b6a1f04f27caa83ba87">00458</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#0914ba62e9a46b6a1f04f27caa83ba87" title="This function initializes the internal state array, with an array of 32-bit integers...">dsfmt_init_by_array</a>(<a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> *dsfmt, uint32_t init_key[],
|
---|
294 | <a name="l00459"></a>00459 <span class="keywordtype">int</span> key_length) {
|
---|
295 | <a name="l00460"></a>00460 <a class="code" href="d_s_f_m_t_8h.html#91cef405a85910d4e56b4a1d10fb89f1" title="This function initializes the internal state array, with an array of 32-bit integers...">dsfmt_chk_init_by_array</a>(dsfmt, init_key, key_length, <a class="code" href="d_s_f_m_t_8h.html#eda2790c35e4e205219e3c0ef1a2dd0a">DSFMT_MEXP</a>);
|
---|
296 | <a name="l00461"></a>00461 }
|
---|
297 | <a name="l00462"></a>00462
|
---|
298 | <a name="l00471"></a><a class="code" href="d_s_f_m_t_8h.html#4f989ee92f5e4c8f71570dbb9d19e838">00471</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#4f989ee92f5e4c8f71570dbb9d19e838" title="This function initializes the internal state array, with an array of 32-bit integers...">dsfmt_gv_init_by_array</a>(uint32_t init_key[], <span class="keywordtype">int</span> key_length) {
|
---|
299 | <a name="l00472"></a>00472 <a class="code" href="d_s_f_m_t_8h.html#0914ba62e9a46b6a1f04f27caa83ba87" title="This function initializes the internal state array, with an array of 32-bit integers...">dsfmt_init_by_array</a>(&<a class="code" href="d_s_f_m_t_8h.html#dfee3c4c3505ddcfc334251f94968737" title="dsfmt internal state vector">dsfmt_global_data</a>, init_key, key_length);
|
---|
300 | <a name="l00473"></a>00473 }
|
---|
301 | <a name="l00474"></a>00474
|
---|
302 | <a name="l00475"></a>00475 <span class="preprocessor">#if !defined(DSFMT_DO_NOT_USE_OLD_NAMES)</span>
|
---|
303 | <a name="l00476"></a>00476 <span class="preprocessor"></span><a class="code" href="d_s_f_m_t_8h.html#7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="d_s_f_m_t_8h.html#2792d3dd76b6ae051d60830b676622ba" title="This function is just the same as dsfmt_get_idstring().">get_idstring</a>(<span class="keywordtype">void</span>) <a class="code" href="d_s_f_m_t_8h.html#5842d43aa58fb6f026a8fdc02cb15455">DSFMT_PST_INLINE</a>;
|
---|
304 | <a name="l00477"></a>00477 <a class="code" href="d_s_f_m_t_8h.html#7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">int</span> <a class="code" href="d_s_f_m_t_8h.html#75ebedeed1c3d5e8576c53e5ce215fea" title="This function is just the same as dsfmt_get_min_array_size().">get_min_array_size</a>(<span class="keywordtype">void</span>) DSFMT_PST_INLINE;
|
---|
305 | <a name="l00478"></a>00478 <a class="code" href="d_s_f_m_t_8h.html#7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#985425dba38a16554d3f2a9ee3a41e1b" title="This function is just the same as dsfmt_gv_init_gen_rand().">init_gen_rand</a>(uint32_t seed) DSFMT_PST_INLINE;
|
---|
306 | <a name="l00479"></a>00479 <a class="code" href="d_s_f_m_t_8h.html#7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#5f12cfe61e34b29a9c4f88f097712205" title="This function is just the same as dsfmt_gv_init_by_array().">init_by_array</a>(uint32_t init_key[], <span class="keywordtype">int</span> key_length)
|
---|
307 | <a name="l00480"></a>00480 DSFMT_PST_INLINE;
|
---|
308 | <a name="l00481"></a>00481 <a class="code" href="d_s_f_m_t_8h.html#7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#01bce92db767a0f976b56f88f8f89515" title="This function is just the same as dsfmt_gv_genrand_close1_open2().">genrand_close1_open2</a>(<span class="keywordtype">void</span>) DSFMT_PST_INLINE;
|
---|
309 | <a name="l00482"></a>00482 <a class="code" href="d_s_f_m_t_8h.html#7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#188b24295a56aa56f823c7dfb0615971" title="This function is just the same as dsfmt_gv_genrand_close_open().">genrand_close_open</a>(<span class="keywordtype">void</span>) DSFMT_PST_INLINE;
|
---|
310 | <a name="l00483"></a>00483 <a class="code" href="d_s_f_m_t_8h.html#7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#b24d54ba54b0249c02200a7f3232b342" title="This function is just the same as dsfmt_gv_genrand_open_close().">genrand_open_close</a>(<span class="keywordtype">void</span>) DSFMT_PST_INLINE;
|
---|
311 | <a name="l00484"></a>00484 <a class="code" href="d_s_f_m_t_8h.html#7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#902ef40cb5e9e3caad2cfb478224c071" title="This function is just the same as dsfmt_gv_genrand_open_open().">genrand_open_open</a>(<span class="keywordtype">void</span>) DSFMT_PST_INLINE;
|
---|
312 | <a name="l00485"></a>00485 <a class="code" href="d_s_f_m_t_8h.html#7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#4d6c1e2049214ae128c1f9226ad683b9" title="This function is juset the same as dsfmt_gv_fill_array_open_close().">fill_array_open_close</a>(<span class="keywordtype">double</span> array[], <span class="keywordtype">int</span> size)
|
---|
313 | <a name="l00486"></a>00486 DSFMT_PST_INLINE;
|
---|
314 | <a name="l00487"></a>00487 <a class="code" href="d_s_f_m_t_8h.html#7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#5a6dd5166f4dcc137bce8f1aeea758a5" title="This function is juset the same as dsfmt_gv_fill_array_close_open().">fill_array_close_open</a>(<span class="keywordtype">double</span> array[], <span class="keywordtype">int</span> size)
|
---|
315 | <a name="l00488"></a>00488 DSFMT_PST_INLINE;
|
---|
316 | <a name="l00489"></a>00489 <a class="code" href="d_s_f_m_t_8h.html#7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#deaef304a7f9f262588bdbcf780feb42" title="This function is juset the same as dsfmt_gv_fill_array_open_open().">fill_array_open_open</a>(<span class="keywordtype">double</span> array[], <span class="keywordtype">int</span> size)
|
---|
317 | <a name="l00490"></a>00490 DSFMT_PST_INLINE;
|
---|
318 | <a name="l00491"></a>00491 <a class="code" href="d_s_f_m_t_8h.html#7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#98e1c0307c01044eb8d1c5136b59af9d" title="This function is juset the same as dsfmt_gv_fill_array_close1_open2().">fill_array_close1_open2</a>(<span class="keywordtype">double</span> array[], <span class="keywordtype">int</span> size)
|
---|
319 | <a name="l00492"></a>00492 DSFMT_PST_INLINE;
|
---|
320 | <a name="l00493"></a>00493
|
---|
321 | <a name="l00499"></a><a class="code" href="d_s_f_m_t_8h.html#2792d3dd76b6ae051d60830b676622ba">00499</a> <a class="code" href="d_s_f_m_t_8h.html#00d24c7231be28dbaf71f5408f30e44c">inline</a> static const <span class="keywordtype">char</span> *<a class="code" href="d_s_f_m_t_8h.html#2792d3dd76b6ae051d60830b676622ba" title="This function is just the same as dsfmt_get_idstring().">get_idstring</a>(<span class="keywordtype">void</span>) {
|
---|
322 | <a name="l00500"></a>00500 <span class="keywordflow">return</span> <a class="code" href="d_s_f_m_t_8h.html#f181eeb77513e5a399dd2c585cfaa055" title="This function returns the identification string.">dsfmt_get_idstring</a>();
|
---|
323 | <a name="l00501"></a>00501 }
|
---|
324 | <a name="l00502"></a>00502
|
---|
325 | <a name="l00508"></a><a class="code" href="d_s_f_m_t_8h.html#75ebedeed1c3d5e8576c53e5ce215fea">00508</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="d_s_f_m_t_8h.html#75ebedeed1c3d5e8576c53e5ce215fea" title="This function is just the same as dsfmt_get_min_array_size().">get_min_array_size</a>(<span class="keywordtype">void</span>) {
|
---|
326 | <a name="l00509"></a>00509 <span class="keywordflow">return</span> <a class="code" href="d_s_f_m_t_8h.html#f49cc1703b4cc1d0bffbd895917c303a" title="This function returns the minimum size of array used for fill_array functions.">dsfmt_get_min_array_size</a>();
|
---|
327 | <a name="l00510"></a>00510 }
|
---|
328 | <a name="l00511"></a>00511
|
---|
329 | <a name="l00517"></a><a class="code" href="d_s_f_m_t_8h.html#985425dba38a16554d3f2a9ee3a41e1b">00517</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#985425dba38a16554d3f2a9ee3a41e1b" title="This function is just the same as dsfmt_gv_init_gen_rand().">init_gen_rand</a>(uint32_t seed) {
|
---|
330 | <a name="l00518"></a>00518 <a class="code" href="d_s_f_m_t_8h.html#74e3849c0ae0929d57c9c9ac52d58cc8" title="This function initializes the internal state array with a 32-bit integer seed.">dsfmt_gv_init_gen_rand</a>(seed);
|
---|
331 | <a name="l00519"></a>00519 }
|
---|
332 | <a name="l00520"></a>00520
|
---|
333 | <a name="l00527"></a><a class="code" href="d_s_f_m_t_8h.html#5f12cfe61e34b29a9c4f88f097712205">00527</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#5f12cfe61e34b29a9c4f88f097712205" title="This function is just the same as dsfmt_gv_init_by_array().">init_by_array</a>(uint32_t init_key[], <span class="keywordtype">int</span> key_length) {
|
---|
334 | <a name="l00528"></a>00528 <a class="code" href="d_s_f_m_t_8h.html#4f989ee92f5e4c8f71570dbb9d19e838" title="This function initializes the internal state array, with an array of 32-bit integers...">dsfmt_gv_init_by_array</a>(init_key, key_length);
|
---|
335 | <a name="l00529"></a>00529 }
|
---|
336 | <a name="l00530"></a>00530
|
---|
337 | <a name="l00537"></a><a class="code" href="d_s_f_m_t_8h.html#01bce92db767a0f976b56f88f8f89515">00537</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#01bce92db767a0f976b56f88f8f89515" title="This function is just the same as dsfmt_gv_genrand_close1_open2().">genrand_close1_open2</a>(<span class="keywordtype">void</span>) {
|
---|
338 | <a name="l00538"></a>00538 <span class="keywordflow">return</span> <a class="code" href="d_s_f_m_t_8h.html#f298572e9f2449e59ddf486977006621" title="This function generates and returns double precision pseudorandom number which distributes...">dsfmt_gv_genrand_close1_open2</a>();
|
---|
339 | <a name="l00539"></a>00539 }
|
---|
340 | <a name="l00540"></a>00540
|
---|
341 | <a name="l00547"></a><a class="code" href="d_s_f_m_t_8h.html#188b24295a56aa56f823c7dfb0615971">00547</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#188b24295a56aa56f823c7dfb0615971" title="This function is just the same as dsfmt_gv_genrand_close_open().">genrand_close_open</a>(<span class="keywordtype">void</span>) {
|
---|
342 | <a name="l00548"></a>00548 <span class="keywordflow">return</span> <a class="code" href="d_s_f_m_t_8h.html#e57b11ef3fdcf04e84fc0298166aab82" title="This function generates and returns double precision pseudorandom number which distributes...">dsfmt_gv_genrand_close_open</a>();
|
---|
343 | <a name="l00549"></a>00549 }
|
---|
344 | <a name="l00550"></a>00550
|
---|
345 | <a name="l00557"></a><a class="code" href="d_s_f_m_t_8h.html#b24d54ba54b0249c02200a7f3232b342">00557</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#b24d54ba54b0249c02200a7f3232b342" title="This function is just the same as dsfmt_gv_genrand_open_close().">genrand_open_close</a>(<span class="keywordtype">void</span>) {
|
---|
346 | <a name="l00558"></a>00558 <span class="keywordflow">return</span> <a class="code" href="d_s_f_m_t_8h.html#fcdb7f3f26ca2d4a8f4e3854209fd4dd" title="This function generates and returns double precision pseudorandom number which distributes...">dsfmt_gv_genrand_open_close</a>();
|
---|
347 | <a name="l00559"></a>00559 }
|
---|
348 | <a name="l00560"></a>00560
|
---|
349 | <a name="l00567"></a><a class="code" href="d_s_f_m_t_8h.html#902ef40cb5e9e3caad2cfb478224c071">00567</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#902ef40cb5e9e3caad2cfb478224c071" title="This function is just the same as dsfmt_gv_genrand_open_open().">genrand_open_open</a>(<span class="keywordtype">void</span>) {
|
---|
350 | <a name="l00568"></a>00568 <span class="keywordflow">return</span> <a class="code" href="d_s_f_m_t_8h.html#f6dbcef408462da1f40edd1a1ea5dcd3" title="This function generates and returns double precision pseudorandom number which distributes...">dsfmt_gv_genrand_open_open</a>();
|
---|
351 | <a name="l00569"></a>00569 }
|
---|
352 | <a name="l00570"></a>00570
|
---|
353 | <a name="l00580"></a><a class="code" href="d_s_f_m_t_8h.html#4d6c1e2049214ae128c1f9226ad683b9">00580</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#4d6c1e2049214ae128c1f9226ad683b9" title="This function is juset the same as dsfmt_gv_fill_array_open_close().">fill_array_open_close</a>(<span class="keywordtype">double</span> array[], <span class="keywordtype">int</span> size) {
|
---|
354 | <a name="l00581"></a>00581 <a class="code" href="d_s_f_m_t_8h.html#92deacd8f90f332a130ab5a6fdae8348" title="This function generates double precision floating point pseudorandom numbers which...">dsfmt_gv_fill_array_open_close</a>(array, size);
|
---|
355 | <a name="l00582"></a>00582 }
|
---|
356 | <a name="l00583"></a>00583
|
---|
357 | <a name="l00593"></a><a class="code" href="d_s_f_m_t_8h.html#5a6dd5166f4dcc137bce8f1aeea758a5">00593</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#5a6dd5166f4dcc137bce8f1aeea758a5" title="This function is juset the same as dsfmt_gv_fill_array_close_open().">fill_array_close_open</a>(<span class="keywordtype">double</span> array[], <span class="keywordtype">int</span> size) {
|
---|
358 | <a name="l00594"></a>00594 <a class="code" href="d_s_f_m_t_8h.html#27e4b624752149e0450056a317d09214" title="This function generates double precision floating point pseudorandom numbers which...">dsfmt_gv_fill_array_close_open</a>(array, size);
|
---|
359 | <a name="l00595"></a>00595 }
|
---|
360 | <a name="l00596"></a>00596
|
---|
361 | <a name="l00606"></a><a class="code" href="d_s_f_m_t_8h.html#deaef304a7f9f262588bdbcf780feb42">00606</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#deaef304a7f9f262588bdbcf780feb42" title="This function is juset the same as dsfmt_gv_fill_array_open_open().">fill_array_open_open</a>(<span class="keywordtype">double</span> array[], <span class="keywordtype">int</span> size) {
|
---|
362 | <a name="l00607"></a>00607 <a class="code" href="d_s_f_m_t_8h.html#871323d18c3525787f63fcf071c4787d" title="This function generates double precision floating point pseudorandom numbers which...">dsfmt_gv_fill_array_open_open</a>(array, size);
|
---|
363 | <a name="l00608"></a>00608 }
|
---|
364 | <a name="l00609"></a>00609
|
---|
365 | <a name="l00618"></a><a class="code" href="d_s_f_m_t_8h.html#98e1c0307c01044eb8d1c5136b59af9d">00618</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#98e1c0307c01044eb8d1c5136b59af9d" title="This function is juset the same as dsfmt_gv_fill_array_close1_open2().">fill_array_close1_open2</a>(<span class="keywordtype">double</span> array[], <span class="keywordtype">int</span> size) {
|
---|
366 | <a name="l00619"></a>00619 <a class="code" href="d_s_f_m_t_8h.html#e0ed5a2ba6eb6f21fa591a54020af3ac" title="This function generates double precision floating point pseudorandom numbers which...">dsfmt_gv_fill_array_close1_open2</a>(array, size);
|
---|
367 | <a name="l00620"></a>00620 }
|
---|
368 | <a name="l00621"></a>00621 <span class="preprocessor">#endif </span><span class="comment">/* DSFMT_DO_NOT_USE_OLD_NAMES */</span>
|
---|
369 | <a name="l00622"></a>00622
|
---|
370 | <a name="l00623"></a>00623 <span class="preprocessor">#endif </span><span class="comment">/* DSFMT_H */</span>
|
---|
371 | </pre></div></div>
|
---|
372 | <hr size="1"><address style="text-align: right;"><small>Generated on Sat Apr 18 11:08:42 2009 for dSFMT by
|
---|
373 | <a href="http://www.doxygen.org/index.html">
|
---|
374 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
---|
375 | </body>
|
---|
376 | </html>
|
---|