Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hash for DenseMatrix should not be allowed #467

Open
rikardn opened this issue Jan 25, 2024 · 0 comments
Open

hash for DenseMatrix should not be allowed #467

rikardn opened this issue Jan 25, 2024 · 0 comments
Labels

Comments

@rikardn
Copy link
Contributor

rikardn commented Jan 25, 2024

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
@rikardn rikardn added the bug label Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant