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

Home » Public Forums » archive » matrix multiplication
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
matrix multiplication [message #911] Mon, 22 March 1993 14:51 Go to previous message
c1dje is currently offline  c1dje
Messages: 2
Registered: March 1993
Junior Member
I am trying to apply a list of rotation matrices to a matching list
of vectors, i.e. a vector of three-vectors and a vector of 3x3 matrices. I
can correctly apply a rotation matrix between a vector and a matrix, but
now the vector is a list of vectors and the matrix is a list of matrices.
I could handle all of this with a "for" loop, but that is inefficient in
IDL; I would like IDL to loop over all of the indices internally. My
problem is creating the rotation matrix with the proper ordering for matrix
multiply (#).
Previously I multiplied a 3-vector by a 3x3 matrix:

[v1,v2,v3] # [[a1,a2,a3],[a4,a5,a6],[a7,a8,a9]]

but now all of the variables are vectors (of matching length) so V is Nx3
and A is Nx3x3. I can transpose V so that it is 3xN but IDL requires the
argument of transpose to be 1D or 2D, not 3D as the rotation matrix
appears. How do I generate the 3x3xN matrix from nine vectors of length N?
Will this collective matrix multiply even work as I expect?

David
============================================================ ===================
David Edelsohn T.J. Watson Research Center
c1dje@watson.ibm.com P.O. Box 218
+1 914 945 3011 (Tieline 862) Yorktown Heights, NY 10598
"The Church doesn't have problems with sex; the world does" -- Vatican official
"A good theory should fit on a T-shirt" -- Astronomer at Jan 1992 AAS meeting
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: DLM unload
Next Topic: DLM unload

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

Current Time: Fri Oct 10 09:05:56 PDT 2025

Total time taken to generate the page: 0.88205 seconds