@@ -63,96 +63,6 @@ Differences from NumPy (1.17+)
63
63
* :class: `~randomgen.xoshiro256.Xoshiro256 `
64
64
* :class: `~randomgen.xoshiro512.Xoshiro512 `
65
65
66
- .. container :: admonition danger
67
-
68
- .. raw :: html
69
-
70
- <p class =" admonition-title" > Deprecated </p >
71
-
72
- ``Generator `` is **deprecated **. You should be using
73
- :class: `numpy.random.Generator `.
74
-
75
- * randomgen's ``Generator `` continues to expose legacy
76
- methods ``random_sample ``, ``randint ``, ``random_integers ``, ``rand ``, ``randn ``,
77
- and ``tomaxint ``. **Note **: These should not be used, and their modern replacements are preferred:
78
-
79
- * ``random_sample ``, ``rand` → ``random ``
80
- * ``random_integers ``, ``randint `` → ``integers ``
81
- * ``randn `` → ``standard_normal ``
82
- * ``tomaxint `` → ``integers `` with ``dtype `` set to ``int ``
83
-
84
- * randomgen's bit generators remain seedable and the convenience function
85
- ``seed` is exposed as part of``Generator ``. Additionally, the convenience
86
- property ``state `` is available to get or set the state of the underlying bit generator.
87
-
88
- * :func: `numpy.random.Generator.multivariate_hypergeometric ` was added after
89
- ``Generator `` was merged into NumPy and will not be ported over.
90
-
91
- * :func: `numpy.random.Generator.shuffle ` and :func: `numpy.random.Generator.permutation `
92
- support ``axis `` keyword to operator along an axis other than 0.
93
-
94
- * ``integers `` supports the keyword argument ``use_masked `` to switch between masked
95
- generation of bounded integers and Lemire's superior method.
96
-
97
- Differences from NumPy before 1.17
98
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
99
- * The normal, exponential and gamma generators use 256-step Ziggurat
100
- methods which are 2-10 times faster than NumPy's default implementation in
101
- ``standard_normal ``, ``standard_exponential `` or ``standard_gamma ``.
102
-
103
- * The Box-Muller used to produce NumPy's normals is no longer available.
104
- * All bit generators functions to produce doubles, uint64s and
105
- uint32s via CTypes (:meth: `~randomgen.xoroshiro128.Xoroshiro128.ctypes `)
106
- and CFFI (:meth: `~randomgen.xoroshiro128.Xoroshiro128.cffi `). This allows
107
- the bit generators to be used in numba or in other low-level applications
108
- * The bit generators can be used in downstream projects via Cython.
109
- * Optional ``dtype `` argument that accepts ``np.float32 `` or ``np.float64 ``
110
- to produce either single or double prevision uniform random variables for
111
- select core distributions
112
-
113
- * Uniforms (``random `` and ``rand ``)
114
- * Normals (``standard_normal `` and ``randn ``)
115
- * Standard Gammas (``standard_gamma ``)
116
- * Standard Exponentials (``standard_exponential ``)
117
-
118
- * Optional ``out `` argument that allows existing arrays to be filled for
119
- select core distributions
120
-
121
- * Uniforms (``random ``)
122
- * Normals (``standard_normal ``)
123
- * Standard Gammas (``standard_gamma ``)
124
- * Standard Exponentials (``standard_exponential ``)
125
-
126
- This allows multithreading to fill large arrays in chunks using suitable
127
- PRNGs in parallel.
128
-
129
-
130
- * ``integers `` supports broadcasting inputs.
131
-
132
- * ``integers `` supports drawing from open (default, ``[low, high) ``) or closed
133
- (``[low, high] ``) intervals using the keyword argument
134
- ``endpoint ``. Closed intervals are simpler to use when the
135
- distribution may include the maximum value of a given integer type.
136
-
137
-
138
- * The closed interval is particularly helpful when using arrays since
139
- it avoids object-dtype arrays when sampling from the full range.
140
-
141
-
142
- * Support for Lemire’s method of generating uniform integers on an
143
- arbitrary interval by setting ``use_masked=True `` in
144
- (``integers ``).
145
-
146
-
147
- * ``multinomial `` supports multidimensional values of ``n ``
148
-
149
-
150
- * ``choice `` is much faster when sampling small amounts from large arrays
151
-
152
-
153
- * ``choice `` supports the ``axis `` keyword to work with multidimensional arrays.
154
-
155
-
156
66
* For changes since the previous release, see the :ref: `change-log `
157
67
158
68
.. _the demonstration notebook : custom-bit-generators.ipynb
0 commit comments