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

Home » Public Forums » archive » Help with matrix operations
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Help with matrix operations [message #955] Tue, 27 April 1993 14:10
pln is currently offline  pln
Messages: 10
Registered: September 1991
Junior Member
I have a little matrix problem that I'm trying to do without using
loops. So far I'm not clever enough to figure out how to do it.
Suppose we have
A = fltarr(N,N)
B = fltarr(N)
C = fltarr(N,N,N)
I want to have C(i,j,k) = A(i,j) + B(k)
for all i,j,k < N. Is there a way to do this without writing
ugly loops? I'm sure it's trivial, and I'll feel like a dope
when the first person points it out. Fire away.

--
* Patrick L. Nolan (415)723-0133 *
* W. W. Hansen Experimental Physics Laboratory (HEPL) *
* Stanford University *
* Bitnet: PLN@SLACVM Internet: pln@egret0.stanford.edu *
[Message index]
 
Read Message
Previous Topic: plotting vs year-month-day
Next Topic: Survey Pros & Cons OOP

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

Current Time: Fri Oct 10 04:21:17 PDT 2025

Total time taken to generate the page: 0.48360 seconds