Suppose we have an array A and a set of arrays in B. What's the fast way to find how many items in A exist in each row of B? For example, if I have:
A = np.array([2, 5, 10])
B = np.array([(3, 5, 10), (1, 2, 5), (4, 6, 9)])
So I should get C = [2, 2, 0].
[2,2,0]?