#18360: handle mutable objects better in symbolic evaluation
---------------------------+----------------------------
Reporter: rws | Owner:
Type: enhancement | Status: new
Priority: major | Milestone: sage-6.7
Component: symbolics | Keywords:
Merged in: | Authors:
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
---------------------------+----------------------------
In examples like this:
{{{
sage: f(x)=matrix()
sage: bool(f(x)-f(x)==0)
...
TypeError: mutable matrices are unhashable
}}}
the `f(x)` is expanded into a mutable matrix, but this prevents evaluation
because Pynac is called by `Expression._sub_` and wants to do hashes on
the matrix for comparison reasons. However, for the purpose of subtraction
dealing with a mutable matrix is completely unnecessary. So a solution
would be to turn mutable objects immutable before doing arithmetics in
`Expression` or in Pynac.
--
Ticket URL: <http://trac.sagemath.org/ticket/18360>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.