Skip to content
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

Factorization algorithms return ReturnCode.Default when it should be ReturnCode.Success #532

Open
vpuri3 opened this issue Aug 22, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@vpuri3
Copy link
Member

vpuri3 commented Aug 22, 2024

julia> prob = LinearProblem(rand(4, 4), rand(4)); sol = solve(prob, LUFactorization())
retcode: Default
u: 4-element Vector{Float64}:
  0.0561509562131119
  2.8927484238929284
 -2.005290617428258
 -1.0147124069649773

julia> prob.A * sol.u - prob.b
4-element Vector{Float64}:
  1.1102230246251565e-16
  1.1102230246251565e-16
 -2.220446049250313e-16
  0.0
@vpuri3 vpuri3 added the bug Something isn't working label Aug 22, 2024
@ChrisRackauckas
Copy link
Member

Well it should check the retcode on the linear solver first, but yes it should report success if successful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants