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

Home » Public Forums » archive » Re: compare 2-d array with vector
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: compare 2-d array with vector [message #81547 is a reply to message #81546] Mon, 24 September 2012 04:53 Go to previous messageGo to previous message
Heinz Stege is currently offline  Heinz Stege
Messages: 189
Registered: January 2003
Senior Member
On Mon, 24 Sep 2012 13:39:44 +0200, Heinz Stege wrote:

> the use of the value_locate function is very helpful:
>
> subscripts=where(a eq b[value_locate(b,a)>0])
>
> Note that b must be sorted and must have 2 or more elements.

AFAIK some IDL Developers are reading this newsgroup. Here is a
request for an enhancement of the value_locate function:

Please let value_locate return result=-long(a lt b[0]) instead of
throwing an error message, if b has 1 element only.

Would be nice. Thank you.

Heinz
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: copying pointers in structures
Next Topic: interpolation of two different model

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

Current Time: Thu Oct 09 20:27:23 PDT 2025

Total time taken to generate the page: 1.11893 seconds