gammy.utils.
squared_dist
Squared distance matrix for column array of N-dimensional points
1-D Column array
Examples
x = np.array([[0], [1], [2]]) squared_dist(x, x) # array([[0, 1, 4], # [1, 0, 1], # [4, 1, 0]])