euclidean distance between two matrices numpy code example Example: numpy euclidean distance dist = numpy.linalg.norm(a-b)