src/PET/AlgorithmProximal.jl

changeset 26
ccd22bbbb02f
parent 13
dc6339756e35
child 36
e4a8f662a1ac
--- a/src/PET/AlgorithmProximal.jl	Sun Apr 21 22:35:03 2024 +0300
+++ b/src/PET/AlgorithmProximal.jl	Mon Apr 22 09:26:19 2024 +0300
@@ -151,13 +151,14 @@
             @. oldx = x
         end
 
-        if params.prox_predict
-            ∇₂!(Δy, x)
-            @. y = (y + σ̃*Δy)/(1 + σ̃*(ρ̃+ρ/α))
-            #@. cc = y + 1000000*σ̃*Δy 
-            #@. y = (y + σ̃*Δy)/(1 + σ̃*(ρ̃+ρ/α)) + (1 - 1/(1 + ρ̃*σ̃))*cc
-            proj_norm₂₁ball!(y, α) 
-        end
+        ##############################    
+        # Proximal step of prediction
+        ##############################
+        ∇₂!(Δy, x)
+        @. y = (y + σ̃*Δy)/(1 + σ̃*(ρ̃+ρ/α))
+        #@. cc = y + 1000000*σ̃*Δy 
+        #@. y = (y + σ̃*Δy)/(1 + σ̃*(ρ̃+ρ/α)) + (1 - 1/(1 + ρ̃*σ̃))*cc
+        proj_norm₂₁ball!(y, α) 
 
         ############
         # PDPS step

mercurial