Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix equality and hashing of
Value
(djeedai#198)
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