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

Home » Public Forums » archive » Re: Using value_locate with a non-monotonic vector! And it's working!??!
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: Using value_locate with a non-monotonic vector! And it's working!??! [message #52054] Wed, 03 January 2007 18:23 Go to previous message
cgguido is currently offline  cgguido
Messages: 195
Registered: August 2005
Senior Member
Hi Ben,

you are absolutely right: I just did not read the manual carefully
enough :-( Sorry everyone...

Also, I will look into fixed look-up tables! thanks for the advice!

Gianguido


Ben Tupper wrote:
> Hi,
>
> You are right that VALUE_LOCATE requires that the first argument be
> monotonic, but the second is not subject to the same requirement. What
> you have shown is that your first argument (b) is monotonic... at least
> it looks right to me.
>
> That is a pretty big array that you will be searching. You might search
> a recent discussion about how efficient VALUE_LOCATE is compared to
> a fixed look-up table. (I think it was Greg Michael who posted the
> original question.) VALUE_LOCATE repeatedly cuts the vector (in this
> case b) in half as it works to narrow down the 'width' of the search
> area. That is pretty quick - but it will still have to do that for every
> element in your second argument (a).
>
> Ben
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Is ITTVIS abandoning me?
Next Topic: Re: forward slash in data item name

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

Current Time: Wed Oct 08 19:27:43 PDT 2025

Total time taken to generate the page: 0.00386 seconds