Why exactly does numpy.sum() gives different results on the same matrix with different order, where sum() does not?

前端 未结 0 1737
半阙折子戏
半阙折子戏 2021-01-27 01:05

When I initialize two random matrices (here of shape (6,2)), and re-order the rows, np.sum() will give me different results. I understand this is likely due to numerical errors,

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