comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: matrix multiplication of 2 three-dimensional arrays
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: matrix multiplication of 2 three-dimensional arrays [message #62047 is a reply to message #62046] Wed, 20 August 2008 07:39 Go to previous messageGo to previous message
thomas.jagdhuber@dlr. is currently offline  thomas.jagdhuber@dlr.
Messages: 19
Registered: February 2007
Junior Member
On 20 Aug., 16:34, pgri...@gmail.com wrote:
> Bennett wrote:
>> On Aug 20, 8:22 am, "thomas.jagdhuber" <thomas.jagdhu...@gmail.com>
>> wrote:
>>> Dear experts,
>
>>> I would like to matrix multiply two matrices with dimensions
>>> [3,3,1500]. means: 1500 times a matrix multiplication of 2 matrices
>>> with dimension [3,3]
>>> I could do this with a for loop over the dimension [1500] but i
>>> suppose this is not very elegant. Is there any other way to do this
>>> time-efficient.
>
>>> Best regards,
>
>>> thomas
>
>> Have you searched help on product() and its dimensional keyword?
>> This could be useful for you.
>
> It is not clear to me how "product" can be used for solving
> matrix multiplications.
>
> To the original poster:
>
> 1) your problem is so small that I don't see any need for
> optimization.
>
> 2) however, if you really want to optimize in case that the number of
> matrices N should increase in the future, use loops over the 3x3
> matrix
> arrays and columns instead and treat the matrix elements as N-element
> vectors. This way, more work is done per loop for large values of N.
>
> Ciao,
> Paolo

I think i will calculate each matrix element alone by the linear
combination and then just use the whole vector of 1500 Values for
calculating each linear combination. this should be reasonable as long
as the 3x3-dimension is valid and not growing.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: strange behaviour of SOCKET
Next Topic: overplot crosses with numbers for reference

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 03:57:40 PDT 2025

Total time taken to generate the page: 0.56148 seconds