Skip to content

Commit 8ca528b

Browse files
rjbaraldidpo
rjbaraldi
authored andcommitted
fixed floating point error in linf ball evaluation with the same methodology as l1-binf
1 parent bb1ed17 commit 8ca528b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/shiftedRootNormLhalfBinf.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ mutable struct ShiftedRootNormLhalfBinf{
2727
end
2828
end
2929

30-
::ShiftedRootNormLhalfBinf)(y) = ψ.h.xk + ψ.sj + y) + IndBallLinf.Δ)(ψ.sj + y)
30+
::ShiftedRootNormLhalfBinf)(y) = ψ.h.xk + ψ.sj + y) +
31+
.χ.sj + y) ψ.Δ ? IndBallLinf.Δ)([ψ.Δ]) : IndBallLinf.Δ)(ψ.sj + y))
3132

3233
shifted(
3334
h::RootNormLhalf{R},

0 commit comments

Comments
 (0)