Check if two numpy arrays are identical

前端 未结 7 989
轻奢々
轻奢々 2020-12-10 15:47

Suppose I have a bunch of arrays, including x and y, and I want to check if they\'re equal. Generally, I can just use np.all(x == y) (

7条回答
  •  借酒劲吻你
    2020-12-10 16:34

    Adding short-circuit logic to array comparisons is apparently being discussed on the numpy page on github, and will thus presumably be available in a future version of numpy.

提交回复
热议问题