[Numpy-svn] [numpy/numpy] 9df4a5: BUG: fix denormal linspace test for longdouble

GitHub noreply at github.com
Wed Feb 22 03:52:21 EST 2017


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 9df4a528b57d0d95d84132394178e65ba2683159
      https://github.com/numpy/numpy/commit/9df4a528b57d0d95d84132394178e65ba2683159
  Author: Matthew Brett <matthew.brett at gmail.com>
  Date:   2017-02-21 (Tue, 21 Feb 2017)

  Changed paths:
    M numpy/core/tests/test_function_base.py

  Log Message:
  -----------
  BUG: fix denormal linspace test for longdouble

Linspace test was testing for case where simply dividing the range by
the number of samples generates 0, as the case for very small denormals.
The implementation generating the denormal only worked to exercise that
code for float64.  Make a small denormal that does exercise that case,
as least for longdouble, as well as float64.

Closes gh-8565.


  Commit: 78df10f58d8963829865515f98695f04a1f76e00
      https://github.com/numpy/numpy/commit/78df10f58d8963829865515f98695f04a1f76e00
  Author: Matthew Brett <matthew.brett at gmail.com>
  Date:   2017-02-21 (Tue, 21 Feb 2017)

  Changed paths:
    M numpy/core/tests/test_umath.py

  Log Message:
  -----------
  TST: add tests of nextafter around 0

Check that nextafter(0) gives number in range ]0 ... tiny[, and number
divided by 2 is 0 (denormal).


  Commit: 85cd7b7e1ef04a498dbb84fc7d7fb35881a73183
      https://github.com/numpy/numpy/commit/85cd7b7e1ef04a498dbb84fc7d7fb35881a73183
  Author: Eric Wieser <wieser.eric at gmail.com>
  Date:   2017-02-22 (Wed, 22 Feb 2017)

  Changed paths:
    M numpy/core/tests/test_function_base.py
    M numpy/core/tests/test_umath.py

  Log Message:
  -----------
  Merge pull request #8658 from matthew-brett/fix-denormal-linspace-test

BUG: fix denormal linspace test for longdouble


Compare: https://github.com/numpy/numpy/compare/a8006597aaa2...85cd7b7e1ef0


More information about the Numpy-svn mailing list