linop.Permute

Contents

linop.Permute#

class bartorch.linop.Permute#

Bases: LinearOperator

Rearrange the axes, BART’s linop_permute.

order reads the way torch.permute’s does: axis i of the result is axis order[i] of the input.

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

  • order (sequence of int) – A permutation of range(len(shape)).

Also has the methods and properties of LinearOperator.