pairwise_distances
¶
Compute pairwise distances between points in vectors x and y.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x
|
array
|
array of shape (N, D) |
required |
y
|
array
|
array of shape (M, D) |
required |
Returns:
| Type | Description |
|---|---|
array
|
Array of shape (N, M) |
Source code in mlx_graphs/utils/array_ops.py
from mlx_graphs.utils.array_ops import pairwise_distances · mlx_graphs/utils/array_ops.py