Suppose we have a distance matrix as following:
array([[ 0. , 0.2039889 , 0.25030506, 0.56118992],
[ 0.2039889 , 0. , 0.39916797, 0.6909994 ],
[ 0.25030506, 0.39916797, 0. , 0.63389566],
[ 0.56118992, 0.6909994 , 0.63389566, 0. ]])
How can I get the values of the upper matrix with their indexes like :
1 0.2039889 1 2
2 0.25030506 1 3
3 0.56118992 1 4
4 0.39916797 2 3
5 0.6909994 2 4
6 0.63389566 3 4