@@ -23,11 +23,11 @@ the internal state of the pseudo-random number generators.
2323 # draw some numbers as if computation were to continue
2424 post_draw = rs.gamma(5 , 1 , size = 100 )
2525
26- # restore random state, and continue from
26+ # restore random state, and continue from
2727 restored_rs = pickle.loads(saved)
2828 resumed_draw = restored_rs.gamma(5 , 1 , size = 100 )
29-
30- # sample from restored stated is the same as sample
29+
30+ # sample from restored stated is the same as sample
3131 # from the original one
3232 assert np.array_equal(restored_rs, resumed_draw)
3333
@@ -47,14 +47,14 @@ indistinguishable from independent.
4747.. py :method :: skipahead(nskips)
4848 :canonical: mkl_random.RandomState.skipahead
4949
50- Advance the state of the generator using skip-ahead method, or raise :code: `ValueError `
51- exception if not supported.
50+ Advance the state of the generator using skip-ahead method, or raise :code: `ValueError `
51+ exception if not supported.
5252
5353 The argument `nskips ` must be a positive Python integer.
5454
55- The method is supported for :ref: `"philox4x32x10" <philox4x32x10_brng >`, :ref: `"mrg32k3a" <mrg32k3a_brng >`,
55+ The method is supported for :ref: `"philox4x32x10" <philox4x32x10_brng >`, :ref: `"mrg32k3a" <mrg32k3a_brng >`,
5656 :ref: `"mcg31m1" <mcg31m1_brng >`, :ref: `"mcg59" <mcg59_brng >`, :ref: `"wh" <wh_brng >`,
57- :ref: `"mt19937" <mt19937_brng >`, :ref: `"sfmt19937" <sfmt19937_brng >`, and :ref: `"ars5" <ars5_brng >`
57+ :ref: `"mt19937" <mt19937_brng >`, :ref: `"sfmt19937" <sfmt19937_brng >`, and :ref: `"ars5" <ars5_brng >`
5858 basic random number generators.
5959
6060.. note ::
@@ -68,20 +68,20 @@ indistinguishable from independent.
6868 Initialize the state of the generator using leap-frog method, or raise :code: `ValueError `
6969 exception if not supported.
7070
71- The leap-frog method partitions state trajectory into :code: `nstream ` interleaved non-overlapping
71+ The leap-frog method partitions state trajectory into :code: `nstream ` interleaved non-overlapping
7272 sub-sequences, and argument :code: `k ` identifies the subsequence.
7373
74- The method is supported for :ref: `"mcg31m1" <mcg31m1_brng >`, :ref: `"mcg59" <mcg59_brng >`, and :ref: `"wh" <wh_brng >`
74+ The method is supported for :ref: `"mcg31m1" <mcg31m1_brng >`, :ref: `"mcg59" <mcg59_brng >`, and :ref: `"wh" <wh_brng >`
7575 basic pseudo-random number generators.
7676
7777.. note ::
78- When using :meth: `leapfrog ` or :meth: `skipahead ` methods one must remember that parallel tasks partition
79- generators period and choose a generator with sufficiently long period to avoid cycling over the period
78+ When using :meth: `leapfrog ` or :meth: `skipahead ` methods one must remember that parallel tasks partition
79+ generators period and choose a generator with sufficiently long period to avoid cycling over the period
8080 more than once, as doing so also breaks the assumption of statistical independence and may compromise
8181 correctness of the simulation.
8282
8383:mod: `mkl_random ` also provides two families of basic pseudo-random number generators, :ref: `"mt2203" <mt2203_brng >` and
84- :ref: `"wh" <wh_brng >`, with property that members from particular family, initialized equally, produce streams of
84+ :ref: `"wh" <wh_brng >`, with property that members from particular family, initialized equally, produce streams of
8585randomness stasistically indistunguishable from independent. To use such families in parallel computation, assign
8686difference family generators to different parallel workers and sample those assigned generators in each parallel worker.
87- Please refer to "examples/" folder in the `GitHub repo <https://github.com/IntelPython/mkl_random >`_ for more details.
87+ Please refer to "examples/" folder in the `GitHub repo <https://github.com/IntelPython/mkl_random >`_ for more details.
0 commit comments