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
This means that two Arr objects with identical symbolic elements but different array structures and sizes will have the same hash value.
For example, the following code snippet demonstrates this issue:
using Symbolics
a1 = only(@variables a[1:5])
a2 = only(@variables a[1:4, 1:6])
a3 = only(@variables a)
h1 = hash(a1)
h2 = hash(a2)
h3 = hash(a3)
h1 == h2 == h3 # This returns true, but we expect it to be false
The text was updated successfully, but these errors were encountered:
Currently, the
hash
function forArr
only considers itsvalue
field.Symbolics.jl/src/arrays.jl
Lines 495 to 499 in 1da13fd
This means that two
Arr
objects with identical symbolic elements but different array structures and sizes will have the samehash
value.For example, the following code snippet demonstrates this issue:
The text was updated successfully, but these errors were encountered: