From b1fb6517d373ac591f6be1e38d9c0bbbb66f2acf Mon Sep 17 00:00:00 2001 From: Stephan Hilb <stephan@ecshi.net> Date: Mon, 11 May 2020 18:48:30 +0200 Subject: [PATCH] fix chambolle boundary --- src/chambolle.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chambolle.jl b/src/chambolle.jl index 4f7fa7b..370e7c4 100644 --- a/src/chambolle.jl +++ b/src/chambolle.jl @@ -52,7 +52,7 @@ function init(md::ChambolleModel, alg::ChambolleAlgorithm) sv = zero(rv) p = extend(reshape(reinterpret(SVector{d,Float64}, pv), size(md.g)), StaticKernels.ExtensionNothing()) r = reshape(reinterpret(Float64, rv), size(md.g)) - s = extend(reshape(reinterpret(Float64, sv), size(md.g)), StaticKernels.ExtensionConstant(0.)) + s = extend(reshape(reinterpret(Float64, sv), size(md.g)), StaticKernels.ExtensionReplicate()) z = zero(CartesianIndex{d}) @inline kf1(pw, gw) = @inbounds divergence(pw) + gw[z] -- GitLab