You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bit of technicality but according to the docs for isequal
isequal is an equivalence relation - it is reflexive (=== implies isequal), symmetric (isequal(a, b) implies isequal(b, a))
and transitive (isequal(a, b) and isequal(b, c) implies isequal(a, c)).
but one can easily violate this last property in AxisKeys
I guess isequal is overloaded to account for floats and missings when comparing the underlying arrays but it means we violate this property of the function when comparing between keyed arrays. I'm wondering if this is indeed intended behaviour or an oversight when overloading the function?
The text was updated successfully, but these errors were encountered:
glennmoy
changed the title
isequal violates transitive propery
isequal violates transitive property
Oct 26, 2022
Bit of technicality but according to the docs for
isequal
but one can easily violate this last property in AxisKeys
I guess
isequal
is overloaded to account for floats and missings when comparing the underlying arrays but it means we violate this property of the function when comparing between keyed arrays. I'm wondering if this is indeed intended behaviour or an oversight when overloading the function?The text was updated successfully, but these errors were encountered: