Skip to content

IndexError for N-dimensional real FFT  #119

Closed
@vtavana

Description

@vtavana

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".

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions