-
-
Notifications
You must be signed in to change notification settings - Fork 72
Fix successful return codes for factorization methods #631
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
Conversation
@@ -258,5 +263,5 @@ function SciMLBase.solve!(cache::LinearCache, alg::AppleAccelerateLUFactorizatio | |||
aa_getrs!('N', A.factors, A.ipiv, cache.u; info) | |||
end | |||
|
|||
SciMLBase.build_linear_solution(alg, cache.u, nothing, cache) | |||
SciMLBase.build_linear_solution(alg, cache.u, nothing, cache; retcode = ReturnCode.Success) |
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.
[JuliaFormatter] reported by reviewdog 🐶
SciMLBase.build_linear_solution(alg, cache.u, nothing, cache; retcode = ReturnCode.Success) | |
SciMLBase.build_linear_solution( | |
alg, cache.u, nothing, cache; retcode = ReturnCode.Success) |
@@ -953,6 +953,12 @@ A fast factorization which uses a Cholesky factorization on A * A'. Can be much | |||
faster than LU factorization, but is not as numerically stable and thus should only | |||
be applied to well-conditioned matrices. | |||
|
|||
!!! warn | |||
`NormalCholeskyFactorization` should only be applied to well-conditioned matrices. As a |
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.
[JuliaFormatter] reported by reviewdog 🐶
`NormalCholeskyFactorization` should only be applied to well-conditioned matrices. As a | |
`NormalCholeskyFactorization` should only be applied to well-conditioned matrices. As a |
@@ -1010,6 +1016,12 @@ | |||
fact = cholesky(Symmetric((A)' * A), alg.pivot; check = false) | |||
end | |||
cache.cacheval = fact | |||
|
|||
if hasmethod(LinearAlgebra.issuccess, Tuple{typeof(fact)}) && !LinearAlgebra.issuccess(fact) |
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.
[JuliaFormatter] reported by reviewdog 🐶
if hasmethod(LinearAlgebra.issuccess, Tuple{typeof(fact)}) && !LinearAlgebra.issuccess(fact) | |
if hasmethod(LinearAlgebra.issuccess, Tuple{typeof(fact)}) && | |
!LinearAlgebra.issuccess(fact) |
# This is a known and documented incorrectness in NormalCholeskyFactorization | ||
# due to numerical instability in its method that is fundamental. |
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.
[JuliaFormatter] reported by reviewdog 🐶
# This is a known and documented incorrectness in NormalCholeskyFactorization | |
# due to numerical instability in its method that is fundamental. | |
# This is a known and documented incorrectness in NormalCholeskyFactorization | |
# due to numerical instability in its method that is fundamental. |
Fixes #630 fixes #532