def cityblock(u, v):
 u = _validate_vector(u)
 v = _validate_vector(v)
 return abs((u - v)).sum()

def cityblock ( u , v ) : u = _validate_vector ( u ) v = _validate_vector ( v ) return abs ( ( u - v ) ) . sum ( )
computes the city block distance .