summaryrefslogtreecommitdiff
path: root/numpy/random/mtrand/randomkit.h
Commit message (Collapse)AuthorAgeFilesLines
* ENH: Add dtype argument to random.randint.Charles Harris2016-01-021-2/+39
| | | | | | | | | | | | | | | | | | | | | Random ndarrays of the following types can now be generated: * np.bool, * np.int8, np.uint8, * np.int16, np.uint16, * np.int32, np.uint32, * np.int64, np.uint64, * np.int_ (long), np.intp The specification is by precision rather than by C type. Hence, on some platforms np.int64 may be a `long` instead of `long long` even if the specified dtype is `long long` because the two may have the same precision. The resulting type depends on which c type numpy uses for the given precision. The byteorder specification is also ignored, the generated arrays are always in native byte order. The dtype of the result could be made more explicit if desired without changing the user visible results.
* Hard tab removal.Charles Harris2009-10-201-28/+28
| | | | | Trailing whitespace removal. Some coding style cleanups.
* Moved scipy directory to numpyTravis Oliphant2006-01-041-0/+189