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 |
5307
|
17 Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
|
18 02110-1301, USA. |
3828
|
19 |
|
20 */ |
|
21 |
|
22 #if !defined (octave_oct_fftw_h) |
|
23 #define octave_oct_fftw_h 1 |
|
24 |
|
25 #include <cstddef> |
4773
|
26 #include <fftw3.h> |
3828
|
27 |
|
28 #include "oct-cmplx.h" |
4773
|
29 #include "dim-vector.h" |
3828
|
30 |
|
31 class |
|
32 octave_fftw |
|
33 { |
|
34 public: |
4773
|
35 static int fft (const double *in, Complex *out, size_t npts, |
5275
|
36 size_t nsamples = 1, octave_idx_type stride = 1, octave_idx_type dist = -1); |
4773
|
37 static int fft (const Complex *in, Complex *out, size_t npts, |
5275
|
38 size_t nsamples = 1, octave_idx_type stride = 1, octave_idx_type dist = -1); |
4773
|
39 static int ifft (const Complex *in, Complex *out, size_t npts, |
5275
|
40 size_t nsamples = 1, octave_idx_type stride = 1, octave_idx_type dist = -1); |
3828
|
41 |
4773
|
42 static int fftNd (const double*, Complex*, const int, const dim_vector &); |
|
43 static int fftNd (const Complex*, Complex*, const int, |
|
44 const dim_vector &); |
|
45 static int ifftNd (const Complex*, Complex*, const int, |
|
46 const dim_vector &); |
3828
|
47 |
|
48 private: |
|
49 octave_fftw (); |
|
50 octave_fftw (const octave_fftw&); |
|
51 octave_fftw& operator = (const octave_fftw&); |
|
52 }; |
|
53 |
|
54 #endif |
|
55 |
|
56 /* |
|
57 ;;; Local Variables: *** |
|
58 ;;; mode: C++ *** |
|
59 ;;; End: *** |
|
60 */ |
|
61 |