[svn-r17467] " Use strict equality as default

"   Use "--use-system-epsilon" for system EPSILON
"   Use "-p" or "-d" for whatever user's choice of epsilon
"   Use "-p 0" or "-d 0" for strict equality (same as default)
This commit is contained in:
Peter Cao
2009-09-11 15:15:22 -05:00
parent 258d4b3835
commit aeec66cf49
18 changed files with 183 additions and 402 deletions

View File

@@ -12,13 +12,16 @@ usage: h5diff [OPTIONS] file1 file2 [obj1[obj2]]
-q, --quiet Quiet mode. Do not do output
-c, --compare List objects that are not comparable
-N, --nan Avoid NaNs detection
-n C, --count=C Print differences up to C number
-d D, --delta=D Print difference when greater than limit D
-p R, --relative=R Print difference when greater than relative limit R
C - is a positive integer
D - is a positive number. Compare criteria is |a - b| > D
R - is a positive number. Compare criteria is |(b-a)/a| > R
-n C, --count=C Print differences up to C number, C is a positive integer.
-d D, --delta=D Print difference if (|a-b| > D), D is a positive number.
-p R, --relative=R Print difference if (|(a-b)/b| > R), R is a positive number.
--use-system-epsilon Print difference if (|a-b| > EPSILON),
where EPSILON (FLT_EPSILON or FLT_EPSILON) is the system epsilon value.
If the system epsilon is not defined, use the value below:
FLT_EPSILON = 1.19209E-07 for float
DBL_EPSILON = 2.22045E-16 for double
-d, -p, and --use-system-epsilon options are used for comparing floating point values.
By default, strict equality is used. Use -p or -d to set specific tolerance.
Modes of output: