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

Home » Public Forums » archive » Speedy way to get compare array elements. . .
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Speedy way to get compare array elements. . . [message #32838] Wed, 13 November 2002 15:06 Go to previous message
Sean Raffuse is currently offline  Sean Raffuse
Messages: 46
Registered: July 2001
Member
Exalted newsgroup,

What is the fastest way to compare two adjacent values in an array?

Something like:

whoa_huge_jump = where(A[i+1]-A[i] GT 500)

Since this is IDL, I'm assuming I don't have to make a loop.

Thanks,

Sean
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: CW_FORM
Next Topic: CreateDrawWidget fails " Unable to acquire a GL context."

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

Current Time: Wed Oct 08 15:06:05 PDT 2025

Total time taken to generate the page: 0.00504 seconds