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

Home » Public Forums » archive » Re: vector matrix multipication
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: vector matrix multipication [message #43413] Mon, 11 April 2005 08:28 Go to previous message
Benjamin Luethi is currently offline  Benjamin Luethi
Messages: 22
Registered: December 2004
Junior Member
you could write out the matrix multiplication:

result = [ G[0,0,*]*V[0]+G[1,0,*]*V[1], G[0,1,*]*V[0]+G[1,1,*]*V[1] ]

but this looks pretty ugly and I don't know if it's an improvement...

Ben

On 11 Apr 2005 07:00:20 -0700, pete <schuck@ppdmail.nrl.navy.mil> wrote:

> Is there any way to do vector matrix operations in IDL?
>
> For example I have an array of N 2x2 matrics: G[0:1,0:1,N] and
> a vector V[0:1]. I wouled like G[0:1,0:1,i]##V at each location "i"
> WITHOUT using a for loop. Is that possible?
>
> thanks,
>
> -- Pete
>



--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
[Message index]
 
Read Message
Read Message
Previous Topic: Re: array subscripting problem
Next Topic: how do I erase old data when using plots?

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

Current Time: Fri Oct 10 14:08:08 PDT 2025

Total time taken to generate the page: 1.60064 seconds