forked from numpy/numpy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request numpy#16153 from bashtage/fix-mt19937-jump
BUG: Correct loop order in MT19937 jump
- Loading branch information
Showing
7 changed files
with
220 additions
and
329 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Fixed the jumping implementation in ``MT19937.jumped`` | ||
------------------------------------------------------ | ||
|
||
This fix changes the stream produced from jumped MT19937 generators. It does | ||
not affect the stream produced using ``RandomState`` or ``MT19937`` that | ||
are directly seeded. | ||
|
||
The translation of the jumping code for the MT19937 contained a reversed loop | ||
ordering. ``MT19937.jumped`` matches the Makoto Matsumoto's original | ||
implementation of the Horner and Sliding Window jump methods. |
This file contains 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 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 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
Oops, something went wrong.