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

Home » Public Forums » archive » fast array comparison
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
fast array comparison [message #33162] Sun, 08 December 2002 09:14
Sean Raffuse is currently offline  Sean Raffuse
Messages: 46
Registered: July 2001
Member
Hello.

Let's say I have two arrays.

requested_array = [5,6,7,8,9,10]
available_array = [3,7,8,9,12,13,16]

What is the absolute fastest way to determine the indices of available_array
that contain values in requested_array? The indices need not match. i.e.,
if the two arrays above were used, I would like to return index=[1,2,3]
because the requested values 7, 8 and 9 are in the available array.

Thanks in advance,

Sean Raffuse
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: calling C from IDL under OS X
Next Topic: Re: calling C from IDL under OS X

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

Current Time: Wed Oct 08 14:52:05 PDT 2025

Total time taken to generate the page: 0.00481 seconds