-
-
Notifications
You must be signed in to change notification settings - Fork 5.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
lufact ill condition on sparse matrix #13781
Comments
The matrix you are trying to factorize is singular and therefore the factorization fails. That is the case for both the sparse and the dense version. If you look at the result from the dense factorization, you'll see a In the sparse case we throw an exception when the matrix is singular instead of returning the failed factorization. You could argue that we are inconsistent here and maybe we should not throw an exception in the sparse case. Note, however, that you cannot do much with a failed LU factorization. The reason why we don't throw in the dense case is because we want to use the information to compute julia> det(A)
ERROR: Base.SparseMatrix.UMFPACK.MatrixIllConditionedException("")
in umfpack_numeric! at sparse/umfpack.jl:173
in lufact at sparse/umfpack.jl:114
in det at linalg/generic.jl:508 |
thank you for the explanation. |
Don't throw in sparse LU for singular matrices. Fixes #13781.
Basically, I cannot use
lufact
on a simple sparse matrix, but the dense version works fine.Forgive me if I missed something obvious. Is it a result of some linear algebra concept?
The text was updated successfully, but these errors were encountered: