-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
ENH: randomgen #13163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
ENH: randomgen #13163
Changes from 1 commit
Commits
Show all changes
139 commits
Select commit
Hold shift + click to select a range
3102fc6
INIT: Initial commit with basic structure
bashtage fa3bef5
ENH: Add support for xoroshiro128
bashtage d59494c
ENH: Add entropy initialization to RNGS
bashtage 8942968
ENH: Add seeding to generators
bashtage aa9060c
CLN: Simplify xoroshiro state
bashtage b353f87
REF: Add additional state
bashtage 15cab3c
REF: Reactor filler to take a function
bashtage 8367231
ENH: Add extra abstraction
bashtage d5dc576
ENH: Add float from double and std exponential
bashtage f4575d9
BUG: Fix bug in xoroshiro
bashtage c687b84
CLN: Fix warning in entropy
bashtage 0d4eae3
REF: Add types to prng_t
8000
bashtage 27a96bb
ENH: Add Threefry generator
bashtage a5f17a5
ENH: Use Random123 threefry
bashtage 56fd6e7
CLN: Remove unnecessary code from threefry
bashtage 93b7edf
ENH: Add pickle support
bashtage d665138
DOC: Add list of TODOs
bashtage 892d43f
BIG: Fix setting state in threee fry
bashtage ad79fe0
ENH: Add jump and advance to threefry
bashtage 4b2afc2
ENH: Add PCG64
bashtage 6b81fa0
ENH: Add advance and jump to PCG64
bashtage e150e1a
ENH: Add Philox
bashtage d6d3ac9
CLN: Remove splitmix64 as a visible PRNG
bashtage 323616c
BUG: Fix bugs which prevented building on Linux
bashtage 626a1a0
REF: Refactor distributions
bashtage 5fe7572
ENH: Add std gamma
bashtage cecd56d
CLN: Clean random123 generators
bashtage a071378
CLN: Fix dsfmt import issues
bashtage eab3390
ENH: Enable Python 2.7 compatability
bashtage c3155db
ENH: Add jump to mt19937 and dsfmt
bashtage e9e0a8c
ENH: Add ctypes interface and examples
bashtage 0e5ffae
CLN: Mix skipped nogils
bashtage 5d274af
ENH: Add cffi interface
bashtage 2f9b9c0
ENH: Add example using distributions
bashtage fcef7ae
ENH: Enable building distributions as a DLL
bashtage 1235545
ENH: Port over external functions
bashtage 7ca6e62
ENH: Add bounded intergers
bashtage cfe9e95
ENH: Add support for Philon on 32 bit Windows
bashtage 390860a
ENH: Add support for ThreeFry32x4
bashtage 8fa8c2b
BUG: Enable build to run on 32-bit Linux
bashtage 644d883
ENH: Add PCG32
bashtage e81e93f
BUG: Fix variable declarations in dsfmt
bashtage 76a31a9
ENH: Enable testing on OSX
bashtage c1f4fa0
REF: Drop Box-Muller
bashtage ee51dcf
REF: Remove binomial_t from prng
bashtage fde7742
ENH: Switch to int64
bashtage fb98ac5
DOC: Start documentation
bashtage cb24575
REF: Rename from Core PRNG to RandomGen
bashtage c722f44
DOC: Update docs
bashtage e69d24c
TST: Improve travis
bashtage a85ee48
BUG: Fix failing test
bashtage 701326e
DOC: Fix location of tagged docs
bashtage 9e18b77
BLD: Ensure emulated math is used in 32 bit platforms
bashtage 3e69d17
CLN: Remove references to long
bashtage 489015f
ENH: Add Box-Muller gauss
bashtage 8711b32
DOC: Update multithreading doc
bashtage 018faf7
CLN: Remove set/get state for system generator
bashtage 75025d9
TST: Fix tailing test on 32bit platofrms
bashtage 4f37499
CLN: Fix str for RandomGenerator
bashtage 7d37f5f
DOC: Update legacy docs
bashtage a2e21e6
BUG: Fix pickle for LegacyGenerator
bashtage d13f398
DOC: Spelling changes
bashtage df1758d
CLN: Remove redeclared type
bashtage 412e908
BLD: Enable no-sse2 flag
bashtage 87b52f2
SYNC/CLN: Sync with upstream changes
bashtage db87d7d
BLD: Add lm flag for non-windows platforms
bashtage b41949e
ENH: Add dSFMT
bashtage a9cb58d
ENH: Add out, ziggurat for exponential
bashtage 92a09f3
TST: Add test and benchmark code
bashtage f029ebb
ENH: Improve benchmark
bashtage 8777c61
CLN: Reformat C files
bashtage 784315e
ENH: Example numba example using external distributions
bashtage 5b262ef
BUG: Precent GC of CorePRNG when using CFFI/CTypes
bashtage 65ceada
TST: Add tests
bashtage 3b7b1e4
DOC: Update readme
bashtage a8882b2
CLN: Remove small bugs and alter variable size
bashtage dc0c84b
BUG: Fix returned type
bashtage f060614
DOC: Update docs and building
bashtage 5d3d955
ENH: Restore filler
bashtage ce30b74
TST: Improve testing and build
bashtage 447e6b3
DOC: Update change-log and docs
bashtage 50e7242
BUG: Restore nogil for fillers
bashtage 799e20b
TST: Make test more verbose, clean up noise
bashtage 80a3fe1
BUG: Fix absolute_import
bashtage d780f06
DOC: Fix doc and example error
pdebuyl fdd029f
REF: Rename min and max macros
bashtage 3dba22d
MAINT: Sync with NumPy changes
bashtage f2ace10
ENH: Allow empty choice
bashtage d0cb154
DOC: Provide a better explanation of bounded int generation
bashtage 8e6b69f
MAINT: Sync with recent upstream changes
bashtage 99bf1a0
DOC: Update docs for 1.15 release [skip ci]
bashtage 8dba0e9
ENH: Added an alternative interval generator using Lemire's algorithm.
bduvenhage 13d8999
DOC: Add license files
bashtage 707371d
REF: Add path using umul
bashtage 15bebed
ENH: Added Lemire algorithms for generating random numbers
bduvenhage 734fbfb
CLN: Add guards to headers
bashtage c4ed60e
ENH/BUG: Add Xoshiro256starstar generator
bashtage 9dac6a5
MAINT: Sync with upstream changes
bashtage 578889b
BUG: Ensure buffer_loc is reset in DSFMT
bashtage 896f2e4
BUG: Raise on nan probabilities
bashtage fa8af41
BUILD: move files out of _randomgen
mattip 7e8e19f
BUG: Correct handling of nans
bashtage c53b2eb
BENCH: convert bencmarks to asv format
mattip 9578dcf
BUG: __dealloc__ can be called without __init__ in some error modes
mattip 0f3dd06
ENH: Extend multinomial and fix zipf
bashtage 8a3c11d
DOC: Add alias docstrings for sample and ranf
bashtage bb7abf2
ENH: add instance of RandomGenerator(Xoshiro512StarStar) as gen
mattip f11921d
MAINT: Simplify return types
bashtage 0f931b3
BUG: Fix type in zipf
bashtage b2f9bea
ENH: Improvce choice without replacement
bashtage 7a41794
DOC: fix doctests, move numpy.random -> numpy.random.gen in generator…
mattip edfd313
ENH: Finish hypergeometric 0
bashtage b9b9d70
MAINT: remove legacy, refactor legacy -> mtrand in docs
mattip 2deddc8
MAINT: Remove Cython conditionals
bashtage d531f92
BUG: Protect gamma generation from 0 input
bashtage 6e386c0
DOC/ENH: Update docstring and enhance logistic
bashtage 8621229
DOC: tighten up documentation, add a table of comparison
mattip 4f06779
ENH: Add fast path for randint broadcasting
bashtage ca9c542
BUG: Cast high to Python int to avoid overflow
bashtage dd77ce3
ENH: Add closed generator to randint
bashtage 17e0070
MAINT: Implement API changes for randomgen-derived code
mattip b42a5ca
BUG: Ensure integer-type stream on 32bit
bashtage 720a0a9
BLD: Use numpy detection of SSE
bashtage e058ae4
MAINT: remove unused file
mattip 3d19ae9
MAINT: remove threefry32, xoroshiro128, xorshift1024 BitGenerators
mattip 060c669
merge master into branch
mattip 4e6a812
MAINT: remove pre-randomgen _mtrand
mattip 19b48e2
BUG: test, fix missing return to deprecated function
mattip cdb2b0f
MAINT: remove tomaxint, random_sample from generator
mattip 2c14e47
ENH: Split poisson_lam_max
bashtage 457c6c5
MAINT: Remove test_against_numpy
bashtage 9e5ae61
BUG: Change renamed attribute
bashtage 7c52c28
DOC: Add __all__ and document lock
bashtage dabf42b
MAINT: Remove remnants of bit generators
bashtage 3db5a77
BLD: Improve setup
bashtage 58c0e72
Revert "MAINT: Implement API changes for randomgen-derived code"
bashtage 23853d6
STY: Clean up code
bashtage 9c261e6
PERF: Reorder header for philox (#34)
bashtage 70d6293
MAINT: fix for dtype specification
mattip File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
BLD: Use numpy detection of SSE
Let numpy detect SSE2
- Loading branch information
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the best way? It is possible to read this from a numpy config somewhere in the build?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is for you @mattip or someone else with more knowledge of the build system.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
numpy/config.h
will haveHAVE_EMMINTRIN_H
. Can we use#include "numpy/config.h"
indSMFT.h
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can easily modify the DSFMT source file with something like