cupyx.scipy.spatial.distance.chebyshev#

cupyx.scipy.spatial.distance.chebyshev(u, v)[source]#

Compute the Chebyshev distance between two 1-D arrays.

The Chebyshev distance is defined as

\[d(u, v) = \max_{i} |u_i - v_i|\]
Parameters:
  • u (array_like) – Input array of size (N,)

  • v (array_like) – Input array of size (N,)

Returns:

The Chebyshev distance between vectors u and v.

Return type:

chebyshev (double)