I have a numpy array A, of say length 100, and another array B, of length 4.
I want to get a mask of also length 100, and this mask will have values of TRUE, when the element of A equals ANY of the elements of B, and FALSE otherwise. How can I do that in an efficient way?