[Numpy-discussion] array_equal and array_equiv comparison functions for structured arrays
Derek Homeier
derek@astro.physik.uni-goettingen...
Fri Aug 26 09:09:53 CDT 2011
Hi,
as the subject says, the array_* comparison functions currently do not operate
on structured/record arrays. Pull request
https://github.com/numpy/numpy/pull/146
implements these comparisons.
There are two commits, differing in their interpretation whether two
arrays with different field names, but identical data, are equivalent; i.e.
res = array_equiv(array((1,2), dtype=[('i','i4'),('v','f8')]),
array((1,2), dtype=[('n','i4'),('f','f8')]))
is True in the current HEAD, but False in its parent.
Feedback and additional comments are invited.
Cheers,
Derek
More information about the NumPy-Discussion
mailing list