gemlib.spatial.pdist

Contents

gemlib.spatial.pdist#

gemlib.spatial.pdist(a, b)#

Compute the Euclidean distance between a and b

Parameters:
  • a (ArrayLike) – a [N, D] tensor of coordinates

  • b (ArrayLike) – a [M, D] tensor of coordinates

Returns:

A [N, M] matrix of Euclidean distances between coordinates.

Return type:

Array