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

cleanup

parent 3c9185d2
Branches
Tags
No related merge requests found
...@@ -48,11 +48,10 @@ struct ChambolleState{A,T,R,S,Sv,K1,K2} <: State ...@@ -48,11 +48,10 @@ struct ChambolleState{A,T,R,S,Sv,K1,K2} <: State
k2::K2 k2::K2
end end
projnorm(v) = projnorm(v, false) @inline projnorm(v, anisotropic) = anisotropic ? abs.(v) : norm(vec(v))
projnorm(v::SVector, anisotropic) = anisotropic ? abs.(v) : norm(vec(v))
#const SVectorNest = SArray{<:Any,<:SArray{<:Any,Float64,1},1} #const SVectorNest = SArray{<:Any,<:SArray{<:Any,Float64,1},1}
# TODO: respect anisotropic # 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))) #@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