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
MatrixElement has None for is_commutative #9391
Comments
Doesn't #9364 close this ? |
@kshitij10496 I don't think so. I filed this issue so we didn't lose the discussion from #9364. To refresh my memory, I tried:
Note the element of the Matrix has unknown commutativity. IIRC, this issue just asks if this is ok or not. Whereas:
Thanks for the nudge to clarify this a bit! |
For most assumptions, For As a result, For matrices, it is possible to have matrices of non-commutative symbols. I don't know if our current matrix algorithms do the right thing here, but it is possible. Even so, the default for MatrixElement ought to be True, just like with Symbol. If you really want noncommutative matrix elements (which, again, I don't even know if they would give the right answers), you should have to set some flag when creating the MatrixSymbol, like |
Fixed by #11084 |
Is this ok?
Symbol
's are forbidden from having unknown commutativity. But I'm not sure whether this is ok for other objects/exprs.This comes out of a discussion in #9364.
The text was updated successfully, but these errors were encountered: