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

Home » Public Forums » archive » Re: Efficient comparison of array location in two lists
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: Efficient comparison of array location in two lists [message #75215 is a reply to message #75214] Mon, 21 February 2011 20:02 Go to previous messageGo to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
On Monday, February 21, 2011 9:45:50 PM UTC-5, Heinz Stege wrote:

> The labels foo1 as well as foo2 are assumed to be unique.

I believe that this method also requires that foo2 be a one-to-one mapping of the elements in foo1, and fails for example, to find the matching 'e' values in the two vectors:

foo1 = ['b','c','d','e']
foo2 = ['a','e','f','g']

> I believe, value_locate is an often underestimated function.

And even some of us who use it often, forget that it can be used with strings. --Wayne
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: intersection of two tracks(lat,lon)
Next Topic: RK4 and IDL's array truncation

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

Current Time: Wed Oct 08 19:55:32 PDT 2025

Total time taken to generate the page: 0.00434 seconds