Skip to content

Commit

Permalink
Fix equality and hashing of Value (djeedai#198)
Browse files Browse the repository at this point in the history
Fix partial and total equality of `ScalarValue` and `VectorValue`, and
their hashing computation. For consistency between equality and hashing,
values of different types must compare inequal and hash differently, and
not cast to each other.

Add a new `cast_eq()` utility allowing to compare scalar and vector
values taking into account casting of one type to the other.
  • Loading branch information
djeedai authored Jul 9, 2023
1 parent ad2dc95 commit 78c16a1
Showing 1 changed file with 299 additions and 33 deletions.
Loading

0 comments on commit 78c16a1

Please sign in to comment.