[Numpy-svn] [numpy/numpy] 74ae35: Throws if range is too large for 'random.uniform'
GitHub
noreply at github.com
Mon Sep 29 13:21:53 EDT 2014
Branch: refs/heads/master
Home: https://github.com/numpy/numpy
Commit: 74ae35de25f8e1d490e0c8c8bfa7572a3ebad76b
https://github.com/numpy/numpy/commit/74ae35de25f8e1d490e0c8c8bfa7572a3ebad76b
Author: Masud Rahman <masud.s.rahman at gmail.com>
Date: 2014-09-28 (Sun, 28 Sep 2014)
Changed paths:
M numpy/random/mtrand/mtrand.pyx
M numpy/random/tests/test_random.py
Log Message:
-----------
Throws if range is too large for 'random.uniform'
This fixes issue #2138 by checking that the range (i.e. high - low) is finite
before invoking `rk_uniform`.
A test case was added to ensure valid ranges do not throw, but invalid ranges
do.
Commit: 8521e280e7e5e71b89641d06669b82e210cf0b7d
https://github.com/numpy/numpy/commit/8521e280e7e5e71b89641d06669b82e210cf0b7d
Author: Julian Taylor <juliantaylor108 at gmail.com>
Date: 2014-09-29 (Mon, 29 Sep 2014)
Changed paths:
M numpy/random/mtrand/mtrand.pyx
M numpy/random/tests/test_random.py
Log Message:
-----------
Merge pull request #5131 from frutiger/random_uniform_throw_on_outofrange
ENH: Throws if range is too large for 'random.uniform'
Compare: https://github.com/numpy/numpy/compare/e065a26d9e85...8521e280e7e5
More information about the Numpy-svn
mailing list