linop.Mean

Contents

linop.Mean#

class bartorch.linop.Mean#

Bases: LinearOperator

Average over axes, BART’s linop_avg.

Sum divided by how many were summed, and like it the axes are kept with size one.

Parameters:
  • shape (tuple of int) – The shape it averages over, C order.

  • axes (int or tuple of int) – Which axes to average, as indices into shape.

Also has the methods and properties of LinearOperator.