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

Home » Public Forums » archive » tensor 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
tensor multiplication [message #20082] Wed, 17 May 2000 00:00 Go to previous message
Daniel Luebbert is currently offline  Daniel Luebbert
Messages: 6
Registered: May 2000
Junior Member
Hi,

does anybody out there know an efficient and elegant way (i.e., without
for-loops)
to implement a tensor multiplication in IDL?

What I mean is this:
IDL can do a matrix multiplication, e.g. if I do
c = indgen(3,4)
d = indgen(4)
then for
help, c#d
I get
LONG ARRAY[3],
and that's what I expect.


But now, when I take one more dimension, like
c = indgen(2,3,4)
d = indgen(4)
then
help, c#d
gives an error! (incompatible matrix dimensions...).
What a would like to get is obviously an
ARRAY[2,3]


Does anybody know how?

Daniel

------------------------------------------------------------ ------------
Daniel Luebbert
luebbert@slac.stanford.edu
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [XYZ]MINOR and /XLOG, /YLOG
Next Topic: Re: returning values from widget hierarchy

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

Current Time: Sat Oct 11 05:23:59 PDT 2025

Total time taken to generate the page: 0.47959 seconds