mrpro.utils.remove_repeat

mrpro.utils.remove_repeat(tensor: Tensor, tol: float) Tensor[source]

Replace dimensions with all equal values with singletons.

Parameters:
  • tensor (Tensor) – Input tensor, must be real.

  • tol (float) – tolerance