Given a matrix mxn, compute all pairwise L2 distances which should result in a nxn matrix, without using loops. I tried the following:
a = np.repeat(np.atleast_3d