From 7a5b622d588a969b96f657715b4f7eadf39c49c1 Mon Sep 17 00:00:00 2001 From: Lorenzo Stella Date: Fri, 29 Dec 2023 19:46:39 +0100 Subject: [PATCH] Fix bug --- src/ProximalCore.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ProximalCore.jl b/src/ProximalCore.jl index 4c1cb9c..728e3d3 100644 --- a/src/ProximalCore.jl +++ b/src/ProximalCore.jl @@ -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