Machine Learning, TensorFlow, Numpy.
the explanation to three vectors, for simplicity: [a1, a2], [b2, b2], [c1, c2]. On the numerator we have to calculate the squared norm of the euclidean difference between two vectors. Posing (a-b)²= (a1-b1)²+(a2-b2)² : 0 , (a-b)² , (a-c)² (b-a)² , 0 , (b-c)² (c-a)² , (c-b)² , 0 And for the