<< Chapter < Page Chapter >> Page >

Another example of the effect of loop reordering is a style of plan that we sometimes call vector recursion (unrelated to “vector-radix” FFTs [link] ). The basic idea is that, if one has a loop (vector-rank 1) of transforms, where the vectorstride is smaller than the transform size, it is advantageous to push the loop towards the leaves of the transform decomposition, whileotherwise maintaining recursive depth-first ordering, rather than looping “outside” the transform; i.e., apply the usual FFT to“vectors” rather than numbers. Limited forms of this idea have appeared for computing multiple FFTs on vector processors (wherethe loop in question maps directly to a hardware vector) [link] . For example, Cooley-Tukey produces a unit input -stride vector loop at the top-level DIT decomposition, but with a large output stride; this difference in strides makes it non-obvious whether vector recursion isadvantageous for the sub-problem, but for large transforms we often observe the planner to choose this possibility.

In-place 1d transforms (with no separate bit reversal pass) can be obtained as follows by a combination DIT and DIF plans "Cooley-Tukey plans" with transposes "Rank-0 plans" . First, the transform is decomposed via a radix- p DIT plan into a vector of p transforms of size q m , then these are decomposed in turn by a radix- q DIF plan into a vector (rank 2) of p × q transforms of size m . These transforms of size m have input and output at different places/strides in the original array, and so cannot be solvedindependently. Instead, an indirect plan "Indirect plans" is used to express the sub-problem as p q in-place transforms of size m , followed or preceded by an m × p × q rank-0 transform. The latter sub-problem is easily seen to be m in-place p × q transposes (ideally square, i.e. p = q ). Related strategies for in-place transforms based on small transposes weredescribed in [link] , [link] , [link] , [link] ; alternating DIT/DIF, without concern for in-place operation, wasalso considered in [link] , [link] .

The fftw planner

Given a problem and a set of possible plans, the basic principle behind the FFTW planner is straightforward: construct a plan foreach applicable algorithmic step, time the execution of these plans, and select the fastest one. Each algorithmic step may break theproblem into subproblems, and the fastest plan for each subproblem is constructed in the same way. These timing measurements can either beperformed at runtime, or alternatively the plans for a given set of sizes can be precomputed and loaded at a later time.

A direct implementation of this approach, however, faces an exponential explosion of the number of possible plans, and hence ofthe planning time, as n increases. In order to reduce the planning time to a manageable level, we employ several heuristics to reduce thespace of possible plans that must be compared. The most important of these heuristics is dynamic programming [link] : it optimizes each sub-problem locally, independently of the larger context (so that the “best” plan for agiven sub-problem is re-used whenever that sub-problem is encountered). Dynamic programming is not guaranteed to find thefastest plan, because the performance of plans is context-dependent on real machines (e.g., the contents of the cache depend on the precedingcomputations); however, this approximation works reasonably well in practice and greatly reduces the planning time. Other approximations,such as restrictions on the types of loop-reorderings that are considered "Plans for higher vector ranks" , are described in [link] .

Questions & Answers

what is defense mechanism
Chinaza Reply
what is defense mechanisms
Chinaza
I'm interested in biological psychology and cognitive psychology
Tanya Reply
what does preconceived mean
sammie Reply
physiological Psychology
Nwosu Reply
How can I develope my cognitive domain
Amanyire Reply
why is communication effective
Dakolo Reply
Communication is effective because it allows individuals to share ideas, thoughts, and information with others.
effective communication can lead to improved outcomes in various settings, including personal relationships, business environments, and educational settings. By communicating effectively, individuals can negotiate effectively, solve problems collaboratively, and work towards common goals.
it starts up serve and return practice/assessments.it helps find voice talking therapy also assessments through relaxed conversation.
miss
Every time someone flushes a toilet in the apartment building, the person begins to jumb back automatically after hearing the flush, before the water temperature changes. Identify the types of learning, if it is classical conditioning identify the NS, UCS, CS and CR. If it is operant conditioning, identify the type of consequence positive reinforcement, negative reinforcement or punishment
Wekolamo Reply
please i need answer
Wekolamo
because it helps many people around the world to understand how to interact with other people and understand them well, for example at work (job).
Manix Reply
Agreed 👍 There are many parts of our brains and behaviors, we really need to get to know. Blessings for everyone and happy Sunday!
ARC
A child is a member of community not society elucidate ?
JESSY Reply
Isn't practices worldwide, be it psychology, be it science. isn't much just a false belief of control over something the mind cannot truly comprehend?
Simon Reply
compare and contrast skinner's perspective on personality development on freud
namakula Reply
Skinner skipped the whole unconscious phenomenon and rather emphasized on classical conditioning
war
explain how nature and nurture affect the development and later the productivity of an individual.
Amesalu Reply
nature is an hereditary factor while nurture is an environmental factor which constitute an individual personality. so if an individual's parent has a deviant behavior and was also brought up in an deviant environment, observation of the behavior and the inborn trait we make the individual deviant.
Samuel
I am taking this course because I am hoping that I could somehow learn more about my chosen field of interest and due to the fact that being a PsyD really ignites my passion as an individual the more I hope to learn about developing and literally explore the complexity of my critical thinking skills
Zyryn Reply
good👍
Jonathan
and having a good philosophy of the world is like a sandwich and a peanut butter 👍
Jonathan
generally amnesi how long yrs memory loss
Kelu Reply
interpersonal relationships
Abdulfatai Reply
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Fast fourier transforms. OpenStax CNX. Nov 18, 2012 Download for free at http://cnx.org/content/col10550/1.22
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Fast fourier transforms' conversation and receive update notifications?

Ask