Hi Jonathan,

> I am not clear what you mean by 'maximum difference'.
>
> I can guess two things;
>  1. You want to see simple output for total difference either in object or 
> file
>  or
>  2. You want to see which object contain the biggest different number in two 
> files.

The second idea is what I intended.  Given two comparable objects,
compute the maximum pointwise difference between their contents.  For
example, if the objects are vectors, this would be the maximum norm of
their difference.  Given two files, return the maximum difference
found between any two comparable objects having the same name.  I'd
like to know both the magnitude and the object's name.

> If none of these are what you meant, could you explain the purpose for it?

Sure.  Using such a utility, one could quickly look at the single
biggest error between two different data files.  This lets one easy
check convergence rates (given an "exact" files and a series of
increasingly accurate approximations), easily perform unit tests where
a computed output file is compared against a known good solution, and
easily see the impact of compiling codes with different optimization
options.

> Also some example would be nice.

Say I've got one file containing
    x = [ 1, 2, 3 ];
    y = [ 4, 5, 6];
and another containing
    x = [ 1, 2.1, 3];
    y = [ 4, 5.05, 6];
then I'd expect such a utility to report that the maximum difference
between the two files is 0.1 with bonus points for telling me the
biggest difference occurred at x[1].

Hope that helps,
Rhys

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

Reply via email to