[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Cell arrays of strings in "sort" and "unique"
From: |
David Bateman |
Subject: |
Re: Cell arrays of strings in "sort" and "unique" |
Date: |
Wed, 15 Sep 2004 21:40:31 +0200 |
User-agent: |
Mutt/1.4.1i |
> If the position of NaN is important, its recommended doing explicit
> checks for NaN's - and if only for the sake of readibility of the code.
You've not read sort.cc lately :-) ... If floating format is IEEE754,
doubles are cast as "long long unsigned int" and with a bit of magic
the NaN's are sorted correctly, where the operator < alone won't do
it. This little trick gains a speed factor of 2.5 is sort, but readable
it is not.
Cheers
David
--
David Bateman address@hidden
Motorola CRM +33 1 69 35 48 04 (Ph)
Parc Les Algorithmes, Commune de St Aubin +33 1 69 35 77 01 (Fax)
91193 Gif-Sur-Yvette FRANCE
The information contained in this communication has been classified as:
[x] General Business Information
[ ] Motorola Internal Use Only
[ ] Motorola Confidential Proprietary
- Re: Cell arrays of strings in "sort" and "unique", David Bateman, 2004/09/14
- Re: Cell arrays of strings in "sort" and "unique", John W. Eaton, 2004/09/14
- Re: Cell arrays of strings in "sort" and "unique", David Bateman, 2004/09/15
- Re: Cell arrays of strings in "sort" and "unique", Quentin Spencer, 2004/09/15
- Re: Cell arrays of strings in "sort" and "unique", David Bateman, 2004/09/15
- Re: Cell arrays of strings in "sort" and "unique", Alois Schloegl, 2004/09/15
- Re: Cell arrays of strings in "sort" and "unique", John W. Eaton, 2004/09/15
- Re: Cell arrays of strings in "sort" and "unique", Alois Schloegl, 2004/09/16
Re: Cell arrays of strings in "sort" and "unique", David Bateman, 2004/09/15
- Re: Cell arrays of strings in "sort" and "unique",
David Bateman <=