annotate Lib/fftw-3.2.1/doc/html/.svn/text-base/64_002dbit-Guru-Interface.html.svn-base @ 0:25bf17994ef1

First commit. VS2013, Codeblocks and Mac OSX configuration
author Geogaddi\David <d.m.ronan@qmul.ac.uk>
date Thu, 09 Jul 2015 01:12:16 +0100
parents
children
rev   line source
d@0 1 <html lang="en">
d@0 2 <head>
d@0 3 <title>64-bit Guru Interface - 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-Real_002dto_002dreal-Transforms.html#Guru-Real_002dto_002dreal-Transforms" title="Guru Real-to-real Transforms">
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="64-bit-Guru-Interface"></a>
d@0 50 <a name="g_t64_002dbit-Guru-Interface"></a>
d@0 51 Previous:&nbsp;<a rel="previous" accesskey="p" href="Guru-Real_002dto_002dreal-Transforms.html#Guru-Real_002dto_002dreal-Transforms">Guru Real-to-real Transforms</a>,
d@0 52 Up:&nbsp;<a rel="up" accesskey="u" href="Guru-Interface.html#Guru-Interface">Guru Interface</a>
d@0 53 <hr>
d@0 54 </div>
d@0 55
d@0 56 <h4 class="subsection">4.5.6 64-bit Guru Interface</h4>
d@0 57
d@0 58 <p><a name="index-g_t64_002dbit-architecture-252"></a>
d@0 59 When compiled in 64-bit mode on a 64-bit architecture (where addresses
d@0 60 are 64 bits wide), FFTW uses 64-bit quantities internally for all
d@0 61 transform sizes, strides, and so on&mdash;you don't have to do anything
d@0 62 special to exploit this. However, in the ordinary FFTW interfaces,
d@0 63 you specify the transform size by an <code>int</code> quantity, which is
d@0 64 normally only 32 bits wide. This means that, even though FFTW is
d@0 65 using 64-bit sizes internally, you cannot specify a single transform
d@0 66 dimension larger than
d@0 67 2<sup><small>31</small></sup>&minus;1numbers.
d@0 68
d@0 69 <p>We expect that few users will require transforms larger than this, but,
d@0 70 for those who do, we provide a 64-bit version of the guru interface in
d@0 71 which all sizes are specified as integers of type <code>ptrdiff_t</code>
d@0 72 instead of <code>int</code>. (<code>ptrdiff_t</code> is a signed integer type
d@0 73 defined by the C standard to be wide enough to represent address
d@0 74 differences, and thus must be at least 64 bits wide on a 64-bit
d@0 75 machine.) We stress that there is <em>no performance advantage</em> to
d@0 76 using this interface&mdash;the same internal FFTW code is employed
d@0 77 regardless&mdash;and it is only necessary if you want to specify very
d@0 78 large transform sizes.
d@0 79 <a name="index-ptrdiff_005ft-253"></a>
d@0 80 In particular, the 64-bit guru interface is a set of planner routines
d@0 81 that are exactly the same as the guru planner routines, except that
d@0 82 they are named with `<samp><span class="samp">guru64</span></samp>' instead of `<samp><span class="samp">guru</span></samp>' and they take
d@0 83 arguments of type <code>fftw_iodim64</code> instead of <code>fftw_iodim</code>.
d@0 84 For example, instead of <code>fftw_plan_guru_dft</code>, we have
d@0 85 <code>fftw_plan_guru64_dft</code>.
d@0 86
d@0 87 <pre class="example"> fftw_plan fftw_plan_guru64_dft(
d@0 88 int rank, const fftw_iodim64 *dims,
d@0 89 int howmany_rank, const fftw_iodim64 *howmany_dims,
d@0 90 fftw_complex *in, fftw_complex *out,
d@0 91 int sign, unsigned flags);
d@0 92 </pre>
d@0 93 <p><a name="index-fftw_005fplan_005fguru64_005fdft-254"></a>
d@0 94 The <code>fftw_iodim64</code> type is similar to <code>fftw_iodim</code>, with the
d@0 95 same interpretation, except that it uses type <code>ptrdiff_t</code> instead
d@0 96 of type <code>int</code>.
d@0 97
d@0 98 <pre class="example"> typedef struct {
d@0 99 ptrdiff_t n;
d@0 100 ptrdiff_t is;
d@0 101 ptrdiff_t os;
d@0 102 } fftw_iodim64;
d@0 103 </pre>
d@0 104 <p><a name="index-fftw_005fiodim64-255"></a>
d@0 105 Every other `<samp><span class="samp">fftw_plan_guru</span></samp>' function also has a
d@0 106 `<samp><span class="samp">fftw_plan_guru64</span></samp>' equivalent, but we do not repeat their
d@0 107 documentation here since they are identical to the 32-bit versions
d@0 108 except as noted above.
d@0 109
d@0 110 <!-- -->
d@0 111 </body></html>
d@0 112