Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mkl_fft.irfftn_numpy returns incorrect shape #115

Open
vtavana opened this issue Aug 6, 2024 · 0 comments
Open

mkl_fft.irfftn_numpy returns incorrect shape #115

vtavana opened this issue Aug 6, 2024 · 0 comments

Comments

@vtavana
Copy link
Collaborator

vtavana commented Aug 6, 2024

For the following case, the output array shape from mkl_fft.irfftn_numpy and NumPy is different.

import numpy, mkl_fft
from numpy.testing import assert_allclose

a = numpy.array([[[5, 7, 6, 5],
		  [4, 6, 4, 8],
		  [9, 3, 7, 5]],
		 [[5, 9, 0, 0],
		  [0, 8, 7, 8],
		  [9, 7, 4, 7]]], dtype=numpy.float32)

print(a.shape)
# (2, 3, 4)

r1 = mkl_fft.irfftn_numpy(a, s=(1, 4, 10), axes=None)
r2 = numpy.fft.irfftn(a, s=(1, 4, 10), axes=None)

print(r1.shape, r2.shape)
# (2, 4, 10) (1, 4, 10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant