def primdist(x):
  return max(0.0, max(x))

dualdist = primdist
