symengine.py
symengine.py copied to clipboard
hash for DenseMatrix should not be allowed
Trying to hash any DenseMatrix will return 0. Instead it should raise since we shouldn't allow hashing a mutable object.
import symengine
hash(symengine.Matrix())
>>> 0
hash(symengine.Matrix([1, 2]))
>>> 0