linop.Extract

Contents

linop.Extract#

class bartorch.linop.Extract#

Bases: LinearOperator

Take the block of oshape that starts at start, BART’s linop_extract.

The restriction operator: its adjoint puts the block back where it came from and leaves the rest zero. Indexing an operator with A[...] builds one.

Parameters:
  • start (sequence of int) – Where the block begins, one offset per axis of ishape.

  • oshape (tuple of int) – The block and the shape it comes out of, C order.

  • ishape (tuple of int) – The block and the shape it comes out of, C order.

Also has the methods and properties of LinearOperator.