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

Home » Public Forums » archive » Re: Sorting (big) int array: Eliminate for loop
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: Sorting (big) int array: Eliminate for loop [message #68060 is a reply to message #68059] Mon, 21 September 2009 08:29 Go to previous message
Brian Larsen is currently offline  Brian Larsen
Messages: 270
Registered: June 2006
Senior Member
I think this is a use for value_locate. But there are lots of
caveats. Like A would have to be sorted which is possibly a speed
hit. Are all the numbers unique? If not then
B[elements]=A could have more than one answer, which could be bad.

Read through the value_locate help and see if it can work for your
application.


Cheers,

Brian

------------------------------------------------------------ --------------
Brian Larsen
Boston University
Center for Space Physics
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: passing parameters to .sav file in IDL VM
Next Topic: Re: HDF: accessing VData in VGroup

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

Current Time: Sat Oct 11 13:50:02 PDT 2025

Total time taken to generate the page: 1.92154 seconds