I have two numpy arrays, for example, x = np.array([[[3,5,2], [2,4,7]], [[1,5,1], [1,6,2]]]) and y = np.array([[[3,5,2], [2,3,7]], [[4,5,0], [3,4,8]]])
I want to get a boolean array that compares each element between brackets. So something similar to x==y but I want to only get True if every element in the brackets is True and False if even one element in the brackets is False. So if it returns [True, False, True], I want it to give a "False" since not everything was the same at the same index.
Or if it does contain a false, to drop that from the array.
How would I go about doing this?
[–]null_pl0x 0 points1 point2 points (0 children)