Updates:
Status: Valid
Comment #1 on issue 4107 by [email protected]: Equality of unequal
matrices does not reduce to False
http://code.google.com/p/sympy/issues/detail?id=4107
The docstring is old. Historically MatrixExpr used to subclass from Expr.
This ended up being a bad idea. I'll submit a PR to update the docstring.
My experience is that much of SymPy's code assumes that Expr means
ScalarExpr.
If you wanted to extend auto-evaluation of Eq to non-Exprs I'd suggest
building an _eval_Eq or similar method. In the case of matrix expressions
this could rely on the .equals method
In [2]: Eq(ImmutableMatrix([[1]]), ImmutableMatrix([[2]]))
Out[2]: [1] = [2]
In [3]: ImmutableMatrix([[1]]).equals(ImmutableMatrix([[2]]))
Out[3]: False
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" 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/sympy-issues.
For more options, visit https://groups.google.com/groups/opt_out.