-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Unable to solve asymmetric sparse system with sparse rhs #381
Comments
Update: Interestingly, I can solve the system when I cast |
It is way more common to solve for a dense vector. In many cases, the solution will also be dense even though both Update: A solution could be to automatically promote the sparse vector to a dense. |
So just print an error message explaining this? |
Didn't sparse triangular solves with sparse rhs get implemented at some point, probably by @Sacha0? Maybe we could get whatever information is needed out of UMFPACK's data structure to use the Julia solve routines? |
Are you thinking of JuliaLang/julia#14447? (That code does not perform proper sparsetriangular-sparse solves.) Best! |
Promote |
Works.
|
@ViralBShah I'm afraid that you did not properly test the issue. This pertains to sparse b and asymmetric and sparse A.
|
Thank you for pointing that out. I did indeed test the wrong thing. The easy thing to do is to add a dispatch case to convert the rhs to dense. |
While I appreciate that there is an easy workaround to this issue, it would be great to have this fixed or even to have a warning message implemented: the current error is not particularly transparent. |
Closing in favour of #34052 |
I'm trying to solve a sparse system of equations A\b, where
I'm getting the following error:
Version Info:
The text was updated successfully, but these errors were encountered: