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

Home » Public Forums » archive » Re: Finding a value in a array efficiently
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: Finding a value in a array efficiently [message #48350 is a reply to message #48349] Thu, 13 April 2006 13:49 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Wayne Landsman writes:

> So what we need is a new ARRAY_OR(x,y) function which returns 1 as
> soon as it finds any match between X and Y. Or am I missing another
> method?

A long shot, but if the array is monotonic, you could
try VALUE_LOCATE. Then you have to only test the value
you are close to. Sorting the array first would probably
take this outside the "efficient" category.

Cheers,

DAvid


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Update Shared memory Structure
Next Topic: Free source code diagramming programs

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

Current Time: Wed Oct 08 13:07:16 PDT 2025

Total time taken to generate the page: 0.00361 seconds