Skip to content

Commit abffaec

Browse files
Use non-unit forward_scale in test_gh_109
The test with unit forward scale would have passed both before and after the fix. With non-unit scale it would have failed before the fix. Thanks @vtavana for catching this during review.
1 parent 3571dcb commit abffaec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mkl_fft/tests/test_fftnd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,8 @@ def test_gh109():
223223
b_int = np.array([[5, 7, 6, 5], [4, 6, 4, 8], [9, 3, 7, 5]], dtype=np.int64)
224224
b = np.asarray(b_int, dtype=np.float32)
225225

226-
r1 = mkl_fft.fftn(b, shape=None, axes=(0,), overwrite_x=False)
227-
r2 = mkl_fft.fftn(b_int, shape=None, axes=(0,), overwrite_x=False)
226+
r1 = mkl_fft.fftn(b, shape=None, axes=(0,), overwrite_x=False, forward_scale=1/3)
227+
r2 = mkl_fft.fftn(b_int, shape=None, axes=(0,), overwrite_x=False, forward_scale=1/3)
228228

229229
rtol, atol = _get_rtol_atol(b)
230230
assert_allclose(r1, r2, rtol=rtol, atol=atol)

0 commit comments

Comments
 (0)