optim.pocs#
- bartorch.optim.pocs()#
Sweep a list of projections,
optim.POCS(projections)(y, x0=x0).Unlike the solvers beside it this one has no encoding argument: what the sets are, and what the data is, belong to the projections themselves.
- Parameters:
y (tensor) – What the iterate looks like. Without
x0the sweep starts at zero of its shape, wherepocs_recon2starts.projections (sequence) – The sets to project onto, as
POCSBlocktakes them: a callable on a tensor, or abartorch.priorsterm.x0 (tensor, default=None) – Where to start instead.
**settings – Settings of
POCS, which ismaxiter(50).
- Returns:
The iterate the last sweep left.
- Return type:
torch.Tensor