summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorOleksandr Pavlyk <oleksandr.pavlyk@intel.com>2019-08-01 14:24:45 -0500
committerOleksandr Pavlyk <oleksandr.pavlyk@intel.com>2019-08-01 14:24:45 -0500
commit4c1fd6a9890a7cdec8e381c3a2c64d6140087ef3 (patch)
tree0f6c15043ae687e2826128d6a587122b8ee66065 /numpy
parent3e0014faa7e72ed3dd690619f03e3417d40a3f28 (diff)
downloadnumpy-4c1fd6a9890a7cdec8e381c3a2c64d6140087ef3.tar.gz
Replaced np.sqrt(X.size) with np.sqrt(np.log2(X.size)) per PR review
Diffstat (limited to 'numpy')
-rw-r--r--numpy/fft/tests/test_pocketfft.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/fft/tests/test_pocketfft.py b/numpy/fft/tests/test_pocketfft.py
index 3f5f7b474..c5483ebb5 100644
--- a/numpy/fft/tests/test_pocketfft.py
+++ b/numpy/fft/tests/test_pocketfft.py
@@ -192,7 +192,7 @@ def test_fft_with_order(dtype, order, fft):
# non contiguous arrays
rng = np.random.RandomState(42)
X = rng.rand(8, 7, 13).astype(dtype, copy=False)
- _tol = np.sqrt(X.size) * np.finfo(X.dtype).eps
+ _tol = np.sqrt(np.log2(X.size)) * np.finfo(X.dtype).eps
if order == 'F':
Y = np.asfortranarray(X)
else: