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#20314 from WarrenWeckesser/float32-rand-unus…
…ed-bit BUG: Get full precision for 32 bit floating point random values.
- Loading branch information
Showing
4 changed files
with
31 additions
and
6 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 @@ | ||
Change in generation of random 32 bit floating point variates | ||
------------------------------------------------------------- | ||
There was bug in the generation of 32 bit floating point values from | ||
the uniform distribution that would result in the least significant | ||
bit of the random variate always being 0. This has been fixed. | ||
|
||
This change affects the variates produced by the `random.Generator` | ||
methods ``random``, ``standard_normal``, ``standard_exponential``, and | ||
``standard_gamma``, but only when the dtype is specified as | ||
``numpy.float32``. |
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