Chris@42: Chris@42: Chris@42: Chris@42: Chris@42:
Chris@42:Chris@42: Next: Planner Flags, Previous: Basic Interface, Up: Basic Interface [Contents][Index]
Chris@42:fftw_plan fftw_plan_dft_1d(int n0, Chris@42: fftw_complex *in, fftw_complex *out, Chris@42: int sign, unsigned flags); Chris@42: fftw_plan fftw_plan_dft_2d(int n0, int n1, Chris@42: fftw_complex *in, fftw_complex *out, Chris@42: int sign, unsigned flags); Chris@42: fftw_plan fftw_plan_dft_3d(int n0, int n1, int n2, Chris@42: fftw_complex *in, fftw_complex *out, Chris@42: int sign, unsigned flags); Chris@42: fftw_plan fftw_plan_dft(int rank, const int *n, Chris@42: fftw_complex *in, fftw_complex *out, Chris@42: int sign, unsigned flags); Chris@42:
Plan a complex input/output discrete Fourier transform (DFT) in zero or
Chris@42: more dimensions, returning an fftw_plan
(see Using Plans).
Chris@42:
Once you have created a plan for a certain transform type and Chris@42: parameters, then creating another plan of the same type and parameters, Chris@42: but for different arrays, is fast and shares constant data with the Chris@42: first plan (if it still exists). Chris@42:
Chris@42:The planner returns NULL
if the plan cannot be created. In the
Chris@42: standard FFTW distribution, the basic interface is guaranteed to return
Chris@42: a non-NULL
plan. A plan may be NULL
, however, if you are
Chris@42: using a customized FFTW configuration supporting a restricted set of
Chris@42: transforms.
Chris@42:
rank
is the rank of the transform (it should be the size of the
Chris@42: array *n
), and can be any non-negative integer. (See Complex Multi-Dimensional DFTs, for the definition of “rank”.) The
Chris@42: ‘_1d’, ‘_2d’, and ‘_3d’ planners correspond to a
Chris@42: rank
of 1
, 2
, and 3
, respectively. The rank
Chris@42: may be zero, which is equivalent to a rank-1 transform of size 1, i.e. a
Chris@42: copy of one number from input to output.
Chris@42:
Chris@42: n0
, n1
, n2
, or n[0..rank-1]
(as appropriate
Chris@42: for each routine) specify the size of the transform dimensions. They
Chris@42: can be any positive integer.
Chris@42:
Chris@42: n0
x n1
; or n0
x n1
x n2
; or
Chris@42: n[0]
x n[1]
x ... x n[rank-1]
.
Chris@42: See Multi-dimensional Array Format.
Chris@42: in
and out
point to the input and output arrays of the
Chris@42: transform, which may be the same (yielding an in-place transform).
Chris@42:
Chris@42: These arrays are overwritten during planning, unless
Chris@42: FFTW_ESTIMATE
is used in the flags. (The arrays need not be
Chris@42: initialized, but they must be allocated.)
Chris@42:
Chris@42: If in == out
, the transform is in-place and the input
Chris@42: array is overwritten. If in != out
, the two arrays must
Chris@42: not overlap (but FFTW does not check for this condition).
Chris@42:
sign
is the sign of the exponent in the formula that defines the
Chris@42: Fourier transform. It can be -1 (= FFTW_FORWARD
) or
Chris@42: +1 (= FFTW_BACKWARD
).
Chris@42:
Chris@42: flags
is a bitwise OR (‘|’) of zero or more planner flags,
Chris@42: as defined in Planner Flags.
Chris@42:
Chris@42: FFTW computes an unnormalized transform: computing a forward followed by Chris@42: a backward transform (or vice versa) will result in the original data Chris@42: multiplied by the size of the transform (the product of the dimensions). Chris@42: Chris@42: For more information, see What FFTW Really Computes. Chris@42:
Chris@42:Chris@42: Next: Planner Flags, Previous: Basic Interface, Up: Basic Interface [Contents][Index]
Chris@42: