Calculate distance of vectors in one matrix

后端 未结 0 1605
执念已碎
执念已碎 2021-02-04 07:11

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         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题