Skip to content

hash for DenseMatrix should not be allowed #467

Open
@rikardn

Description

@rikardn

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions