<< Chapter < Page Chapter >> Page >
This collection of modules is from a Rice University, ECE Department Technical Report written around September 1994. It grew out of the doctoral and post doctoral research of Ivan Selesnick working with Prof. C. Sidney Burrus at Rice. Earlier reports on this work were published in the ICASSP and ISCAS conference proceedings in 1992-94 and a fairly complete report was published in the IEEE Transaction on Signal Processing in January 1996.

Implementing kronecker products efficiently

In the algorithm described above we encountered expressionsof the form A 1 A 2 A n which we denote by i = 1 n A i . To calculate the product i A i x it is computationally advantageous to factor i A i into terms of the form I A i I [link] . Then each term represents a set of copies of A i . First, recall the following property of Kronecker products

A B C D = ( A C ) ( B D ) .

This property can be used to factor i A i in the following way. Let the number of rows and columns of A i be denoted by r i and c i respectively. Then

A 1 A 2 = A 1 I c 1 I r 2 A 2 = ( A 1 I r 2 ) ( I c 1 A 2 ) .

But we can also write

A 1 A 2 = I r 1 A 1 A 2 I c 2 = ( I r 1 A 2 ) ( A 1 I c 2 ) .

Note that in factorization [link] , copies of A 2 are applied to the data vector x first, followed by copies of A 1 . On the other hand, in factorization [link] , copies of A 1 are applied to the data vector x first, followed by copies of A 2 . These two factorizations can be distinguished by thesequence in which A 1 and A 2 are ordered.

Lets compare the computational complexity of factorizations [link] and [link] . Notice that [link] consists of r 2 copies of A 1 and c 1 copies of A 2 , therefore [link] has a computational cost of r 2 Q 1 + c 1 Q 2 where Q i is the computational cost of A i . On the other hand,the computational cost of [link] is c 2 Q 1 + r 1 Q 2 . That is, the factorizations [link] and [link] have in general different computational costs when A i are not square. Further, observe that [link] is the more efficient factorization exactly when

r 2 Q 1 + c 1 Q 2 < c 2 Q 1 + r 1 Q 2

or equivalently, when

r 1 - c 1 Q 1 > r 2 - c 2 Q 2 .

Consequently, in the more efficient factorization,the operation A i applied to the data vector x first is the one for which the ratio ( r i - c i ) / Q i is the more negative.If r 1 > c 1 and r 2 < c 2 then [link] is always true ( Q i is always positive). Therefore, in the most computationally efficientfactorization of A 1 A 2 , matrices with fewer rows than columns are always applied to the data vector x before matrices with more rows than columns.If both matrices are square, then their ordering does not affect the computational efficiency, becausein that case each ordering has the same computation cost.

We now consider the Kronecker product of more than two matrices. For the Kronecker product i = 1 n A i there are n ! possible different ways in which to order the operations A i . For example

A 1 A 2 A 3 = ( A 1 I r 2 r 3 ) ( I c 1 A 2 I r 3 ) ( I c 1 c 2 A 3 ) = ( A 1 I r 2 r 3 ) ( I c 1 r 2 A 3 ) ( I c 1 A 2 I c 3 ) = ( I r 1 A 2 I r 3 ) ( A 1 I c 2 r 3 ) ( I c 1 c 2 A 3 ) = ( I r 1 A 2 I r 3 ) ( I r 1 c 2 A 3 ) ( A 1 I c 2 c 3 ) = ( I r 1 r 2 A 3 ) ( A 1 I r 2 c 3 ) ( I c 1 A 2 I c 3 ) = ( I r 1 r 2 A 3 ) ( I r 1 A 2 I c 3 ) ( A 1 I c 2 c 3 )

Each factorization of i A i can be described by a permutation g ( · ) of { 1 , . . . , n } which gives the order in which A i is applied to the data vector x . A g ( 1 ) is the first operation applied to the data vector x , A g ( 2 ) is the second, and so on. For example, the factorization [link] is described by the permutation g ( 1 ) = 3 , g ( 2 ) = 1 , g ( 3 ) = 2 . For n = 3 , the computational cost of each factorization can be writtenas

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Automatic generation of prime length fft programs. OpenStax CNX. Sep 09, 2009 Download for free at http://cnx.org/content/col10596/1.4
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Automatic generation of prime length fft programs' conversation and receive update notifications?

Ask