mrpro.utils.remove_repeat

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

Replace dimensions with all equal values with singletons.

Parameters:
  • tensor – input tensor. Must be real

  • tol – tolerance