Skip to content

Commit

Permalink
Update src/descent/halley.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal authored and tansongchen committed Nov 1, 2024
1 parent a4c2c96 commit 7364d90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/NonlinearSolveBase/src/descent/halley.jl
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ end
function evaluate_hvvp(
cache::HalleyDescentCache, f::NonlinearFunction{iip}, p, u, δu) where {iip}
if iip
binary_f = (y, x) -> f(y, x, p)
binary_f = @closure (y, x) -> f(y, x, p)
derivative(binary_f, cache.fu, u, δu, Val{3}())
else
unary_f = Base.Fix2(f, p)
Expand Down

0 comments on commit 7364d90

Please sign in to comment.