linop.Mean

Contents

linop.Mean#

class bartorch.linop.Mean#

Bases: LinearOperator

Average over axes, BART’s linop_avg.

Sum divided by the number of summed elements; the averaged axes are kept with size one.

Parameters:
  • shape (tuple of int) – Domain, C order.

  • axes (int or tuple of int) – Axes to average.

Also has the methods and properties of LinearOperator.