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
times: elementwise multiplication broken on SymPy 1.9 #1109
Comments
See Issue #1109. This was covered by a doctest but its so basic we should have it in the main test suite.
A git bisect leaves
|
I looked around at sympy and found that pull request from the author also included a commit to the sympy/matrices/tests/test_commonmatrix.py. It mentions the issue #22353. I decided to run this test case, by hand in sympy-1.9 where it fails. It now runs properly in 1.10. |
Anything we should do here for 3.0.0? We could have a |
Actually, for this particular issue, we can workaround it by using |
So could we keep using hadamard_product when SymPy >= 1.9? That sounds like a nice fix to me! |
Yes, |
Sure, try it? If tests pass, it should be good. Semantically correct is good! |
Closes gnu-octave#1109. * inst/@sym/rdivide.m: Fix it. * inst/@sym/times.m: Fix it.
Otherwise, we use "hadamard_product". Closes gnu-octave#1109. * inst/@sym/rdivide.m: Fix it. * inst/@sym/times.m: Fix it.
Consider
On SymPy 1.9, I get:
Looks like an upstream issue but its fixed in the later SymPy 1.10.x. Should bisect and ensure upstream has a unit test for this...
If so (rather than our fault), maybe we want to implement a blocklist or at leat a warnlist on "known bad" SymPy versions. E.g., in
sympref diagnose
.The text was updated successfully, but these errors were encountered: