From e75e933e604213fa56c98868ef314677ae85704a Mon Sep 17 00:00:00 2001 From: jonschumacher Date: Wed, 15 May 2024 10:09:10 +0200 Subject: [PATCH 1/2] Fix type mismatch for CGNR --- src/CGNR.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CGNR.jl b/src/CGNR.jl index 7c48c1eb..67357f8b 100644 --- a/src/CGNR.jl +++ b/src/CGNR.jl @@ -81,7 +81,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 """ From 28906472cb20b680a5f18fae8f1884179839e833 Mon Sep 17 00:00:00 2001 From: jonschumacher Date: Wed, 15 May 2024 13:24:52 +0200 Subject: [PATCH 2/2] Fix error with non-defined `T` --- src/proximalMaps/ProxL1.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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