diff --git a/src/CGNR.jl b/src/CGNR.jl index 2ba25797..d91753b2 100644 --- a/src/CGNR.jl +++ b/src/CGNR.jl @@ -80,7 +80,7 @@ function CGNR(A return CGNR(A, AHA, - L2, other, x, x₀, pl, vl, αl, βl, ζl, iterations, relTol, 0.0, normalizeReg) + L2, other, x, x₀, pl, vl, αl, βl, ζl, iterations, Float64(relTol), 0.0, normalizeReg) end """ diff --git a/src/proximalMaps/ProxL1.jl b/src/proximalMaps/ProxL1.jl index 5536f807..53c59634 100644 --- a/src/proximalMaps/ProxL1.jl +++ b/src/proximalMaps/ProxL1.jl @@ -16,7 +16,7 @@ end performs soft-thresholding - i.e. proximal map for the Lasso problem. """ function prox!(::L1Regularization, x::AbstractArray{Tc}, λ::T) where {T, Tc <: Union{T, Complex{T}}} - ε = eps(T) + ε = eps(typeof(λ)) x .= max.((abs.(x).-λ),0) .* (x.+ε)./(abs.(x).+ε) return x end