Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: efficiently multiplying matrices
Replies: 3   Last Post: Nov 10, 2004 10:19 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
marquito

Posts: 11
Registered: 1/25/05
efficiently multiplying matrices
Posted: Nov 10, 2004 7:10 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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?




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.