What does the parameter -1 means in the sum method of the NumPy?

前端 未结 0 1512
梦谈多话
梦谈多话 2020-11-21 18:25

Consider the following code:

X = rand.rand(10, 2)
differences = X[:, np.newaxis, :] - X[np.newaxis, :, :]
differences = X[:, np.newaxis, :] - X[np.newaxis, :,         


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