Skip to main content
. Author manuscript; available in PMC: 2016 Aug 21.
Published in final edited form as: Phys Med Biol. 2015 Jul 30;60(16):6153–6175. doi: 10.1088/0031-9155/60/16/6153

Table 1.

Pseudocode for solving PWLS* using OS-SQS.

Precompute optimal curvatures
ci(l^i)=[[W]i]+l^i0
Precompute approximate dj term dj=i=1Nyaijγici(l^i)
for each iteration n = 1, ..., niter
    for each subset m = 1, ..., M
                l^i=j=1Nμaijμ^jh.i=wi(lil^i)iSm
        for j = 1, ..., Nμ
                        L.j=MiSmaijh.i
                        μ^j=[μ^j+L.jβRk=1K[ΨR]kjH.([ΨRμ^]k)dj+2βRk=1K[ΨR]kj2ωH([ΨRμ^]k)]+
                end
        end
end