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

IndexError for N-dimensional real FFT #119

Closed
vtavana opened this issue Aug 13, 2024 · 1 comment · Fixed by #138
Closed

IndexError for N-dimensional real FFT #119

vtavana opened this issue Aug 13, 2024 · 1 comment · Fixed by #138
Assignees

Comments

@vtavana
Copy link
Collaborator

vtavana commented Aug 13, 2024

Following example returns an error

import mkl_fft.interfaces as mfi, numpy
b=numpy.arange(24.).reshape(2, 3, 4)
mfi.numpy_fft.rfft2(b, axes=(1, 2), norm="forward").shape
# ...
# IndexError: list index out of range

while stock NumPy works correctly

import numpy
b=numpy.arange(24.).reshape(2, 3, 4)
numpy.fft.rfft2(b, axes=(1, 2), norm="forward").shape
# (2, 3, 3)

For the same example, there is no issue, if norm is None or "backward".

@vtavana vtavana self-assigned this Mar 12, 2025
@vtavana
Copy link
Collaborator Author

vtavana commented Mar 25, 2025

A similar error happens in scipy interafce

import mkl_fft.interfaces as mfi, numpy
b=numpy.arange(24.).reshape(2, 3, 4)
mfi.scipy_fft.rfft2(b, axes=(1, 2), norm="forward").shape
# ...
# IndexError: list index out of range

@vtavana vtavana linked a pull request Mar 25, 2025 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant