only need to compute the upper triangle of this nested loop:
line 110
radii_matrix = np.full( (N, N), np.inf, dtype=np.float32 )
index_matrix = np.full( (N, N, 2), -1, dtype=np.uint32 )
for i in range(N):
for j in range(i + 1, N): # compute upper triangle only
only need to compute the upper triangle of this nested loop:
line 110