Vector-radix FFT algorithm

From testwiki
Jump to navigation Jump to search

Template:Short description The vector-radix FFT algorithm, is a multidimensional fast Fourier transform (FFT) algorithm, which is a generalization of the ordinary Cooley–Tukey FFT algorithm that divides the transform dimensions by arbitrary radices. It breaks a multidimensional (MD) discrete Fourier transform (DFT) down into successively smaller MD DFTs until, ultimately, only trivial MD DFTs need to be evaluated.[1]

The most common multidimensional FFT algorithm is the row-column algorithm, which means transforming the array first in one index and then in the other, see more in FFT. Then a radix-2 direct 2-D FFT has been developed,[2] and it can eliminate 25% of the multiplies as compared to the conventional row-column approach. And this algorithm has been extended to rectangular arrays and arbitrary radices,[3] which is the general vector-radix algorithm.

Vector-radix FFT algorithm can reduce the number of complex multiplications significantly, compared to row-vector algorithm. For example, for a NM element matrix (M dimensions, and size N on each dimension), the number of complex multiples of vector-radix FFT algorithm for radix-2 is 2M12MNMlog2N, meanwhile, for row-column algorithm, it is MNM2log2N. And generally, even larger savings in multiplies are obtained when this algorithm is operated on larger radices and on higher dimensional arrays.[3]

Overall, the vector-radix algorithm significantly reduces the structural complexity of the traditional DFT having a better indexing scheme, at the expense of a slight increase in arithmetic operations. So this algorithm is widely used for many applications in engineering, science, and mathematics, for example, implementations in image processing,[4] and high speed FFT processor designing.[5]

2-D DIT case

As with the Cooley–Tukey FFT algorithm, the two dimensional vector-radix FFT is derived by decomposing the regular 2-D DFT into sums of smaller DFT's multiplied by "twiddle" factors.

A decimation-in-time (DIT) algorithm means the decomposition is based on time domain x, see more in Cooley–Tukey FFT algorithm.

We suppose the 2-D DFT is defined

X(k1,k2)=n1=0N11n2=0N21x[n1,n2]WN1k1n1WN2k2n2,

where k1=0,,N11,and k2=0,,N21, and x[n1,n2] is an N1×N2 matrix, and WN=exp(j2π/N).

For simplicity, let us assume that N1=N2=N, and the radix-(r×r) is such that N/r is an integer.

Using the change of variables:

  • ni=rpi+qi, where pi=0,,(N/r)1;qi=0,,r1;
  • ki=ui+viN/r, where ui=0,,(N/r)1;vi=0,,r1;

where i=1 or 2, then the two dimensional DFT can be written as:[6]

X(u1+v1N/r,u2+v2N/r)=q1=0r1q2=0r1[p1=0N/r1p2=0N/r1x[rp1+q1,rp2+q2]WN/rp1u1WN/rp2u2]WNq1u1+q2u2Wrq1v1Wrq2v2,
One stage "butterfly" for DIT vector-radix 2x2 FFT

The equation above defines the basic structure of the 2-D DIT radix-(r×r) "butterfly". (See 1-D "butterfly" in Cooley–Tukey FFT algorithm)

When r=2, the equation can be broken into four summations, and this leads to:[1]

X(k1,k2)=S00(k1,k2)+S01(k1,k2)WNk2+S10(k1,k2)WNk1+S11(k1,k2)WNk1+k2 for 0k1,k2<N2,

where Sij(k1,k2)=n1=0N/21n2=0N/21x[2n1+i,2n2+j]WN/2n1k1WN/2n2k2.

The Sij can be viewed as the N/2-dimensional DFT, each over a subset of the original sample:

  • S00 is the DFT over those samples of x for which both n1 and n2 are even;
  • S01 is the DFT over the samples for which n1 is even and n2 is odd;
  • S10 is the DFT over the samples for which n1 is odd and n2 is even;
  • S11 is the DFT over the samples for which both n1 and n2 are odd.

Thanks to the periodicity of the complex exponential, we can obtain the following additional identities, valid for 0k1,k2<N2:

  • X(k1+N2,k2)=S00(k1,k2)+S01(k1,k2)WNk2S10(k1,k2)WNk1S11(k1,k2)WNk1+k2;
  • X(k1,k2+N2)=S00(k1,k2)S01(k1,k2)WNk2+S10(k1,k2)WNk1S11(k1,k2)WNk1+k2;
  • X(k1+N2,k2+N2)=S00(k1,k2)S01(k1,k2)WNk2S10(k1,k2)WNk1+S11(k1,k2)WNk1+k2.

2-D DIF case

Similarly, a decimation-in-frequency (DIF, also called the Sande–Tukey algorithm) algorithm means the decomposition is based on frequency domain X, see more in Cooley–Tukey FFT algorithm.

Using the change of variables:

  • ni=pi+qiN/r, where pi=0,,(N/r)1;qi=0,,r1;
  • ki=rui+vi, where ui=0,,(N/r)1;vi=0,,r1;

where i=1 or 2, and the DFT equation can be written as:[6]

X(ru1+v1,ru2+v2)=p1=0N/r1p2=0N/r1[q1=0r1q2=0r1x[p1+q1N/r,p2+q2N/r]Wrq1v1Wrq2v2]WNp1v1+p2v2WN/rp1u1WN/rp2u2,

Other approaches

The split-radix FFT algorithm has been proved to be a useful method for 1-D DFT. And this method has been applied to the vector-radix FFT to obtain a split vector-radix FFT.[6][7]

In conventional 2-D vector-radix algorithm, we decompose the indices k1,k2 into 4 groups:

X(2k1,2k2):even-evenX(2k1,2k2+1):even-oddX(2k1+1,2k2):odd-evenX(2k1+1,2k2+1):odd-odd

By the split vector-radix algorithm, the first three groups remain unchanged, the fourth odd-odd group is further decomposed into another four sub-groups, and seven groups in total:

X(2k1,2k2):even-evenX(2k1,2k2+1):even-oddX(2k1+1,2k2):odd-evenX(4k1+1,4k2+1):odd-oddX(4k1+1,4k2+3):odd-oddX(4k1+3,4k2+1):odd-oddX(4k1+3,4k2+3):odd-odd

That means the fourth term in 2-D DIT radix-(2×2) equation, S11(k1,k2)WNk1+k2 becomes:[8]

A11(k1,k2)WNk1+k2+A13(k1,k2)WNk1+3k2+A31(k1,k2)WN3k1+k2+A33(k1,k2)WN3(k1+k2),

where Aij(k1,k2)=n1=0N/41n2=0N/41x[4n1+i,4n2+j]WN/4n1k1WN/4n2k2

The 2-D N by N DFT is then obtained by successive use of the above decomposition, up to the last stage.

It has been shown that the split vector radix algorithm has saved about 30% of the complex multiplications and about the same number of the complex additions for typical 1024×1024 array, compared with the vector-radix algorithm.[7]

References

Template:Reflist