annotate Lib/fftw-3.2.1/doc/html/.svn/text-base/Guru-Complex-DFTs.html.svn-base @ 9:262e084a15a9

Vectorised everything and made use of unique_ptr so there should be no more memory leaks. Hurrah for RAII
author Geogaddi\David <d.m.ronan@qmul.ac.uk>
date Wed, 12 Aug 2015 22:25:06 +0100
parents 25bf17994ef1
children
rev   line source
d@0 1 <html lang="en">
d@0 2 <head>
d@0 3 <title>Guru Complex 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-vector-and-transform-sizes.html#Guru-vector-and-transform-sizes" title="Guru vector and transform sizes">
d@0 10 <link rel="next" href="Guru-Real_002ddata-DFTs.html#Guru-Real_002ddata-DFTs" title="Guru Real-data DFTs">
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-Complex-DFTs"></a>
d@0 51 Next:&nbsp;<a rel="next" accesskey="n" href="Guru-Real_002ddata-DFTs.html#Guru-Real_002ddata-DFTs">Guru Real-data DFTs</a>,
d@0 52 Previous:&nbsp;<a rel="previous" accesskey="p" href="Guru-vector-and-transform-sizes.html#Guru-vector-and-transform-sizes">Guru vector and transform sizes</a>,
d@0 53 Up:&nbsp;<a rel="up" accesskey="u" href="Guru-Interface.html#Guru-Interface">Guru Interface</a>
d@0 54 <hr>
d@0 55 </div>
d@0 56
d@0 57 <h4 class="subsection">4.5.3 Guru Complex DFTs</h4>
d@0 58
d@0 59 <pre class="example"> fftw_plan fftw_plan_guru_dft(
d@0 60 int rank, const fftw_iodim *dims,
d@0 61 int howmany_rank, const fftw_iodim *howmany_dims,
d@0 62 fftw_complex *in, fftw_complex *out,
d@0 63 int sign, unsigned flags);
d@0 64
d@0 65 fftw_plan fftw_plan_guru_split_dft(
d@0 66 int rank, const fftw_iodim *dims,
d@0 67 int howmany_rank, const fftw_iodim *howmany_dims,
d@0 68 double *ri, double *ii, double *ro, double *io,
d@0 69 unsigned flags);
d@0 70 </pre>
d@0 71 <p><a name="index-fftw_005fplan_005fguru_005fdft-240"></a><a name="index-fftw_005fplan_005fguru_005fsplit_005fdft-241"></a>
d@0 72 These two functions plan a complex-data, multi-dimensional DFT
d@0 73 for the interleaved and split format, respectively.
d@0 74 Transform dimensions are given by (<code>rank</code>, <code>dims</code>) over a
d@0 75 multi-dimensional vector (loop) of dimensions (<code>howmany_rank</code>,
d@0 76 <code>howmany_dims</code>). <code>dims</code> and <code>howmany_dims</code> should point
d@0 77 to <code>fftw_iodim</code> arrays of length <code>rank</code> and
d@0 78 <code>howmany_rank</code>, respectively.
d@0 79
d@0 80 <p><a name="index-flags-242"></a><code>flags</code> is a bitwise OR (`<samp><span class="samp">|</span></samp>') of zero or more planner flags,
d@0 81 as defined in <a href="Planner-Flags.html#Planner-Flags">Planner Flags</a>.
d@0 82
d@0 83 <p>In the <code>fftw_plan_guru_dft</code> function, the pointers <code>in</code> and
d@0 84 <code>out</code> point to the interleaved input and output arrays,
d@0 85 respectively. The sign can be either -1 (=
d@0 86 <code>FFTW_FORWARD</code>) or +1 (= <code>FFTW_BACKWARD</code>). If the
d@0 87 pointers are equal, the transform is in-place.
d@0 88
d@0 89 <p>In the <code>fftw_plan_guru_split_dft</code> function,
d@0 90 <code>ri</code> and <code>ii</code> point to the real and imaginary input arrays,
d@0 91 and <code>ro</code> and <code>io</code> point to the real and imaginary output
d@0 92 arrays. The input and output pointers may be the same, indicating an
d@0 93 in-place transform. For example, for <code>fftw_complex</code> pointers
d@0 94 <code>in</code> and <code>out</code>, the corresponding parameters are:
d@0 95
d@0 96 <pre class="example"> ri = (double *) in;
d@0 97 ii = (double *) in + 1;
d@0 98 ro = (double *) out;
d@0 99 io = (double *) out + 1;
d@0 100 </pre>
d@0 101 <p>Because <code>fftw_plan_guru_split_dft</code> accepts split arrays, strides
d@0 102 are expressed in units of <code>double</code>. For a contiguous
d@0 103 <code>fftw_complex</code> array, the overall stride of the transform should
d@0 104 be 2, the distance between consecutive real parts or between
d@0 105 consecutive imaginary parts; see <a href="Guru-vector-and-transform-sizes.html#Guru-vector-and-transform-sizes">Guru vector and transform sizes</a>. Note that the dimension strides are applied equally to the
d@0 106 real and imaginary parts; real and imaginary arrays with different
d@0 107 strides are not supported.
d@0 108
d@0 109 <p>There is no <code>sign</code> parameter in <code>fftw_plan_guru_split_dft</code>.
d@0 110 This function always plans for an <code>FFTW_FORWARD</code> transform. To
d@0 111 plan for an <code>FFTW_BACKWARD</code> transform, you can exploit the
d@0 112 identity that the backwards DFT is equal to the forwards DFT with the
d@0 113 real and imaginary parts swapped. For example, in the case of the
d@0 114 <code>fftw_complex</code> arrays above, the <code>FFTW_BACKWARD</code> transform
d@0 115 is computed by the parameters:
d@0 116
d@0 117 <pre class="example"> ri = (double *) in + 1;
d@0 118 ii = (double *) in;
d@0 119 ro = (double *) out + 1;
d@0 120 io = (double *) out;
d@0 121 </pre>
d@0 122 <!-- =========> -->
d@0 123 </body></html>
d@0 124