gemlib.spatial.pdist#
- gemlib.spatial.pdist(a, b)#
Compute the Euclidean distance between a and b
- Parameters:
a (ArrayLike) – a
[N, D]tensor of coordinatesb (ArrayLike) – a
[M, D]tensor of coordinates
- Returns:
A
[N, M]matrix of Euclidean distances between coordinates.- Return type:
Array