bartorch.fftmod

Contents

bartorch.fftmod#

bartorch.fftmod()#

Multiply by the phase that turns an uncentred transform into a centred one, along axes.

For an even size the phase is an alternating sign. BART’s fftmod.

Parameters:
  • input (torch.Tensor) – Array to modulate.

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

  • inverse (bool, default=False) – Apply the conjugate phase.

Returns:

The shape of input.

Return type:

torch.Tensor