OSDN Git Service

Merge branch 'master' of git.sourceforge.jp:/gitroot/eos/base
[eos/hostdependX86LINUX64.git] / include / fftn.h
1 /*--------------------------------*-C-*---------------------------------*
2  * File:
3  *      fftn.h
4  * ---------------------------------------------------------------------*
5  * Re[]:        real value array
6  * Im[]:        imaginary value array
7  * nTotal:      total number of complex values
8  * nPass:       number of elements involved in this pass of transform
9  * nSpan:       nspan/nPass = number of bytes to increment pointer
10  *              in Re[] and Im[]
11  * isign:       exponent: +1 = forward  -1 = reverse
12  * scaling:     normalizing constant by which the final result is *divided*
13  *      scaling == -1, normalize by total dimension of the transform
14  *      scaling <  -1, normalize by the square-root of the total dimension
15  *
16  * ----------------------------------------------------------------------
17  * See the comments in the code for correct usage!
18  */
19
20 #ifndef _FFTN_H
21 #define _FFTN_H
22
23 /* prototype begin */
24 extern void fft_free (void);
25
26 /* double precision routine */
27 extern int fftn (int ndim, const int dims[], double Re[], double Im[],
28                  int isign, double scaling);
29
30 /* float precision routine */
31 extern int fftnf (int ndim, const int dims[], float Re[], float Im[],
32                   int isign, double scaling);
33 /* prototype end */
34
35 #endif  /* _FFTN_H */
36
37
38
39
40
41
42