Skip to content

Error when rfftn is called with axes and norm='ortho' #18

Closed
@frankong

Description

@frankong

I have been getting the following error when rfftn is called with axes and norm='ortho':

~/anaconda3/lib/python3.6/site-packages/mkl_fft/_numpy_fft.py in <listcomp>(.0)
   1040         a = asarray(a)
   1041         s, axes = _cook_nd_args(a, s, axes)
-> 1042         n_tot = numpy.prod([ s[ai] for ai in axes])
   1043 
   1044     output = mkl_fft.rfftn_numpy(a, s, axes)

IndexError: list index out of range

Here is a code snippet to reproduce this:

import numpy as np
x = np.zeros([2, 3])
y = np.fft.rfftn(x, axes=[1], norm='ortho')

numpy without mkl_fft does not produce errors.

Metadata

Metadata

Assignees

No one assigned

    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