Skip to content
This repository was archived by the owner on Apr 16, 2025. It is now read-only.

Commit bb498d5

Browse files
committed
Fix Halley
1 parent ffdc60c commit bb498d5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/nlsolve/halley.jl

+1-2
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,8 @@ function SciMLBase.__solve(prob::NonlinearProblem, alg::SimpleHalley, args...;
7878
cᵢ = _restructure(cᵢ, cᵢ_)
7979

8080
if i == 1
81-
if iszero(fx)
81+
all(iszero(fx)) &&
8282
return build_solution(prob, alg, x, fx; retcode = ReturnCode.Success)
83-
end
8483
else
8584
# Termination Checks
8685
tc_sol = check_termination(tc_cache, fx, x, xo, prob, alg)

0 commit comments

Comments
 (0)