numpy - distances between two points from vectors of shape(n, 2)

后端 未结 0 386
心在旅途
心在旅途 2020-12-22 09:58

Background

Suppose I have a ndarray of coordinates of shape (n, 2) where each coordinate is (x, y).

X = np.random.random(shape) * 10  # just to gener         


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