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: MTIMESX when Inner matrix dimensions are not agree.
Replies: 11   Last Post: Apr 18, 2013 2:19 PM

 Messages: [ Previous | Next ]
 ghasem Posts: 118 Registered: 4/13/13
Re: MTIMESX when Inner matrix dimensions are not agree.
Posted: Apr 18, 2013 8:28 AM

> 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:
a=rand(33,32,32);
b=rand(33,32,32);
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?
ghasem

Date Subject Author
4/17/13 ghasem
4/18/13 ghasem
4/18/13 Bruno Luong
4/18/13 ghasem
4/18/13 Nasser Abbasi
4/18/13 ghasem
4/18/13 Bruno Luong
4/18/13 ghasem
4/18/13 Steven Lord
4/18/13 ghasem
4/18/13 Bruno Luong
4/18/13 ghasem