diff options
author | Henry Gomersall <heng@cantab.net> | 2012-02-26 14:57:35 +0000 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2012-03-05 08:17:38 -0700 |
commit | 88a02920daf0b408086106439c53bd488e73af29 (patch) | |
tree | 36745063746a99efaa619f047f088d6432756408 /numpy/fft/fftpack.py | |
parent | 2c53bfaa654327cfd1176a0c2da428b66ccbf8d9 (diff) | |
download | numpy-88a02920daf0b408086106439c53bd488e73af29.tar.gz |
BUG: Fix bug in irfftn.
Diffstat (limited to 'numpy/fft/fftpack.py')
-rw-r--r-- | numpy/fft/fftpack.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/fft/fftpack.py b/numpy/fft/fftpack.py index 2f19ba3d8..80d21ec1d 100644 --- a/numpy/fft/fftpack.py +++ b/numpy/fft/fftpack.py @@ -511,7 +511,7 @@ def _cook_nd_args(a, s=None, axes=None, invreal=0): if len(s) != len(axes): raise ValueError("Shape and axes have different lengths.") if invreal and shapeless: - s[axes[-1]] = (s[axes[-1]] - 1) * 2 + s[-1] = (a.shape[axes[-1]] - 1) * 2 return s, axes |