How to create a boolean array where the value is based on an array of indices?

后端 未结 0 907
闹比i
闹比i 2020-12-22 16:49

Let say I have a numpy array A as follows:

A = 
array([[0, 2],
       [1, 2],
       [0, 1]])

I created a boolean array B<

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