linop.Transpose

Contents

linop.Transpose#

class bartorch.linop.Transpose#

Bases: LinearOperator

Swap two axes, BART’s linop_transpose.

Permute is the general rearrangement; this is the pair swap that torch.transpose is.

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

  • axis0 (int) – The two axes to exchange.

  • axis1 (int) – The two axes to exchange.

Also has the methods and properties of LinearOperator.