'How to check inner part of 3D array numpy [closed]
I have a 3D array a = np.array([[[1,1],[1,1]],[[1,0],[1,0]]]) and I need to check which members are equal to [1,1] and set all other members to [0,0] How should I approach this?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
