KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
fft.h
Go to the documentation of this file.
1 // ======================================================================*
2 // Source for module FFT from package GO.
3 // Retrieved from NETLIB on Wed Jul 5 11:50:07 1995.
4 // ======================================================================*
5 // Converted to C++ and extended by Doron Tal.
6 
7 /*--------------------------------*-C-*---------------------------------*
8  * File:
9  * fftn.h
10  * ---------------------------------------------------------------------*
11  * Re[]: real Value array
12  * Im[]: imaginary Value array
13  * nTotal: total number of complex Values
14  * nPass: number of elements involved in this pass of transform
15  * nSpan: nspan/nPass = number of bytes to increment pointer
16  * in Re[] and Im[]
17  * isign: exponent: +1 = forward -1 = reverse
18  * scaling: normalizing constant by which the final result is *divided*
19  * scaling == -1, normalize by total dimension of the transform
20  * scaling < -1, normalize by the square-root of the total dimension
21  *
22  * ----------------------------------------------------------------------
23  * See the comments in the code for correct usage!
24  */
25 
26 #ifndef _FFT_H
27 #define _FFT_H
28 
29 namespace DTLib {
30 
31  void fft_free ();
32 
33  /* double precision routine */
34  int fftn (int ndim, const int dims[], double Re[], double Im[],
35  int isign, double scaling);
36 
37  /* float precision routine */
38  int fftnf (int ndim, const int dims[], float Re[], float Im[],
39  int isign, double scaling);
40 
41  // 1-D fft interface -DT
42  void FwdFFT(float *aRe, float *aIm, const int Size);
43  void InvFFT(float *aRe, float *aIm, const int Size);
44 
45 } // namespace DTLib {
46 
47 #endif /* _FFT_H */
int fftn(int ndim, const int dims[], double Re[], double Im[], int isign, double scaling)
int fftnf(int ndim, const int dims[], float Re[], float Im[], int isign, double scaling)
void FwdFFT(float *aRe, float *aIm, const int Size)
Definition: fft.cpp:1051
size_t dims(const Scene &scene, bool respect_changed=true, bool infer_head=true)
Computes the number of variables in this scene.
Definition: pt_scene.cpp:106
void InvFFT(float *aRe, float *aIm, const int Size)
Definition: fft.cpp:1059
void fft_free()
Definition: fft.cpp:190