|
7 | 7 | mt2203
|
8 | 8 | ======
|
9 | 9 |
|
10 |
| -The mt2203 engine is the set of 6024 Mersenne Twister pseudorandom number generators MT2203 [:ref:`Matsumoto98 <onemath_rng_bibliography>`], [:ref:`Matsumoto00 <onemath_rng_bibliography>`]. |
| 10 | +The mt2203 engine is the set of Mersenne Twister pseudorandom number generators MT2203 [:ref:`Matsumoto98 <onemath_rng_bibliography>`], [:ref:`Matsumoto00 <onemath_rng_bibliography>`]. |
| 11 | +Coefficients are obtained by `the following tool`_. The amount of generators in the set (denoted `n_engines`) is implementation defined. |
11 | 12 |
|
12 | 13 | .. _onemath_rng_mt2203_description:
|
13 | 14 |
|
14 | 15 | .. rubric:: Description
|
15 | 16 |
|
16 |
| -The set of 6024 basic pseudorandom number generators MT2203 is a natural addition to the MT19937 generator. MT2203 generators are intended for use in large scale Monte Carlo simulations performed on multi-processor computer systems. |
| 17 | +The set of basic pseudorandom number generators MT2203 is a natural addition to the MT19937 generator. |
| 18 | +MT2203 generators are intended for use in large scale Monte Carlo simulations performed on multi-processor computer systems. |
17 | 19 |
|
18 | 20 | .. container:: section
|
19 | 21 |
|
20 | 22 | .. rubric:: Generation algorithm
|
21 | 23 |
|
22 |
| - For :math:`j = 1,..., 6024`: |
| 24 | + For :math:`j = 1,..., n_engines`: |
23 | 25 |
|
24 | 26 | :math:`x_{n, j} =x_{n - (69 - 34), j} \oplus ( (x_{n - 69, j} \& 0xFFFFFFE0) | (x_{n + 69 + 1, j} \& 0x1F) ) A_{j}`
|
25 | 27 |
|
@@ -140,14 +142,14 @@ class mt2203
|
140 | 142 | The initial conditions of the generator state. The initialization algorithm described in [:ref:`MT2203 <onemath_rng_bibliography>`].
|
141 | 143 |
|
142 | 144 | engine_idx
|
143 |
| - The index of the set 1, ..., 6024. |
| 145 | + The index of the set 1, ..., n_engines. |
144 | 146 |
|
145 | 147 | .. container:: section
|
146 | 148 |
|
147 | 149 | .. rubric:: Throws
|
148 | 150 |
|
149 | 151 | oneapi::math::invalid_argument
|
150 |
| - Exception is thrown when :math:`idx > 6024` |
| 152 | + Exception is thrown when :math:`idx > n_engines` |
151 | 153 |
|
152 | 154 | .. _`mt2203(sycl::queue queue, std::initializer_list<std::uint32_t> seed)`:
|
153 | 155 |
|
@@ -182,7 +184,7 @@ class mt2203
|
182 | 184 | The initial conditions of the generator state. The initialization algorithm described in [:ref:`MT2203 <onemath_rng_bibliography>`].
|
183 | 185 |
|
184 | 186 | engine_idx
|
185 |
| - The index of the set 1, ..., 6024. |
| 187 | + The index of the set 1, ..., n_engines. |
186 | 188 |
|
187 | 189 | .. _`mt2203(const mt2203& other)`:
|
188 | 190 |
|
@@ -237,3 +239,5 @@ class mt2203
|
237 | 239 | Valid ``mt2203`` r-value object. The ``queue`` and state of the other engine is moved to the current engine.
|
238 | 240 |
|
239 | 241 | **Parent topic:** :ref:`onemath_rng_engines_basic_random_number_generators`
|
| 242 | +
|
| 243 | +.. _`the following tool`: https://www.math.sci.hiroshima-u.ac.jp/m-mat/MT/DC/dc.html |
0 commit comments