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

Home » Public Forums » archive » Using Minimum operator with NaN values
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 Minimum operator with NaN values [message #86282 is a reply to message #86270] Tue, 22 October 2013 14:48 Go to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
> I do dislike that the > and < operators do not work with NaNs, however there is a simple workaround if you need it (this is what I do when I need to preserve NaNs through those operations).
>
>>
> print,(a>2)+a*0

Thanks. The above code is almost twice as fast for me compared with

g=where(finite(a))
a[g] = a[g]>2

though it still gives an illegal operand error on the Mac. --Wayne
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: object argument passing behaviour changed in v8.2.2?
Next Topic: How to obtain contour data through contour command?

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

Current Time: Fri Oct 10 17:41:16 PDT 2025

Total time taken to generate the page: 0.97820 seconds