Comparison with NaN

Michael Goffioul michael.goffioul at gmail.com
Mon May 11 03:36:06 CDT 2009


On Mon, May 11, 2009 at 9:29 AM, Jaroslav Hajek <highegg at gmail.com> wrote:
>> It's not defined. MSVC uses _isnan instead, so I assume that
>> std::_isnan would exist, though I didn't test yet.
>> (altough http://msdn.microsoft.com/en-us/library/7wsh95e5.aspx seems to
>> indicate that cmath does not define isnan).
>>
>
> Thx, good to know. The test just assumes that is std::isnan exists in
> <cmath>, it's very likely to be C99-compliant and thus probably by far
> the best choice to use. But if that's not the case, the old (and
> usually slower) codes in lo-ieee take place, so it should still be OK
> if you don't see problems with other tests (a malfunctioning isnan
> should break dozens of other tests).

No, I get only 15 failures. And most of them include sorting with NaN,
afaik: sort, unique and perctile.

Michael.


More information about the Octave-maintainers mailing list