Skip to content

Commit a9585d4

Browse files
Add test per report gh-109
1 parent 207e57b commit a9585d4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

mkl_fft/tests/test_fftnd.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,3 +217,14 @@ def test_scale_nd_axes(self):
217217

218218
r_tol, a_tol = _get_rtol_atol(X)
219219
assert_allclose(f, 5*f_scale, rtol=r_tol, atol=a_tol)
220+
221+
222+
def test_gh109():
223+
b_int = np.array([[5, 7, 6, 5], [4, 6, 4, 8], [9, 3, 7, 5]], dtype=np.int64)
224+
b = np.asarray(b_int, dtype=np.float32)
225+
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)
228+
229+
rtol, atol = _get_rtol_atol(b)
230+
assert_allclose(r1, r2, rtol=rtol, atol=atol)

0 commit comments

Comments
 (0)