Skip to content

Commit

Permalink
Merge pull request #83 from jonschumacher/JS/small-fixes
Browse files Browse the repository at this point in the history
Small fixes
  • Loading branch information
nHackel authored May 24, 2024
2 parents 9540dbd + 2890647 commit 30b2438
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/CGNR.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

"""
Expand Down
2 changes: 1 addition & 1 deletion src/proximalMaps/ProxL1.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 30b2438

Please sign in to comment.