linop.Transpose

Contents

linop.Transpose#

class bartorch.linop.Transpose#

Bases: LinearOperator

Swap two axes, BART’s linop_transpose.

torch.transpose as an operator; Permute is the general case.

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

  • axis0 (int) – Axes to exchange.

  • axis1 (int) – Axes to exchange.

Also has the methods and properties of LinearOperator.