Skip to content
Snippets Groups Projects
Commit 8e5453b7 authored by Stephan Hilb's avatar Stephan Hilb
Browse files

cleanup

parent 3c9185d2
No related branches found
No related tags found
No related merge requests found
......@@ -48,11 +48,10 @@ struct ChambolleState{A,T,R,S,Sv,K1,K2} <: State
k2::K2
end
projnorm(v) = projnorm(v, false)
projnorm(v::SVector, anisotropic) = anisotropic ? abs.(v) : norm(vec(v))
@inline projnorm(v, anisotropic) = anisotropic ? abs.(v) : norm(vec(v))
#const SVectorNest = SArray{<:Any,<:SArray{<:Any,Float64,1},1}
# TODO: respect anisotropic
@inline projnorm(v, _) = norm(v)
#@inline projnorm(v, _) = norm(v)
#@inline projnorm(v::SVectorNest, _) = sqrt(sum(sum(v[i] .^ 2) for i in eachindex(v)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment