Skip to main content
. Author manuscript; available in PMC: 2013 May 21.
Published in final edited form as: Phys Med Biol. 2012 Apr 27;57(10):3065–3091. doi: 10.1088/0031-9155/57/10/3065

Algorithm 5.

Pseudocode for N-steps of the KL-TV CP algorithm instance.

1: L ← ‖(A, ∇)‖2; τ ← 1/L; σ ← 1/L; θ ← 1; n ← 0
2: initialize u0, p0, and q0 to zero values
3: ū0u0
4: repeat
5:     pn+112(1D+pn+σAūn(pn+σAūn1D)2+4σg)
6:     qn+1 ← λ(qn + σ∇ūn)/max(λ1I, |qn + σ∇ūn|)
7:     un+1un − τAT pn+1 + τdiv qn+1
8:     ūn+1un+1 + θ(un+1un)
9:     nn + 1
10: untilnN