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

Home » Public Forums » archive » Distances in 3D
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: Distances in 3D [message #46142 is a reply to message #46003] Thu, 27 October 2005 18:35 Go to previous message
biophys is currently offline  biophys
Messages: 68
Registered: July 2004
Member
well, I don't see the point of using 3 where functions while they just
do exactly the same thing here. basically esc1=esc2=esc3, so you only
need 1 where() per loop. i guess shift function should work faster even
if you correct that redundant where functions. here's a one 1d example
for your reference.

x=randomu(systime(1),100)
y=x
t0=systime(1)
for i=0,99 do begin
y[i]=total(1/abs(x[1:99]-x[0]))
x=shift(x,-1)
endfor
print,systime(1)-t0
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: default plot window size in IDL 6.2
Next Topic: format integers with place separators

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

Current Time: Wed Oct 08 17:50:43 PDT 2025

Total time taken to generate the page: 0.00245 seconds