[Numpy-discussion] numpy.fft.irfftn fails apparently unexpectedly

Henry Gomersall heng@cantab....
Tue Feb 7 08:12:29 CST 2012


On Tue, 2012-02-07 at 09:15 +0000, Henry Gomersall wrote:
> > >>>> numpy.fft.ifftn(a, axes=axes)
> > 
> > Or do you mean if the error message is expected? 
> 
> Yeah, the question was regarding the error message. Specifically, the
> problem it seems to have with an axes argument like that.

Sorry, the error message got lost in the thread. It's in response to
irfftn (as below), not ifftn as above.

>>> import numpy
>>> a_shape = (63, 4, 98)
>>> a = numpy.complex128(numpy.random.rand(*a_shape)+\
 ...     1j*numpy.random.rand(*a_shape))
>>>
>>> axes = [0, 2]
>>> numpy.fft.irfftn(a, axes=axes)



More information about the NumPy-Discussion mailing list