summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-06-15 16:16:55 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-06-15 16:16:55 +0000
commitbd83339b9e42ddf3d92339b41e6a6bb93ce68051 (patch)
tree9f7a070e4570f7637f3bc914b7d29ce1c3b41e05 /numpy
parent2f4a9678f04a3eab6878f4694231d4848e127490 (diff)
downloadnumpy-bd83339b9e42ddf3d92339b41e6a6bb93ce68051.tar.gz
Fix name issues in fftpack. Add OpenBSD support to floating-point handling.
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/include/numpy/ufuncobject.h2
-rw-r--r--numpy/dft/fftpack.py11
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)