The Math Forum

Search All of the Math Forum:

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

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

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

Topic: MTIMESX when Inner matrix dimensions are not agree.
Replies: 11   Last Post: Apr 18, 2013 2:19 PM

Advanced Search

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

Posts: 118
Registered: 4/13/13
Re: MTIMESX when Inner matrix dimensions are not agree.
Posted: Apr 18, 2013 8:28 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

> No you didn't, since you ask about "matrix dimension must agree" error.
> And you start over again with mmx.
> Bruno

yes,I know,but you don't understand my question.
in fact,my question was as follow:
if I want to use from MTIMESX for fast opertaion,but second dimension of A is not equal with first diemnsion of B,but second and third dimensions in both A and B are same,is a good choice MTIMESX?
for example:
I konw that : c = mtimesx(a,b) => is false!
also,I know that simply : c =a.*b
but I want to use from:
c = permute(mtimesx(permute(a,[2 3 1]),permute(b,[2 3 1])),[3 1 2]);
NOW,my question was:
between " .* " operator and " mtimesx (or mmx)" , which is faster?

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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.