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 #82696 is a reply to message #82604] Mon, 07 January 2013 14:30 Go to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
On 1/7/13 4:59 AM, Fab wrote:
> On 12/17/2012 08:25 PM, Chris Torrence wrote:
>> This is now fixed and will be in IDL 8.8.2. You can now pass a
>> 1-element array or a scalar into value_locate.
>>
>> -Chris
>> ExelisVIS
>
> Hi Chris,
>
> While you are looking at VALUE_LOCATE, could you also look into this?
>
> IDL> data = FINDGEN(10) & data[0] = !VALUES.F_NAN
> IDL> p = VALUE_LOCATE(INDGEN(10), data) & print, p[0]
> 0
> % Program caused arithmetic error: Floating illegal operand
> IDL> p = VALUE_LOCATE(LINDGEN(10), data) & print, p[0]
> -1
> % Program caused arithmetic error: Floating illegal operand
> IDL> p = VALUE_LOCATE(FINDGEN(10), data) & print, p[0]
> -1
>
> This was discussed in this thread:
> https://groups.google.com/forum/?hl=fr&fromgroups=#!sear chin/comp.lang.idl-pvwave/fab/comp.lang.idl-pvwave/DBbUmnAaB Mc/kYdniU_d3koJ
>
>
> Thanks!
>
> Fab
>

What do you expect him to do? Our conclusion was that it's inherently
undefined, so there's not much point in asking for consistency.

-Jeremy.
[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: Fri Oct 10 07:18:51 PDT 2025

Total time taken to generate the page: 0.00254 seconds