d@0
|
1 <html lang="en">
|
d@0
|
2 <head>
|
d@0
|
3 <title>Guru Real-data DFTs - FFTW 3.2.1</title>
|
d@0
|
4 <meta http-equiv="Content-Type" content="text/html">
|
d@0
|
5 <meta name="description" content="FFTW 3.2.1">
|
d@0
|
6 <meta name="generator" content="makeinfo 4.8">
|
d@0
|
7 <link title="Top" rel="start" href="index.html#Top">
|
d@0
|
8 <link rel="up" href="Guru-Interface.html#Guru-Interface" title="Guru Interface">
|
d@0
|
9 <link rel="prev" href="Guru-Complex-DFTs.html#Guru-Complex-DFTs" title="Guru Complex DFTs">
|
d@0
|
10 <link rel="next" href="Guru-Real_002dto_002dreal-Transforms.html#Guru-Real_002dto_002dreal-Transforms" title="Guru Real-to-real Transforms">
|
d@0
|
11 <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
|
d@0
|
12 <!--
|
d@0
|
13 This manual is for FFTW
|
d@0
|
14 (version 3.2.1, 5 February 2009).
|
d@0
|
15
|
d@0
|
16 Copyright (C) 2003 Matteo Frigo.
|
d@0
|
17
|
d@0
|
18 Copyright (C) 2003 Massachusetts Institute of Technology.
|
d@0
|
19
|
d@0
|
20 Permission is granted to make and distribute verbatim copies of
|
d@0
|
21 this manual provided the copyright notice and this permission
|
d@0
|
22 notice are preserved on all copies.
|
d@0
|
23
|
d@0
|
24 Permission is granted to copy and distribute modified versions of
|
d@0
|
25 this manual under the conditions for verbatim copying, provided
|
d@0
|
26 that the entire resulting derived work is distributed under the
|
d@0
|
27 terms of a permission notice identical to this one.
|
d@0
|
28
|
d@0
|
29 Permission is granted to copy and distribute translations of this
|
d@0
|
30 manual into another language, under the above conditions for
|
d@0
|
31 modified versions, except that this permission notice may be
|
d@0
|
32 stated in a translation approved by the Free Software Foundation.
|
d@0
|
33 -->
|
d@0
|
34 <meta http-equiv="Content-Style-Type" content="text/css">
|
d@0
|
35 <style type="text/css"><!--
|
d@0
|
36 pre.display { font-family:inherit }
|
d@0
|
37 pre.format { font-family:inherit }
|
d@0
|
38 pre.smalldisplay { font-family:inherit; font-size:smaller }
|
d@0
|
39 pre.smallformat { font-family:inherit; font-size:smaller }
|
d@0
|
40 pre.smallexample { font-size:smaller }
|
d@0
|
41 pre.smalllisp { font-size:smaller }
|
d@0
|
42 span.sc { font-variant:small-caps }
|
d@0
|
43 span.roman { font-family:serif; font-weight:normal; }
|
d@0
|
44 span.sansserif { font-family:sans-serif; font-weight:normal; }
|
d@0
|
45 --></style>
|
d@0
|
46 </head>
|
d@0
|
47 <body>
|
d@0
|
48 <div class="node">
|
d@0
|
49 <p>
|
d@0
|
50 <a name="Guru-Real-data-DFTs"></a>
|
d@0
|
51 <a name="Guru-Real_002ddata-DFTs"></a>
|
d@0
|
52 Next: <a rel="next" accesskey="n" href="Guru-Real_002dto_002dreal-Transforms.html#Guru-Real_002dto_002dreal-Transforms">Guru Real-to-real Transforms</a>,
|
d@0
|
53 Previous: <a rel="previous" accesskey="p" href="Guru-Complex-DFTs.html#Guru-Complex-DFTs">Guru Complex DFTs</a>,
|
d@0
|
54 Up: <a rel="up" accesskey="u" href="Guru-Interface.html#Guru-Interface">Guru Interface</a>
|
d@0
|
55 <hr>
|
d@0
|
56 </div>
|
d@0
|
57
|
d@0
|
58 <h4 class="subsection">4.5.4 Guru Real-data DFTs</h4>
|
d@0
|
59
|
d@0
|
60 <pre class="example"> fftw_plan fftw_plan_guru_dft_r2c(
|
d@0
|
61 int rank, const fftw_iodim *dims,
|
d@0
|
62 int howmany_rank, const fftw_iodim *howmany_dims,
|
d@0
|
63 double *in, fftw_complex *out,
|
d@0
|
64 unsigned flags);
|
d@0
|
65
|
d@0
|
66 fftw_plan fftw_plan_guru_split_dft_r2c(
|
d@0
|
67 int rank, const fftw_iodim *dims,
|
d@0
|
68 int howmany_rank, const fftw_iodim *howmany_dims,
|
d@0
|
69 double *in, double *ro, double *io,
|
d@0
|
70 unsigned flags);
|
d@0
|
71
|
d@0
|
72 fftw_plan fftw_plan_guru_dft_c2r(
|
d@0
|
73 int rank, const fftw_iodim *dims,
|
d@0
|
74 int howmany_rank, const fftw_iodim *howmany_dims,
|
d@0
|
75 fftw_complex *in, double *out,
|
d@0
|
76 unsigned flags);
|
d@0
|
77
|
d@0
|
78 fftw_plan fftw_plan_guru_split_dft_c2r(
|
d@0
|
79 int rank, const fftw_iodim *dims,
|
d@0
|
80 int howmany_rank, const fftw_iodim *howmany_dims,
|
d@0
|
81 double *ri, double *ii, double *out,
|
d@0
|
82 unsigned flags);
|
d@0
|
83 </pre>
|
d@0
|
84 <p><a name="index-fftw_005fplan_005fguru_005fdft_005fr2c-243"></a><a name="index-fftw_005fplan_005fguru_005fsplit_005fdft_005fr2c-244"></a><a name="index-fftw_005fplan_005fguru_005fdft_005fc2r-245"></a><a name="index-fftw_005fplan_005fguru_005fsplit_005fdft_005fc2r-246"></a>
|
d@0
|
85 Plan a real-input (r2c) or real-output (c2r), multi-dimensional DFT with
|
d@0
|
86 transform dimensions given by (<code>rank</code>, <code>dims</code>) over a
|
d@0
|
87 multi-dimensional vector (loop) of dimensions (<code>howmany_rank</code>,
|
d@0
|
88 <code>howmany_dims</code>). <code>dims</code> and <code>howmany_dims</code> should point
|
d@0
|
89 to <code>fftw_iodim</code> arrays of length <code>rank</code> and
|
d@0
|
90 <code>howmany_rank</code>, respectively. As for the basic and advanced
|
d@0
|
91 interfaces, an r2c transform is <code>FFTW_FORWARD</code> and a c2r transform
|
d@0
|
92 is <code>FFTW_BACKWARD</code>.
|
d@0
|
93
|
d@0
|
94 <p>The <em>last</em> dimension of <code>dims</code> is interpreted specially:
|
d@0
|
95 that dimension of the real array has size <code>dims[rank-1].n</code>, but
|
d@0
|
96 that dimension of the complex array has size <code>dims[rank-1].n/2+1</code>
|
d@0
|
97 (division rounded down). The strides, on the other hand, are taken to
|
d@0
|
98 be exactly as specified. It is up to the user to specify the strides
|
d@0
|
99 appropriately for the peculiar dimensions of the data, and we do not
|
d@0
|
100 guarantee that the planner will succeed (return non-<code>NULL</code>) for
|
d@0
|
101 any dimensions other than those described in <a href="Real_002ddata-DFT-Array-Format.html#Real_002ddata-DFT-Array-Format">Real-data DFT Array Format</a> and generalized in <a href="Advanced-Real_002ddata-DFTs.html#Advanced-Real_002ddata-DFTs">Advanced Real-data DFTs</a>. (That is,
|
d@0
|
102 for an in-place transform, each individual dimension should be able to
|
d@0
|
103 operate in place.)
|
d@0
|
104 <a name="index-in_002dplace-247"></a>
|
d@0
|
105 <code>in</code> and <code>out</code> point to the input and output arrays for r2c
|
d@0
|
106 and c2r transforms, respectively. For split arrays, <code>ri</code> and
|
d@0
|
107 <code>ii</code> point to the real and imaginary input arrays for a c2r
|
d@0
|
108 transform, and <code>ro</code> and <code>io</code> point to the real and imaginary
|
d@0
|
109 output arrays for an r2c transform. <code>in</code> and <code>ro</code> or
|
d@0
|
110 <code>ri</code> and <code>out</code> may be the same, indicating an in-place
|
d@0
|
111 transform. (In-place transforms where <code>in</code> and <code>io</code> or
|
d@0
|
112 <code>ii</code> and <code>out</code> are the same are not currently supported.)
|
d@0
|
113
|
d@0
|
114 <p><a name="index-flags-248"></a><code>flags</code> is a bitwise OR (`<samp><span class="samp">|</span></samp>') of zero or more planner flags,
|
d@0
|
115 as defined in <a href="Planner-Flags.html#Planner-Flags">Planner Flags</a>.
|
d@0
|
116
|
d@0
|
117 <p>In-place transforms of rank greater than 1 are currently only
|
d@0
|
118 supported for interleaved arrays. For split arrays, the planner will
|
d@0
|
119 return <code>NULL</code>.
|
d@0
|
120 <a name="index-in_002dplace-249"></a>
|
d@0
|
121 <!-- =========> -->
|
d@0
|
122
|
d@0
|
123 </body></html>
|
d@0
|
124
|