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
But here's a way of thinking about it: an OffsetArray is really just an optimized representation of an ordered dict, with index=>value pairs. When the container is empty, there are no pairs, so of course two such dicts are the same.
Previously, empty arrays with different offsets compared as different because their axes compared as different.
In Julia master (JuliaLang/julia#32348), empty ranges are now equal, making
OffsetArray([],-1) == OffsetArray([], -2)
.I'm not sure what the right semantic is here; I believe this was untested in the entire ecosystem.
The text was updated successfully, but these errors were encountered: