Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Efficiently computing large numbers of vector norms
Replies: 16   Last Post: Nov 15, 2012 8:32 AM

 Messages: [ Previous | Next ]
 Harry Commin Posts: 11 Registered: 10/8/10
Re: Efficiently computing large numbers of vector norms
Posted: Nov 13, 2012 1:22 PM

> It would be interesting to know the data dimensions you're working with.

N1 = 3;
N2 = 4;
Q1 = 180;
Q2 = 63;

If I increase N1 and/or N2, the improvement (due to KronProd) decreases.

For more complicated cases, I can't see how to use KronProd at all. In particular, when there is element-by-element multiplication, e.g.:

kron(kron(A1(:,i),A2(:,i).*A3(:,j)),A4(:,j))'*X3

That is, A1 and A2 'belong' to the same loop and, similarly, A3 and A4 belong together to a different loop. However, A2(:,i).*A3(:,j) mixes the two and I can't see how to deal with it!

Date Subject Author
11/7/12 Harry Commin
11/7/12 Harry Commin
11/8/12 Teja Muppirala
11/8/12 Teja Muppirala
11/8/12 Bruno Luong
11/8/12 Matt J
11/9/12 Matt J
11/12/12 Harry Commin
11/12/12 Harry Commin
11/13/12 Matt J
11/13/12 Harry Commin
11/13/12 Matt J
11/13/12 Harry Commin
11/13/12 Matt J
11/14/12 Harry Commin
11/15/12 Harry Commin
11/15/12 Matt J