I have a list and I have got the distance between all the elements (all the pairs and itself) and create a 2D numpy array.
Example:
0 1 2 3 4 5 6 7 8