diff options
author | Lars Grueter <lagru@mailbox.org> | 2019-08-06 14:44:36 +0200 |
---|---|---|
committer | Lars Grueter <lagru@mailbox.org> | 2019-08-27 10:49:16 +0200 |
commit | 5c55d2b3d2946c1d581dcea252d6cea0e1602217 (patch) | |
tree | 72cc5b4ef6272ccc7170b13dce1412a488c50179 /numpy/testing/_private/utils.py | |
parent | 5f7f8e192534e728c3a8b66170377240fb1ece2a (diff) | |
download | numpy-5c55d2b3d2946c1d581dcea252d6cea0e1602217.tar.gz |
BUG: Replace _linear_ramp with linspace
linspace supports non-scalar values since version 1.16. This can replace
the former _linear_ramp method.
This removes a bug in the old implementation where certain edge and
end values resulted in an integer underflow for unsigned dtypes (see
gh-14191). Protect against this regression with a new test for all
numeric dtypes.
Diffstat (limited to 'numpy/testing/_private/utils.py')
0 files changed, 0 insertions, 0 deletions