a = np.random.rand(4, 4)
tuples = [(ix, iy, a[ix, iy]) for ix, row in enumerate(a) for iy, i in
    enumerate(row) if ix <= iy]
sorted(tuples, key=lambda x: x[2])
m Smallest values from upper triangular matrix with their indices as a list of tuples