array_equal and array_equiv comparison functions for structured arrays
26 Aug
2011
26 Aug
'11
2:09 p.m.
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
4626
Age (days ago)
4626
Last active (days ago)
0 comments
1 participants
participants (1)
-
Derek Homeier