summaryrefslogtreecommitdiff
path: root/numpy/random/mtrand/randomkit.c
Commit message (Collapse)AuthorAgeFilesLines
* ENH: Add dtype argument to random.randint.Charles Harris2016-01-021-1/+223
| | | | | | | | | | | | | | | | | | | | | 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.
* BUG, STY: Make gaussian random number generators with identical behaviourCharles Harris2010-05-261-14/+18
| | | | have identical pickles.
* STY: A Few more coding style cleanups.Charles Harris2010-05-261-9/+20
|
* STY: Some c coding style cleanups.Charles Harris2010-05-261-41/+50
|
* Hard tab removal.Charles Harris2009-10-201-166/+163
| | | | | Trailing whitespace removal. Some coding style cleanups.
* Forgot to add time headers when mingw workaround is not used on windows.David Cournapeau2008-11-171-0/+2
|
* Include time.h and sys/timeb.h just after defining our custom ↵David Cournapeau2008-11-171-2/+2
| | | | __MSVCRT_VERSION__ to avoid possible duplicate.
* Conditionally setup mingw workaround on __GNUC__ since we can't detect if we ↵David Cournapeau2008-11-171-1/+3
| | | | are built with mingw in distutils setup.py.
* Do not generate a config.h for randomkit: it does not work as it is, and ↵David Cournapeau2008-11-171-2/+0
| | | | adding per-subpackage include path is a PITA with distutils.
* Fix the inaccurate comment regarding _ftime issues with mingw.David Cournapeau2008-11-171-2/+2
|
* Set __MSVCRT_VERSION__ to make _ftime64 visible from time.h header when we ↵David Cournapeau2008-11-171-1/+4
| | | | need to workaround mingw bug.
* Use a wrapper around _ftime to work around a mingw bug in msvc runtimes ↵David Cournapeau2008-11-171-1/+10
| | | | import libraries.
* Postpone time.h include because we will need to customize it on windows.David Cournapeau2008-11-141-1/+2
|
* Generate config header for random kit (empty for now).David Cournapeau2008-11-141-0/+1
|
* Fixes #488. In rk_interval, use rk_random if the interval size is less than ↵cookedm2007-04-021-0/+8
| | | | | | | 2**32. For 64-bit machines, this means results will agree with 32-bit machines, and will be faster for these interval sizes (one less rk_random evaluation).
* Intialize the has_binomial field of the mtrand state.cookedm2006-05-191-0/+2
|
* Moved scipy directory to numpyTravis Oliphant2006-01-041-0/+355