Hi Peter,

>> Atop h5diff 1.8.5-patch1 I've noticed that comparing NaN against NaN
>> passes when using --use-system-epsilon.  It fail when using
>> --delta=something.

> It may be the case that your system epsilon is different from DBL_EPSILON....
>
>   -d D, --delta=D
>         Print difference if (|a-b| > D). D must be a positive number.
>         Can not use with '-p' or '--use-system-epsilon'.
> ...
>   --use-system-epsilon
>         Print difference if (|a-b| > EPSILON), EPSILON is system defined 
> value.

My question wasn't about the magnitude of EPSILON used.  Changing the
magnitude of the EPSILON used in the comparison (|a-b| > EPSILON)
cannot explain the differences in NaN handling I described above.

Something else must be different between --use-system-epsilon and
--delta=something (for appropriately chosen "something").  Maybe --nan
is implied?  Maybe the comparison is "inverted" for
--use-system-epsilon so that a NaN causes the check to succeed while
the "regular" check for --delta=something fails for a NaN value?

Thanks for the response,
Rhys

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Reply via email to