Z is an (n, 2) float tensor of coordinates. Return the (n, n) matrix of pairwise Euclidean distances between every pair of rows.
Z
(n, 2)
(n, n)
solve(...)