optim.POCS

optim.POCS#

class bartorch.optim.POCS#

Bases:

Projection onto convex sets, looping POCSBlock.

maxiter sweeps of the projections, each applied in turn. There is no stopping test: pocs runs its count out.

Parameters:
  • projections (sequence) – The sets to project onto, as POCSBlock takes them.

  • maxiter (int, default=50) – Sweeps; pocsense’s default is fifty.

Examples

>>> POCS([consistency, sense, sparsity], maxiter=50)(kspace)
__call__()#

Sweep the projections, starting from x0 or from zero of y’s shape.