@@ -18,10 +18,21 @@ What's New or Different
18
18
19
19
.. ipython :: python
20
20
21
- from randomstate import standard_normal, standard_exponential
22
- x = standard_normal(100000 , method = ' zig' )
23
- y = standard_exponential(100000 , method = ' zig' )
24
- z = standard_gamma(100000 , method = ' zig' )
21
+ from randomstate.prng.xoroshiro128plus import standard_normal
22
+ % timeit standard_normal(1000000 , method = ' bm' )
23
+ % timeit standard_normal(1000000 , method = ' zig' )
24
+
25
+ .. ipython :: python
26
+
27
+ from randomstate.prng.xoroshiro128plus import standard_exponential
28
+ % timeit standard_exponential(1000000 , method = ' inv' )
29
+ % timeit standard_exponential(1000000 , method = ' zig' )
30
+
31
+ .. ipython :: python
32
+
33
+ from randomstate.prng.xoroshiro128plus import standard_gamma
34
+ % timeit standard_gamma(3.0 , 1000000 , method = ' inv' )
35
+ % timeit standard_gamma(3.0 , 1000000 , method = ' zig' )
25
36
26
37
* Optional ``dtype `` argument that accepts ``np.float32 `` or ``np.float64 ``
27
38
to produce either single or double prevision uniform random variables for
@@ -34,12 +45,11 @@ What's New or Different
34
45
35
46
.. ipython :: python
36
47
37
- import numpy as np
38
48
import randomstate as rs
39
49
rs.seed(0 )
40
- rs.random_sample(3 , dtype = np.float64 )
50
+ rs.random_sample(3 , dtype = ' d ' )
41
51
rs.seed(0 )
42
- rs.random_sample(3 , dtype = np.float32 )
52
+ rs.random_sample(3 , dtype = ' f ' )
43
53
44
54
* Optional ``out `` argument that allows existing arrays to be filled for
45
55
select distributions
0 commit comments