Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.



efficiently multiplying matrices
Posted:
Nov 10, 2004 7:10 AM


Hi!
I'd like to multiply matrices the following way: Ai, Bi = 3x3 real matrices
A1'*B1, A2'*B2 ... An'*Bn
those matrices are located in two big matrices: A = (A1;A2;...;An) = 3*n x 3 matrix B = (B1;B2;...;Bn) = 3*n x 3 matrix
Is there a way to do it without a loop? One possibility is to contruct 2 matrices like:
A = A1 0 0 ..... 0 0 A2 0 .... 0 0 0 A3 ....0 ............. . ........... . . . . . . An
and do the multiplication A'*B
Is there some nice and elegant way to do it? Any other hints maybe?



