d@0: d@0: d@0: Planner Flags - FFTW 3.2.1 d@0: d@0: d@0: d@0: d@0: d@0: d@0: d@0: d@0: d@0: d@0: d@0: d@0: d@0:
d@0:

d@0: d@0: Next: , d@0: Previous: Complex DFTs, d@0: Up: Basic Interface d@0:


d@0:
d@0: d@0:

4.3.2 Planner Flags

d@0: d@0:

All of the planner routines in FFTW accept an integer flags d@0: argument, which is a bitwise OR (`|') of zero or more of the flag d@0: constants defined below. These flags control the rigor (and time) of d@0: the planning process, and can also impose (or lift) restrictions on the d@0: type of transform algorithm that is employed. d@0: d@0:

Important: the planner overwrites the input array during d@0: planning unless a saved plan (see Wisdom) is available for that d@0: problem, so you should initialize your input data after creating the d@0: plan. The only exceptions to this are the FFTW_ESTIMATE and d@0: FFTW_WISDOM_ONLY flags, as mentioned below. d@0: d@0:

In all cases, if wisdom is available for the given problem that was d@0: created with equal-or-greater planning rigor, then it is used instead. d@0: For example, in FFTW_ESTIMATE mode any available wisdom is d@0: used, whereas in FFTW_PATIENT mode only wisdom created in d@0: patient or exhaustive mode can be used. See Words of Wisdom-Saving Plans. d@0: d@0:

Planning-rigor flags
d@0: d@0: d@0: d@0:
Algorithm-restriction flags
d@0: d@0: d@0: d@0:
Limiting planning time
d@0: d@0:
     extern void fftw_set_timelimit(double seconds);
d@0: 
d@0:

d@0: This function instructs FFTW to spend at most seconds seconds d@0: (approximately) in the planner. If seconds == d@0: FFTW_NO_TIMELIMIT (the default value, which is negative), then d@0: planning time is unbounded. Otherwise, FFTW plans with a d@0: progressively wider range of algorithms until the the given time limit d@0: is reached or the given range of algorithms is explored, returning the d@0: best available plan. d@0: d@0: For example, specifying FFTW_PATIENT first plans in d@0: FFTW_ESTIMATE mode, then in FFTW_MEASURE mode, then d@0: finally (time permitting) in FFTW_PATIENT. If d@0: FFTW_EXHAUSTIVE is specified instead, the planner will further d@0: progress to FFTW_EXHAUSTIVE mode. d@0: d@0:

Note that the seconds argument specifies only a rough limit; in d@0: practice, the planner may use somewhat more time if the time limit is d@0: reached when the planner is in the middle of an operation that cannot d@0: be interrupted. At the very least, the planner will complete planning d@0: in FFTW_ESTIMATE mode (which is thus equivalent to a time limit d@0: of 0). d@0: d@0: d@0: d@0: