3828
|
1 /* |
|
2 |
|
3 This file is part of Octave. |
|
4 |
|
5 Octave is free software; you can redistribute it and/or modify it |
|
6 under the terms of the GNU General Public License as published by the |
|
7 Free Software Foundation; either version 2, or (at your option) any |
|
8 later version. |
|
9 |
|
10 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
11 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
12 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
13 for more details. |
|
14 |
|
15 You should have received a copy of the GNU General Public License |
|
16 along with Octave; see the file COPYING. If not, write to the Free |
|
17 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
18 |
|
19 */ |
|
20 |
|
21 #if !defined (octave_oct_fftw_h) |
|
22 #define octave_oct_fftw_h 1 |
|
23 |
|
24 #include <cstddef> |
|
25 |
|
26 #if defined (HAVE_DFFTW_H) |
|
27 #include <dfftw.h> |
|
28 #else |
|
29 #include <fftw.h> |
|
30 #endif |
|
31 |
|
32 #include "oct-cmplx.h" |
|
33 |
|
34 class |
|
35 octave_fftw |
|
36 { |
|
37 public: |
|
38 static int fft (const Complex*, Complex *, size_t); |
|
39 static int ifft (const Complex*, Complex *, size_t); |
|
40 |
|
41 static int fft2d (Complex*, size_t, size_t); |
|
42 static int ifft2d (Complex*, size_t, size_t); |
|
43 |
|
44 private: |
|
45 octave_fftw (); |
|
46 octave_fftw (const octave_fftw&); |
|
47 octave_fftw& operator = (const octave_fftw&); |
|
48 }; |
|
49 |
|
50 #endif |
|
51 |
|
52 /* |
|
53 ;;; Local Variables: *** |
|
54 ;;; mode: C++ *** |
|
55 ;;; End: *** |
|
56 */ |
|
57 |