Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lostella authored Dec 29, 2023
1 parent c343469 commit 7a5b622
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ProximalCore.jl
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ struct IndZero end
function (::IndZero)(x)
R = real(eltype(x))
if iszero(x)
return R(Inf)
return R(0)
end
return R(0)
return R(Inf)
end

is_convex(::Type{IndZero}) = true
Expand Down

0 comments on commit 7a5b622

Please sign in to comment.