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

Home » Public Forums » archive » Re: conditional operator
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: conditional operator [message #63586 is a reply to message #63579] Fri, 14 November 2008 05:16 Go to previous message
Wox is currently offline  Wox
Messages: 184
Registered: August 2006
Senior Member
On 14 nov, 11:14, greg.a...@googlemail.com wrote:
> It seems odd to me that you can't apply the conditional operator "?"
> to an array:
>
> threshold = (image gt z) ? 0b:255b
>
> It's not hard to find another way, but this would be more elegant.
>
> cheers,
> Greg

I don't see how that would be more elegant than e.g.
threshold = (image gt z) -1b
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: type conversion string -> float
Next Topic: ncdf string array dimension

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

Current Time: Fri Oct 10 14:00:14 PDT 2025

Total time taken to generate the page: 0.56127 seconds