-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Sparse triangular and diagonal solve bug #17254
Conversation
✅ Hi, I am the SymPy bot (v147). I'm here to help you write a release notes entry. Please read the guide on how to write release notes. Your release notes are in good order. Here is what the release notes will look like:
This will be added to https://github.com/sympy/sympy/wiki/Release-Notes-for-1.5. Note: This comment will be updated with the latest check if you edit the pull request. You need to reload the page to see it. Click here to see the pull request description that was parsed.
Update The release notes on the wiki have been updated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks Good To Me !
I see there are some other issues with
It gives a completely wrong result like |
Codecov Report
@@ Coverage Diff @@
## master #17254 +/- ##
============================================
+ Coverage 74.548% 74.568% +0.02%
============================================
Files 623 623
Lines 161785 161784 -1
Branches 37966 37967 +1
============================================
+ Hits 120608 120640 +32
+ Misses 35827 35793 -34
- Partials 5350 5351 +1 |
References to other Issues or PRs
Brief description of what is fixed or changed
Dense diagonal solve doesn't have this bug, but sparse diagonal solve is only solving the first column and giving the colunm vector.
Looks like sparse solver is using more inferiorly overridden version.
I've also found same bug for upper and lower triangular solve
Other comments
Release Notes
SparseMatrix.diagonal_solve
only solving the first column of the RHS matrix.SparseMatrix.upper_triangular_solve
andSparseMatrix.lower_triangular_solve
only solving the first column of the RHS matrix.SparseMatrix.upper_triangular_solve
andSparseMatrix.lower_triangular_solve
not working if RHS is an immutable matrix.