Skip to content

Commit

Permalink
eps in Adaptive now working for complex iterates (#455)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiendesignolle authored Mar 11, 2024
1 parent 1243dcb commit 7256c4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/linesearch.jl
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ function perform_line_search(
memory_mode::MemoryEmphasis;
should_upgrade::Val=Val{false}(),
)
if norm(d) length(d) * eps(float(eltype(d)))
if norm(d) length(d) * eps(float(real(eltype(d))))
if should_upgrade isa Val{true}
return big(zero(promote_type(eltype(d), eltype(gradient))))
else
Expand Down

0 comments on commit 7256c4f

Please sign in to comment.