diff options
-rw-r--r-- | numpy/core/include/numpy/ufuncobject.h | 2 | ||||
-rw-r--r-- | numpy/dft/fftpack.py | 11 |
2 files changed, 6 insertions, 7 deletions
diff --git a/numpy/core/include/numpy/ufuncobject.h b/numpy/core/include/numpy/ufuncobject.h index 54c3a12ff..8c0393b8f 100644 --- a/numpy/core/include/numpy/ufuncobject.h +++ b/numpy/core/include/numpy/ufuncobject.h @@ -249,7 +249,7 @@ typedef struct { /* Solaris --------------------------------------------------------*/ /* --------ignoring SunOS ieee_flags approach, someone else can ** deal with that! */ -#elif defined(sun) || defined(__BSD__) +#elif defined(sun) || defined(__BSD__) || defined(__OpenBSD__) #include <ieeefp.h> #define UFUNC_CHECK_STATUS(ret) { \ diff --git a/numpy/dft/fftpack.py b/numpy/dft/fftpack.py index aa49e89d3..33c99b0bb 100644 --- a/numpy/dft/fftpack.py +++ b/numpy/dft/fftpack.py @@ -270,7 +270,7 @@ def rfftn(a, s=None, axes=None): """rfftn(a, s=None, axes=None) The n-dimensional discrete Fourier transform of a real array a. A real - transform as real_fft is performed along the axis specified by the last + transform as rfft is performed along the axis specified by the last element of axes, then complex transforms as fft are performed along the other axes.""" @@ -287,16 +287,15 @@ def rfft2(a, s=None, axes=(-2,-1)): The 2d fft of the real valued array a. This is really just rfftn with different default behavior.""" - return real_fftnd(a, s, axes) - + return rfftn(a, s, axes) def irfftn(a, s=None, axes=None): """irfftn(a, s=None, axes=None) - The inverse of rfftn. The transform implemented in inverse_fft is + The inverse of rfftn. The transform implemented in ifft is applied along all axes but the last, then the transform implemented in - inverse_real_fft is performed along the last axis. As with - inverse_real_fft, the length of the result along that axis must be + irfft is performed along the last axis. As with + irfft, the length of the result along that axis must be specified if it is to be odd.""" a = asarray(a).astype(complex) |