File tree 1 file changed +17
-0
lines changed
1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,23 @@ New Features
86
86
the files can be specifies to be ``*.f90 ``. The ``verbose `` argument is
87
87
also activated, it was previously ignored.
88
88
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
+
89
106
90
107
Improvements
91
108
============
You can’t perform that action at this time.
0 commit comments