annotate Lib/fftw-3.2.1/doc/html/.svn/text-base/Multi_002ddimensional-Transforms.html.svn-base @ 4:345acbd06029

Vectorised most things to make lifer easier. Still no debug version though. Weird.
author Geogaddi\David <d.m.ronan@qmul.ac.uk>
date Fri, 10 Jul 2015 03:04:11 +0100
parents 25bf17994ef1
children
rev   line source
d@0 1 <html lang="en">
d@0 2 <head>
d@0 3 <title>Multi-dimensional Transforms - 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="What-FFTW-Really-Computes.html#What-FFTW-Really-Computes" title="What FFTW Really Computes">
d@0 9 <link rel="prev" href="1d-Discrete-Hartley-Transforms-_0028DHTs_0029.html#g_t1d-Discrete-Hartley-Transforms-_0028DHTs_0029" title="1d Discrete Hartley Transforms (DHTs)">
d@0 10 <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
d@0 11 <!--
d@0 12 This manual is for FFTW
d@0 13 (version 3.2.1, 5 February 2009).
d@0 14
d@0 15 Copyright (C) 2003 Matteo Frigo.
d@0 16
d@0 17 Copyright (C) 2003 Massachusetts Institute of Technology.
d@0 18
d@0 19 Permission is granted to make and distribute verbatim copies of
d@0 20 this manual provided the copyright notice and this permission
d@0 21 notice are preserved on all copies.
d@0 22
d@0 23 Permission is granted to copy and distribute modified versions of
d@0 24 this manual under the conditions for verbatim copying, provided
d@0 25 that the entire resulting derived work is distributed under the
d@0 26 terms of a permission notice identical to this one.
d@0 27
d@0 28 Permission is granted to copy and distribute translations of this
d@0 29 manual into another language, under the above conditions for
d@0 30 modified versions, except that this permission notice may be
d@0 31 stated in a translation approved by the Free Software Foundation.
d@0 32 -->
d@0 33 <meta http-equiv="Content-Style-Type" content="text/css">
d@0 34 <style type="text/css"><!--
d@0 35 pre.display { font-family:inherit }
d@0 36 pre.format { font-family:inherit }
d@0 37 pre.smalldisplay { font-family:inherit; font-size:smaller }
d@0 38 pre.smallformat { font-family:inherit; font-size:smaller }
d@0 39 pre.smallexample { font-size:smaller }
d@0 40 pre.smalllisp { font-size:smaller }
d@0 41 span.sc { font-variant:small-caps }
d@0 42 span.roman { font-family:serif; font-weight:normal; }
d@0 43 span.sansserif { font-family:sans-serif; font-weight:normal; }
d@0 44 --></style>
d@0 45 </head>
d@0 46 <body>
d@0 47 <div class="node">
d@0 48 <p>
d@0 49 <a name="Multi-dimensional-Transforms"></a>
d@0 50 <a name="Multi_002ddimensional-Transforms"></a>
d@0 51 Previous:&nbsp;<a rel="previous" accesskey="p" href="1d-Discrete-Hartley-Transforms-_0028DHTs_0029.html#g_t1d-Discrete-Hartley-Transforms-_0028DHTs_0029">1d Discrete Hartley Transforms (DHTs)</a>,
d@0 52 Up:&nbsp;<a rel="up" accesskey="u" href="What-FFTW-Really-Computes.html#What-FFTW-Really-Computes">What FFTW Really Computes</a>
d@0 53 <hr>
d@0 54 </div>
d@0 55
d@0 56 <h4 class="subsection">4.8.6 Multi-dimensional Transforms</h4>
d@0 57
d@0 58 <p>The multi-dimensional transforms of FFTW, in general, compute simply the
d@0 59 separable product of the given 1d transform along each dimension of the
d@0 60 array. Since each of these transforms is unnormalized, computing the
d@0 61 forward followed by the backward/inverse multi-dimensional transform
d@0 62 will result in the original array scaled by the product of the
d@0 63 normalization factors for each dimension (e.g. the product of the
d@0 64 dimension sizes, for a multi-dimensional DFT).
d@0 65
d@0 66 <p><a name="index-r2c-315"></a>The definition of FFTW's multi-dimensional DFT of real data (r2c)
d@0 67 deserves special attention. In this case, we logically compute the full
d@0 68 multi-dimensional DFT of the input data; since the input data are purely
d@0 69 real, the output data have the Hermitian symmetry and therefore only one
d@0 70 non-redundant half need be stored. More specifically, for an n<sub>0</sub>&nbsp;&times;&nbsp;n<sub>1</sub>&nbsp;&times;&nbsp;n<sub>2</sub>&nbsp;&times;&nbsp;&hellip;&nbsp;&times;&nbsp;n<sub>d-1</sub> multi-dimensional real-input DFT, the full (logical) complex output array
d@0 71 <i>Y</i>[<i>k</i><sub>0</sub>, <i>k</i><sub>1</sub>, ...,
d@0 72 <i>k</i><sub><i>d-1</i></sub>]has the symmetry:
d@0 73 <i>Y</i>[<i>k</i><sub>0</sub>, <i>k</i><sub>1</sub>, ...,
d@0 74 <i>k</i><sub><i>d-1</i></sub>] = <i>Y</i>[<i>n</i><sub>0</sub> -
d@0 75 <i>k</i><sub>0</sub>, <i>n</i><sub>1</sub> - <i>k</i><sub>1</sub>, ...,
d@0 76 <i>n</i><sub><i>d-1</i></sub> - <i>k</i><sub><i>d-1</i></sub>]<sup>*</sup>(where each dimension is periodic). Because of this symmetry, we only
d@0 77 store the
d@0 78 <i>k</i><sub><i>d-1</i></sub> = 0...<i>n</i><sub><i>d-1</i></sub>/2+1elements of the <em>last</em> dimension (division by 2 is rounded
d@0 79 down). (We could instead have cut any other dimension in half, but the
d@0 80 last dimension proved computationally convenient.) This results in the
d@0 81 peculiar array format described in more detail by <a href="Real_002ddata-DFT-Array-Format.html#Real_002ddata-DFT-Array-Format">Real-data DFT Array Format</a>.
d@0 82
d@0 83 <p>The multi-dimensional c2r transform is simply the unnormalized inverse
d@0 84 of the r2c transform. i.e. it is the same as FFTW's complex backward
d@0 85 multi-dimensional DFT, operating on a Hermitian input array in the
d@0 86 peculiar format mentioned above and outputting a real array (since the
d@0 87 DFT output is purely real).
d@0 88
d@0 89 <p>We should remind the user that the separable product of 1d transforms
d@0 90 along each dimension, as computed by FFTW, is not always the same thing
d@0 91 as the usual multi-dimensional transform. A multi-dimensional
d@0 92 <code>R2HC</code> (or <code>HC2R</code>) transform is not identical to the
d@0 93 multi-dimensional DFT, requiring some post-processing to combine the
d@0 94 requisite real and imaginary parts, as was described in <a href="The-Halfcomplex_002dformat-DFT.html#The-Halfcomplex_002dformat-DFT">The Halfcomplex-format DFT</a>. Likewise, FFTW's multidimensional
d@0 95 <code>FFTW_DHT</code> r2r transform is not the same thing as the logical
d@0 96 multi-dimensional discrete Hartley transform defined in the literature,
d@0 97 as discussed in <a href="The-Discrete-Hartley-Transform.html#The-Discrete-Hartley-Transform">The Discrete Hartley Transform</a>.
d@0 98
d@0 99 <!-- ************************************************************ -->
d@0 100 </body></html>
d@0 101