Re: How to test for a vector/matrix of constants? [message #51805 is a reply to message #51761] |
Fri, 08 December 2006 05:48  |
Paul Van Delst[1]
Messages: 1157 Registered: April 2002
|
Senior Member |
|
|
F�LDY Lajos wrote:
>
> On Wed, 6 Dec 2006, Paul van Delst wrote:
>
>> From Braedley
>> if n_elements(uniq(array, sort(array))) eq 1 then ;flag it
>> -> No float comparison
>
> Do you think sort works without comparison? :-)
Well, I was going to qualify sort and uniq - but I figured people would grok that part
since since they are documented IDL routines and, as such, I put them in the category of
"Crikey, they better have done it right." I was specifically referring to user programmer
written comparisons, not those of IDL commands (be they written in IDL or C).
cheers,
paulv
--
Paul van Delst Ride lots.
CIMSS @ NOAA/NCEP/EMC Eddy Merckx
Ph: (301)763-8000 x7748
Fax:(301)763-8545
|
|
|