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> |
4773
|
25 #include <fftw3.h> |
3828
|
26 |
|
27 #include "oct-cmplx.h" |
4773
|
28 #include "dim-vector.h" |
3828
|
29 |
|
30 class |
|
31 octave_fftw |
|
32 { |
|
33 public: |
4773
|
34 static int fft (const double *in, Complex *out, size_t npts, |
|
35 size_t nsamples = 1, int stride = 1, int dist = -1); |
|
36 static int fft (const Complex *in, Complex *out, size_t npts, |
|
37 size_t nsamples = 1, int stride = 1, int dist = -1); |
|
38 static int ifft (const Complex *in, Complex *out, size_t npts, |
|
39 size_t nsamples = 1, int stride = 1, int dist = -1); |
3828
|
40 |
4773
|
41 static int fftNd (const double*, Complex*, const int, const dim_vector &); |
|
42 static int fftNd (const Complex*, Complex*, const int, |
|
43 const dim_vector &); |
|
44 static int ifftNd (const Complex*, Complex*, const int, |
|
45 const dim_vector &); |
3828
|
46 |
|
47 private: |
|
48 octave_fftw (); |
|
49 octave_fftw (const octave_fftw&); |
|
50 octave_fftw& operator = (const octave_fftw&); |
|
51 }; |
|
52 |
|
53 #endif |
|
54 |
|
55 /* |
|
56 ;;; Local Variables: *** |
|
57 ;;; mode: C++ *** |
|
58 ;;; End: *** |
|
59 */ |
|
60 |