8000 DOC: Document new randint dtype parameter in 1.11.0 release notes. · numpy/numpy@bc2a97b · GitHub
[go: up one dir, main page]

Skip to content

Commit bc2a97b

Browse files
committed
DOC: Document new randint dtype parameter in 1.11.0 release notes.
1 parent 07fa8cc commit bc2a97b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

doc/release/1.11.0-notes.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,23 @@ New Features
8686
the files can be specifies to be ``*.f90``. The ``verbose`` argument is
8787
also activated, it was previously ignored.
8888

89+
* A ``dtype`` parameter has been added to ``np.random.randint``
90+
Random ndarrays of the following types can now be generated:
91+
92+
- np.bool,
93+
- np.int8, np.uint8,
94+
- np.int16, np.uint16,
95+
- np.int32, np.uint32,
96+
- np.int64, np.uint64,
97+
- np.int_ (long), np.intp
98+
99+
The specification is by precision rather than by C type. Hence, on some
100+
platforms np.int64 may be a `long` instead of `long long` even if the
101+
specified dtype is `long long` because the two may have the same
102+
precision. The resulting type depends on which c type numpy uses for the
103+
given precision. The byteorder specification is also ignored, the
104+
generated arrays are always in native byte order.
105+
89106

90107
Improvements
91108
============

0 commit comments

Comments
 (0)
0