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

Home » Public Forums » archive » Dimensional Juggling Tutorial
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Question (Re: Dimensional Juggling Tutorial) [message #24554 is a reply to message #24393] Wed, 04 April 2001 22:04 Go to previous message
marc schellens[1] is currently offline  marc schellens[1]
Messages: 183
Registered: January 2000
Senior Member
I have a simple question, more or less related to
the rebin stuff:

Assume the following routine, which shoud calculate the pairwise
distance of two array of 3-dim vectors:


array=indgen(3,21)

a=array[*,0:5]
b=array[*,6:*]

nA=n_elements(a)/3
nB=n_elements(b)/3

distArr2=fltarr(nA,nB)
for i1=0,nT1-1 do begin

distArr2[i1,*]=sqrt(total((b-rebin(a[*,i1],3,nA))^2,1))
endfor

so far so good, the routine does the job, but is there
a possibility to eliminate the for loop completely?


Greetings,
:-) marc
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Google Stiffling Free Flow of Jokes
Next Topic: Testing - Please ignore

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

Current Time: Wed Oct 08 20:05:16 PDT 2025

Total time taken to generate the page: 0.25154 seconds